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:
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:
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]
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]
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]
is working on a reply...