Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
One-Page-Template-> automatically include new pages in a div
#15
(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:
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.

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 Smile
Tomáš Janeček - Multilingual personal website powered by GetSimple
» The little I did for GetSimple
Reply


Messages In This Thread
RE: One-Page-Template-> automatically include new pages in a div - by TeeJay - 2013-07-12, 06:19:08



Users browsing this thread: 1 Guest(s)