(2013-07-11, 23:24:49)Carlos Wrote:(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:
it should work as you expect.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.
Thank you. That could have occurred to me, it's relatively obvious.
I'll try it soon and I'll use it in all the one-page websites. I'm sure your solution is right
Tomáš Janeček - Multilingual personal website powered by GetSimple
» The little I did for GetSimple
» The little I did for GetSimple