2013-07-11, 23:24:49
(2013-07-11, 20:07:50)TeeJay Wrote: Carlos, I'm just creating a one-page website using your PHP code and I occurred a problem - pages which are not in the menu are not shown at all. My setting is menuOrder.
Is there a way how to show also the pages which are not actually in the menu? Thanks you.
I got a solution by adding the page in the menu, setting display:none for the menu item. Obviously, I don't want to go this way.
I suppose that if you change the foreach line to:
Code:
foreach ($pagesSorted as $page) if ($page['url']!='index') {
PS maybe it would be convenient to change this so that it doesn't display private pages.