Page 1 of 1

[SOLVED] Inserting content for specific pages or site levels

Posted: Sun Oct 24, 2010 5:33 pm
by merlowe
I want to be able to control certain content to show up only when the site is on a given level.

Say for instance i want certain content to be displayed by the template to show up when it is on the homepage or a given section/page, how do i achieve that?

Do i use PHP to create an "if..else" check and is there a feature in CMSmadesimple that i can then reference to detect what page it is?

Or is there some other way of doing this?

Re: Inserting content for specific pages or site levels

Posted: Sun Oct 24, 2010 6:05 pm
by Dr.CSS
{if $page_alias == home}some thing{elseif $page_alias == another-alias}another thing{else}some default text{/if}

If you are looking for section/parent page stuff it involves more smarty...

Re: Inserting content for specific pages or site levels

Posted: Mon Oct 25, 2010 10:25 am
by merlowe
Thanks