The following warnings occurred: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Warning [2] Undefined array key "allowautourl" - Line: 584 - File: inc/class_parser.php PHP 8.1.31 (Linux)
|
Admin Sidebar Sorting - 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 Sidebar Sorting (/showthread.php?tid=2118) |
Admin Sidebar Sorting - mikeh - 2011-08-31 How are the sidebars in the admin panel sorted? For example, sidebar items (made by plugins) on the settings page.. Admin Sidebar Sorting - n00dles101 - 2011-08-31 the main sidebar items are hardcoded plugin items are added in the order they are registered. which is alphabetically. we had toyed with using a priority for plugins but we figured everyone would just prioritize their own plugins first... mike Admin Sidebar Sorting - mikeh - 2011-08-31 n00dles101 Wrote:the main sidebar items are hardcoded Thanks for answering So the plugin filename controls the order (Alphabetically), or the plugin name? Admin Sidebar Sorting - n00dles101 - 2011-08-31 Just looking into this. The files in the plugin folder read in using the opendir function which on a Unix/Linux system will return the files according to the filestamp. This causing a problem? Priority system is easy to implement. It does make sense for some plugins to run after all other, caching etc... M Admin Sidebar Sorting - mikeh - 2011-08-31 n00dles101 Wrote:Just looking into this. The files in the plugin folder read in using the opendir function which on a Unix/Linux system will return the files according to the filestamp. Its not* (edit: Forgot the "not") so much of a problem as it is an annoyance, I have run into times where the interface would be easier to use if the sidebar was organized a certain way. screenshot explains It would be great to be able to accomplish ordering like in the below snippet: Code: add_action('xxxxxx-sidebar','createSideMenu',array('your-plugin-filename','Menu Text',1)); |