• Hi,

    i have this pagetree:

    page1
    – page1.1
    – page1.2
    – page1.3
    page2
    – page2.1
    – page2.2

    and now i want that the subpages (page1.1, page 1,2, page 1.3) are only visible if i am on page1. the same for pageN.y

    any ideas?

Viewing 9 replies - 1 through 9 (of 9 total)
  • I don’t know of a easy way to do this, but it is possilbe to not show the subpages by using the correct terms in the list_pages function. You’d probably need to write an if statement in order to get this to work.

    Not sure thats right. The depth is a tag parameter for list pages.

    Consult the guru

    wow – thanks for that link

    thats going to help with things I’m doing

    Thread Starter ny

    (@ny)

    sorry Root, but this it isn’t i read about this on the codex, and this will display only

    page1
    page2

    No it wont.

    HAving messed with this, and after deciohering everyone’s posts….

    Setting the depth parameter affects the current level.
    Example, if I am on the main page, then I’d see this:
    * Page 1
    * Page 2

    If I were then to click page1, I’d see this:
    * Page 1.1
    * Page 1.2
    * Page 1.3

    But no links to Page 1 or Page 2.
    If I go back to the main page, then I see the links for pages 1 & 2.

    And that is how the depth parameter works.

    Tg

    Well you need a page template and some fancy if / else php.

    exactly what I said. you’d need the list_pages function as well as an if statement.

    Thread Starter ny

    (@ny)

    and how does this if statement look?

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Pages but in a other way’ is closed to new replies.