GetSimple Support Forum

Full Version: Sorting of pages?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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!
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?)
I don't even know where the value "sort" comes from?
It is a mixture of menu-title and something else.
I think it would be a good idea to let the user toggle between the sorting of:
-alphabetical
-menu
-newest to oldest
(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.