nesting a Smarty Tag within a UDT

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
durangoduf

nesting a Smarty Tag within a UDT

Post by durangoduf »

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:

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>';
Last edited by durangoduf on Fri Aug 11, 2006 8:42 pm, edited 1 time in total.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: nesting a Smarty Tag within a UDT

Post by calguy1000 »

why do this in a udt,

{menu start_element=$page_alias} should do the trick.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Locked

Return to “CMSMS Core”