Admin slide menu - remember state - Printable Version +- GetSimple Support Forum (http://get-simple.info/forums) +-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3) +--- Forum: Developer Discussions (http://get-simple.info/forums/forumdisplay.php?fid=8) +--- Thread: Admin slide menu - remember state (/showthread.php?tid=3220) |
Admin slide menu - remember state - bogyvet - 2012-05-25 I'm working on one user plugin so I have on plugin Administration - slide navigation and page navigation on each page. Problem was that slide menu didn't remember state when I call any of pages from page navigation. I solve this problem and I hope that someone can use this. I add action to plugin slide bar menu item. Quote:add_action($thisfile.'-sidebar','createSideMenuState',array($thisfile,'User Management', array('users_statistic', 'create_user', 'user_list', 'search_user', 'user_comments', 'user_files'))); 'users_statistic', 'create_user', 'user_list', 'search_user', 'user_comments', 'user_files' are navigation inside User Management page. eg. Quote:/admin/load.php?id=TIDE_users&users_statistic I didn't change core but I add 2 functions into admin/inc/plugin_functions.php: Quote:/** I hope that this would help to someone. |