[solved] Smarty: How to make a condition
Posted: Mon Oct 31, 2011 7:09 am
Hi! Sorry. I badly speak English.
There is a global_block or news_block. How to make a condition for show only on the main page?
Example 1:
Example 2:
Where look at variable pages in the code CMS?
There is a global_block or news_block. How to make a condition for show only on the main page?
Example 1:
Code: Select all
{if action='index'}
block 1
{/fi}
Code: Select all
{if action='about'}
block 1
{else}
block 2
{/fi}