Problems, need help? Have a tip or advice? Post it here.
3 posts Page 1 of 1
Hello,

I created a menu using the nested pages tag and for some reason it does not seem to be working as it should be. When I use it like so <cms:nested_pages extended_info='1' > it renders the menu but when I add the masterpage variable like so <cms:nested_pages masterpage='index.php' extended_info='1' > it does not render anything even on pages created using index.php as the template.

And is it possible to call the menu in templates/pages that are not created/cloned by the template index.php.

Thanks & Regards
Said Salameh
Hello and welcome, Said :)

We can display the menu on any other template using the 'masterpage' parameter.

You said <cms:nested_pages extended_info='1' > works.
Since there is no explicit 'masterpage' parameter in this code, Couch uses the name of the template this code is executing from.
To know conclusively what this name is, please hover your mouse on the template's entry in admin sidebar - you should see the name of the template in a tooltip.
You should use this name as the masterpage.

In case, you have not been mistaken with the template's (i.e. it is 'index.php'), please zip and PM me the templates involved (index and the one on which you are trying to show the menu). Perhaps there is some problem with the code.

Thanks.
Hi KK

Thank you so much for getting back to me soon. It seems that I overlooked adding the correct path.

The menu is now rendering correctly.

Regards
Said
3 posts Page 1 of 1