[SOLVED] tag within tag

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.
Post Reply
sumpson
Forum Members
Forum Members
Posts: 111
Joined: Thu May 08, 2008 6:35 pm

[SOLVED] tag within tag

Post by sumpson »

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.
Last edited by sumpson on Thu Nov 10, 2011 12:42 pm, edited 1 time in total.
Jos
Support Guru
Support Guru
Posts: 4020
Joined: Wed Sep 05, 2007 8:03 pm

Re: tag within tag

Post by Jos »

Code: Select all

{content block='block1' oneline='true' assign='block1'}
{global_content name=$block1}
sumpson
Forum Members
Forum Members
Posts: 111
Joined: Thu May 08, 2008 6:35 pm

Re: tag within tag

Post by sumpson »

Bedankt (thanks) Jos!

got this now:

Code: Select all

{content block='block1' oneline='true' assign='block1'}
{if !empty($block1)}{global_content name=$block1}{/if}
otherwise I get the error:

Code: Select all

String(55) "Smarty error: unable to read resource: "globalcontent:""
when it's empty
Post Reply

Return to “CMSMS Core”