GetSimple Support Forum
Sorting of pages? - 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: Sorting of pages? (/showthread.php?tid=3727)



Sorting of pages? - pow - 2012-10-26

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!


Sorting of pages? - uitdecom - 2012-10-29

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?)


Sorting of pages? - pow - 2012-10-29

I don't even know where the value "sort" comes from?
It is a mixture of menu-title and something else.


Sorting of pages? - shovenose - 2012-10-30

I think it would be a good idea to let the user toggle between the sorting of:
-alphabetical
-menu
-newest to oldest


RE: Sorting of pages? - Carlos - 2012-11-06

(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.