I have the following code that I would like to include in the template, if it exists otherwise, to return the content directly.
{if $smarty->template_exists("$tpl_dir./cms.tpl")}
{include file="$tpl_dir/$cms->link_rewrite.tpl"}
{ else }
{$cms->content}
{ /if }
As far as I understand, my syntax is correct, but I could be wrong, as I am new to this. Any idea what I am doing wrong (I think maybe concatenation)?
source
share