setting varibles for content blocks

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.
Locked
uniqu3

Re: setting varibles for content blocks

Post by uniqu3 »

Check against alias

Code: Select all

{if $page_alias != 'alias-where-you-do-not-want-it'}
  {global_content name='foo'}
{/if}
or use a content block to disable it, so GCB would be displayed unless something is entered in that block.

Code: Select all

{content block='disable_gcb' label='Disable GCB' assign='no_gcb' oneline='true' size='10'}
{if empty($no_gcb)}
  {global_content name='foo'}
{/if}
 
mcDavid
Power Poster
Power Poster
Posts: 377
Joined: Tue Mar 31, 2009 8:45 pm

Re: setting varibles for content blocks

Post by mcDavid »

Use an other template for that one page.
Locked

Return to “CMSMS Core”