Hi All,
I have a site that requires a sub menu. So the layout is as follows:
- Homepage
- - Sub page 1
- - Sub page 2
- About
- - Sub page 3
- - Sub page 4
The amin navigation runs along the top of the site, and no problem there, wayfinder to the rescue. The trouble im having is when click on home, I want a side navigation to appear, showing just 'sub page 1' & 'sub page 2'. I have managed to get this to work by using getresources and the following code:
[[!getResources? &parents=`[[*id]]` &tpl=`submenu` &showHidden=`0` &sortBy=`menuindex`]]
This works to a point... When i then click 'sub page 1' I still want to be able to see both 'sub page 1' & 'sub page 2'.
Any help on this welcome... Also as a side point the '&sortBy=`menuindex`' isn't working...
[ed. note: jimboroberts last edited this post 14 years, 9 months ago.]
Linux, PHP 5.2, MySQL 5.0, Revo 2.2.0-pl2
Hi Ottogal,
the sub pages are children in the tree. I don't however want to see the other titles of the main pages, only the sub page titles.
Does that makes sense?
Linux, PHP 5.2, MySQL 5.0, Revo 2.2.0-pl2
I've replied but the code is above, it must be a forum issue.
Thanks Both, Microcipcip, I have marked your post as solved, think this is why it appears below the question.
Linux, PHP 5.2, MySQL 5.0, Revo 2.2.0-pl2