Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
sub-pages into one page
#12
actually you can probably just do
PHP Code:
$children getChildrenMulti($page,array('template','menuOrder')); 

Then subval sort it by menuOrder


PHP Code:
$page get_page_slug(false);
    
_debugLog($page);
    
$children getChildrenMulti($page,array('title','template','menuOrder'));
    
_debugLog($children);    
    
$childrenSorted subval_sort($children,'menuOrder');
    
_debugLog($childrenSorted); 

works for me
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
Reply


Messages In This Thread
sub-pages into one page - by Timbow - 2014-02-05, 07:52:19
RE: sub-pages into one page - by shawn_a - 2014-02-05, 08:30:03
RE: sub-pages into one page - by Timbow - 2014-02-05, 08:43:57
RE: sub-pages into one page - by shawn_a - 2014-02-05, 10:32:51
RE: sub-pages into one page - by shawn_a - 2014-02-05, 10:40:35
RE: sub-pages into one page - by shawn_a - 2014-02-05, 10:52:56
RE: sub-pages into one page - by shawn_a - 2014-02-05, 14:29:54
RE: sub-pages into one page - by Timbow - 2014-02-05, 18:24:10
RE: sub-pages into one page - by Timbow - 2014-02-20, 00:29:40
RE: sub-pages into one page - by Timbow - 2014-02-20, 02:04:31
RE: sub-pages into one page - by shawn_a - 2014-02-20, 02:40:48
RE: sub-pages into one page - by shawn_a - 2014-02-20, 02:56:43
RE: sub-pages into one page - by shawn_a - 2014-02-20, 03:12:23
RE: sub-pages into one page - by Timbow - 2014-02-20, 04:51:16
RE: sub-pages into one page - by shawn_a - 2014-02-20, 05:18:01
RE: sub-pages into one page - by Timbow - 2014-02-21, 01:15:38
RE: sub-pages into one page - by smsHH - 2017-09-29, 02:10:28



Users browsing this thread: 1 Guest(s)