nesting a Smarty Tag within a UDT
Posted: Thu Aug 10, 2006 6:27 pm
I searched to see if this has already been covered, but couldn't find anything...
(Using CMSMS 0.13) I created a User Defined Tag for a vertical menu that I wanted on certain pages with a nested Menu Module tag, hoping I could pass the "start_element" parameter depending on which page I'm using it. Unfortunately I can't get it to accept the code.
Is it possible to nest tags like this? Or is there a better approach?
TIA,
Duffy
FWIW here's the code:
(Using CMSMS 0.13) I created a User Defined Tag for a vertical menu that I wanted on certain pages with a nested Menu Module tag, hoping I could pass the "start_element" parameter depending on which page I'm using it. Unfortunately I can't get it to accept the code.
Is it possible to nest tags like this? Or is there a better approach?
TIA,
Duffy
FWIW here's the code:
Code: Select all
echo' <div id="menu_vert">';
echo' <h4>In This Newsletter:</h4>';
echo' <h2 class="accessibility">Navigation</h2>';
{cms_module module="menumanager" template="newsletter-vert" start_element="'.$params['start'].'" collapse="0"};
echo' <hr />';
echo' </div>';
echo' <div class="hr"></div>';