Pages (2):    1 2
Administrator
Administrator
acrylian   12-10-2009, 13:11
#11

The printPageMenu has also a option to show only subpages if available ("list-sub").

What three pages? If you use Zenpage as intended you have only one theme file for pages, pages.php, where you need to add the subpagemenu call. The function does not display anything if there is nothing to display.

I see the issue with the active class of the main menu. The function does indeed not "know" that you are using it as a separate top level function. Have to look if that is doable if set to toplevel display.

Meanwhile you will have to build your own function using getPages(), getParentPages() and the class methods.

Member
Member
dendraya   12-10-2009, 14:50
#12

thx for the answer
i mean right now i have to add the subpagemenu call in the codeblock, because i need a div wrapper around it. is there a way to determine if a page is a subpage and use it in an if-statement?

Administrator
Administrator
acrylian   12-10-2009, 15:06
#13

Yes, by using "getParentPages()"

Pages (2):    1 2
  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.