I believe a custom JavaScript solution is needed for this. I've tried a number of code snippets, but none have worked.
X3 Photo Gallery Support Forums
It doesn't close the subfolder when clicking a folder that doesn't have subfolders, because technically you are not toggling the menu at all, just navigating to an endpoint. I think it should be up to the user to close this folder if they are not using it any more ... Technically, it's still the last used submenu, that the user has not closed. I don't see a huge point in trying to hack this with Javascript ... It's an internal complex javascript menu, and that's how it works. I can't just hack the menu from the outside without spending several hours. There are internal states that control the menu ... It's not just about overriding it from the outside.Ruud de Soet wrote: I’m using Style Slidemenu, which contains several folders and subfolders. When I navigate from a folder with subfolders to another folder, the first folder collapses. This does not happen when I select a folder that doesn't have subfolders. I would like the previously opened folders to always collapse, regardless of whether I select a folder/subfolder or just a folder without subfolders.
I believe a custom JavaScript solution is needed for this. I've tried a number of code snippets, but none have worked.
![]()