2010-03-14, 23:30:35
Alright, I’m recoding my menu plugin—partly from scratch. One of the things I’m going to put time on is the menu sorting, I even have an admin interface planned so you can tell it how to sort. There is one thing that bugs me though, so I want to put it up for discussion here;
When defining a page’s priority it will show a default of -. Let’s call this “undefinedâ€Â. The standard index page has a priority of 1, so it has a “defined†priority. If you now want your pages to show below the home page you need to define their priority to be 1 or bigger, logically, making their value “defined†as well.
In default sorting, any “undefined†page will come before any “defined†page. Does this sound right to you?
It doesn’t to me, but if you all think this is logical I’ll leave it untouched. The - is put before the others because it is saved by the core as a 0.
When defining a page’s priority it will show a default of -. Let’s call this “undefinedâ€Â. The standard index page has a priority of 1, so it has a “defined†priority. If you now want your pages to show below the home page you need to define their priority to be 1 or bigger, logically, making their value “defined†as well.
In default sorting, any “undefined†page will come before any “defined†page. Does this sound right to you?
It doesn’t to me, but if you all think this is logical I’ll leave it untouched. The - is put before the others because it is saved by the core as a 0.
“Don’t forget the important ˚ (not °) on the a,†says the Unicode lover.
Help us test a key change for the core! ¶ Problems with GetSimple? Be sure to enable debug mode!
Help us test a key change for the core! ¶ Problems with GetSimple? Be sure to enable debug mode!