(Smarty Capture Link)
I want to call a UDT in the MenuManager with one parameter which is the URL.
It doenst work like this:
Code: Select all
{capture name=uri}
{$node->url}
{/capture}
{if $smarty.capture.uri ne ''}
<div id="test">{switch_lang url="$smarty.capture.uri"}</div>
{/if}
Code: Select all
...
{if $smarty.capture.uri ne ''}
{$smarty.capture.uri}
{/if}
Code: Select all
string(149) "Smarty error: [in module_db_tpl:MenuManager;languages line 19]:
syntax error: $smarty. is an unknown reference (Smarty_Compiler.class.php, line 2126)"
Code: Select all
{assign var='name' value='{$node->url}'}
The value of $name is {$name}.