I have a site setup using the nested pages feature. I am trying to use the nested_pages tag to output the title. What I want is the title of page currently being viewed to be outputted. The line of code below worked on my local but does not when live. It outputs nothing.
I have figured out that using root='@current' is part of the menu tag and not the nested_pages tag. Removing this results in every title being outputted multiple times.
How do you restrict it to display just the results from the page currently being viewed.
Heres my code:
Thanks.
I have figured out that using root='@current' is part of the menu tag and not the nested_pages tag. Removing this results in every title being outputted multiple times.
How do you restrict it to display just the results from the page currently being viewed.
Heres my code:
- Code: Select all
<h1><cms:nested_pages masterpage='index.php' root='@current' depth='1' ignore_show_in_menu='1'><cms:show k_nestedpage_title /></cms:nested_pages></h1>
Thanks.