Copied to clipboard

Flag this post as spam?

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


  • trfletch 598 posts 604 karma points
    Mar 12, 2009 @ 16:11
    trfletch
    0

    Dropdown list menu populated with pages and child pages

    I posted this the other day and didn't get a response and now I can't find the post. I have created a dropdown list that acts as a menu and is populated with pages under a specified node. I want it to also show the sub pages of those pages in the dropdown list. Does anyone know how I modify my code to show this? Any help would be appreciated. My code is as follows:

    [code] [/code]

  • Dirk De Grave 4541 posts 6021 karma points MVP 3x admin c-trib
    Mar 12, 2009 @ 21:41
    Dirk De Grave
    0

    Hi tony,

    Answer depends on the level of child nodes you'd like to display...

    Do you only want the pages and their respective child nodes, or do you also want to list all child nodes (recursively)

    If the latter, replace:

    [code]

  • trfletch 598 posts 604 karma points
    Mar 13, 2009 @ 13:15
    trfletch
    0

    Hi Dirk,

    Thank you for your response, once again your advice is spot on. That is exactly what I needed. I now have the following code which shows my pages and sub pages in the dropdown just need to now format it so that the top level pages show in bold and the sub-pages are indented:

    [code]



    [/code]

Please Sign in or register to post replies

Write your reply to:

Draft