Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Sorting of pages?
#1
Hello,

should the sorting in the admin be sorted by the "menu" order?

Code:
pages.php => 84
$pagesSorted = subval_sort($pagesArray,'menuOrder');
instead of "sort"? Sort = Titlename.

Greetings!
Reply
#2
I'm doing that as well

One minor problem is that new pages not in the menu appear on top.
(saving them with a menu order of 30 and then removing them again from the menu seems to put them on the bottom?)
<º)))><
Reply
#3
I don't even know where the value "sort" comes from?
It is a mixture of menu-title and something else.
Reply
#4
I think it would be a good idea to let the user toggle between the sorting of:
-alphabetical
-menu
-newest to oldest
Reply
#5
(2012-10-29, 22:40:57)pow Wrote: I don't even know where the value "sort" comes from?
It is a mixture of menu-title and something else.

It's "Parent title + Page title", see admin/pages.php line 75:

Code:
$sort = $parentTitle .' '. $page['title'];

so that the (backend) list is sorted by top pages, then subpages, etc. (tree-style)

Menu order is used by the frontend function get_navigation.
Reply




Users browsing this thread: 1 Guest(s)