zenpage: document with multiple sub-pages

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)

Comments

  • fretzl Administrator, Developer
    Use something like this:
    `printPageMenu("list", "", "menu-active", "submenu", "menu-active", NULL, 2)`
    The last parameter (in this case 2) sets the depth of sub-pages.
  • acrylian Administrator, Developer
    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.
  • @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`
  • acrylian Administrator, Developer
    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.
  • thanks, i will see.
    otherwise, i will modify the code of my pages or use the jquery-UI tabs (not the best)
    rb
Sign In or Register to comment.