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:
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.
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?
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
Excellent, that works perfectly. Once again Dirk you have saved me. Cheers.
is working on a reply...