Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • trfletch 595 posts 571 karma points
    Mar 16, 2009 @ 16:07
    trfletch
    0

    Listing parents sub pages (or pages on the same level) but not current page

    I want to have a menu on a page that displays all the other pages on the same level but not the current page. For example I have the following structure:

    Section A
    -Sub page 1
    -Sub page 2
    -Sub page 3
    -Sub page 4

    When I am on sub page 2 I want to display a link to sub page 1, 3 and 4 but not to sub page 2. Can anyone help with this?

  • Dirk De Grave 4537 posts 6006 karma points MVP 3x admin c-trib
    Mar 16, 2009 @ 16:34
    Dirk De Grave
    0

    Hi tony,

    [code][/code]

    Idea behind this is that you should iterate the child nodes of the parent of the current node (which will all have the same level) and in the loop check the id of the current node against the node id of the page currently being requested.

    Hope this helps.

    Regards,
    /Dirk

  • trfletch 595 posts 571 karma points
    Mar 16, 2009 @ 16:52
    trfletch
    0

    Excellent, that works perfectly. Once again Dirk you have saved me. Cheers.

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies