Please confirm, i see that the sidebar does not work from version: 4.5.1
When collapsing it it collapses, but does not hold it’s state, it changes back on page change.
Last time we used cookie to store sidebar state but it did not work smooth since cookie based solution has some glitch and delay on page load in setting the saved state of the sidebar menu. So ideally it can be implemented via ajax(send state to server side script to remember it user session) and apply the sidebar closed state on server side.
If you need any further clarifications please let us know.
Thanks. Will you be able to provide an example?
At the moment we don’t have this example. Basically you can add simple Ajax call on the sidebar toggle click and send the sidebar state to the server side script to store server side storage. Thus you can retrieve the stored sidebar state and generate sidebar’s HTML code by adding “page-sidebar-closed” class to body element and “page-sidebar-menu-closed” class to the “page-sidebar-menu” DIV.
I hope this info will be helpful.
Possible solution that doesn’t involve backend in: http://keenthemes.com/forums/topic/bug-sidebar-collapse-expand-not-persisting-due-to-wrong-cookie-usage/
You must be logged in to reply to this topic.