Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
One-Page-Template-> automatically include new pages in a div
#14
(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') {
it should work as you expect.

PS maybe it would be convenient to change this so that it doesn't display private pages.
Reply


Messages In This Thread
RE: One-Page-Template-> automatically include new pages in a div - by Carlos - 2013-07-11, 23:24:49



Users browsing this thread: 1 Guest(s)