Hello I would like to add the folowing to my template:
{global_content name='{content block="block1" oneline="true"}'}
I get the error: string(59) "Smarty error: unable to read resource: "globalcontent:{php"" '}
There should be a simple solution but I cant seem to find it, hope someone will help. Thanks.
[SOLVED] tag within tag
[SOLVED] tag within tag
Last edited by sumpson on Thu Nov 10, 2011 12:42 pm, edited 1 time in total.
Re: tag within tag
Code: Select all
{content block='block1' oneline='true' assign='block1'}
{global_content name=$block1}
Re: tag within tag
Bedankt (thanks) Jos!
got this now:
otherwise I get the error: when it's empty
got this now:
Code: Select all
{content block='block1' oneline='true' assign='block1'}
{if !empty($block1)}{global_content name=$block1}{/if}
Code: Select all
String(55) "Smarty error: unable to read resource: "globalcontent:""