Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Function: multi-level navigation. / Plugin for version 2!
#28
Patricia Wrote:there must be something I don't understand about sorting (if no priority set to pages) but if I set priority it's in correct order, and even if I don't set, it's in the same order as page list in the admin pages-tab (where it has never been in correct order for me...), so if there is a bug, it's not in your function, but in the base-code (or more probably on my side Smile
The administration panel does not use any kind of sorting I guess.

Also, you're not alone. I haven't really grasped the sorting of GetSimple's menu either. That's why I mentioned having to write my own sorting function sometime.

Ultimately it would be nice if sorting went something like this:
  1. Check for specified sorting order.
  2. Rank it from lowest (1) to highest (20).
  3. Those with no specified priority (-) should be last.
  4. If pages have the same priority (1-20) or non-priority (-) they should be sorted alphabetically.
  5. If alphabetical sorting cannot be applied (due to having the same menu titles) they should be sorted by publication/revision date.
Now to figure out how I'd get it to work like this...
“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!
Reply


Messages In This Thread
Function: multi-level navigation. / Plugin for version 2! - by Zegnåt - 2009-11-20, 21:54:29



Users browsing this thread: 1 Guest(s)