Page 1 of 1

I want a special div to show up on the landing page.

Posted: Tue Jul 08, 2008 2:46 pm
by gokujou
I know in wordpress you can check to see if the page is home in a template to make something only happen if the page is set to be the landing page. I was wondering if there was a similar way to do this in CMSMS with smarty tags in the layout template. Thank you!

Re: I want a special div to show up on the landing page.

Posted: Wed Jul 09, 2008 5:34 am
by cyberman
You can use variable $page_alias for this like

Code: Select all

{if $page_alias == 'home'}
   <p> Home content</p>
{else}
   <p> Other content</p>
{/if}