ZenphotoCMS Forum
zenpage: document with multiple sub-pages - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: zenpage: document with multiple sub-pages (/thread-12093.html)



zenpage: document with multiple sub-pages - RB26 - 2015-01-09

bonjour
is there a way for créate and print with page-nav, a zenpage with multiples sub-pages?
(like for the albums with sub-albums)




zenpage: document with multiple sub-pages - fretzl - 2015-01-09

Use something like this:
printPageMenu("list", "", "menu-active", "submenu", "menu-active", NULL, 2)
The last parameter (in this case [b]2[/b]) sets the depth of sub-pages.




zenpage: document with multiple sub-pages - acrylian - 2015-01-09

Do you mean a menu like fretzl assumes or a page nav with previous/next? Such a prev/next pagenav only exists for Zenpage news articles but not for Zenpage pages.

But you can display the direct sub pages on a Zenpage page using the next_page() loop that works similar like the next_album loop.




zenpage: document with multiple sub-pages - RB26 - 2015-01-10

@acrylan
I already use the printPageMenu for for link to differents pages.
my idea is to make a zenPage like a (little) book:
MyPage
subpage 1
...
subpage n
endMyPage

on the model of an Album:
MyAlbum [image 1, .., image n] endMyAlbum

or News categories:
MyCategorie [news 1,.., news n] endMyCategorie

merci je suis CHARLIE




zenpage: document with multiple sub-pages - fretzl - 2015-01-10

Instead of the function printPageContent() use printSubPagesExcerpts()

http://www.zenphoto.org/documentation/plugins/zenpage/_zp-extensions---zenpage---zenpage-template-functions.php.html#functionprintSubPagesExcerpts




zenpage: document with multiple sub-pages - acrylian - 2015-01-10

Ok, so more a table of content then? That the pagemenu can do or use the function we suggested.

The next_page() loop does the same as printSubPageExcerpt() that fretzl suggested but leaves full freedom to the html structure printed and you can of course print the full page content as well. You need to edit the theme page in any case.




zenpage: document with multiple sub-pages - RB26 - 2015-01-10

thanks, i will see.
otherwise, i will modify the code of my pages or use the jquery-UI tabs (not the best)
rb