I lke to set init function based on template detection. Template detection is actually current template file using $smarty.template.
How to achieve result using standard smarty function. Example is the following:
Code:
{if $smarty.template == Mytemplatefile.tpl}
{/literal} {/nocache} {/if}
{nocache}
{literal}
Need help how to do in the correct way. Javascript file should not be shown if there is other tpl file.
Need help.