[solved] {if $page_alias == 'something'}{do nothing....?}
Posted: Fri Apr 20, 2012 8:20 am
I am trying to figure out if this is possible!
I would like my news summary to appear on every page except for my news page, which has the summary as the main content.
How do I achieve this without doing what I am at the moment which puts a content block which is surplus to requirements on every page (I don't even need it on news page as I have another content block which appears below the news summary or in it's place if it doesn't exist.)
current code
I would like my news summary to appear on every page except for my news page, which has the summary as the main content.
How do I achieve this without doing what I am at the moment which puts a content block which is surplus to requirements on every page (I don't even need it on news page as I have another content block which appears below the news summary or in it's place if it doesn't exist.)
current code
Code: Select all
{if $page_alias == 'news'}
{content block='some content'}
{else}
{news number="1"}
{/if}