2013-01-09, 01:56:47
PHP Code:
$submenu=getChildren('index'); // change to $id for current page
$menuArray=array();
foreach ($submenu as $menuitem){
$menuArray[(string)$menuitem]['title']=returnPageField($menuitem,'title');
$menuArray[(string)$menuitem]['url']=returnPageField($menuitem,'url');
}
This should give you an array of children ($menuArray)
Output as required...