Member
Member
RB26   2015-01-09, 19:38
#1

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)

Administrator
Administrator
fretzl   2015-01-09, 21:35
#2

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.

Administrator
Administrator
acrylian   2015-01-09, 22:09
#3

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.

Member
Member
RB26   2015-01-10, 09:54
#4

@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

Administrator
Administrator
fretzl   2015-01-10, 10:55
#5

Instead of the function printPageContent() use printSubPagesExcerpts()

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

Administrator
Administrator
acrylian   2015-01-10, 14:03
#6

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.

Member
Member
RB26   2015-01-10, 15:07
#7

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

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.