[SOLVED] Inserting content for specific pages or site levels

General project discussion. NOT for help questions.
Post Reply
merlowe
Forum Members
Forum Members
Posts: 12
Joined: Sun Oct 24, 2010 3:14 pm

[SOLVED] Inserting content for specific pages or site levels

Post 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?
Last edited by merlowe on Mon Oct 25, 2010 10:26 am, edited 1 time in total.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Inserting content for specific pages or site levels

Post 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...
merlowe
Forum Members
Forum Members
Posts: 12
Joined: Sun Oct 24, 2010 3:14 pm

Re: Inserting content for specific pages or site levels

Post by merlowe »

Thanks
Post Reply

Return to “General Discussion”