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

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Post Reply
gokujou
New Member
New Member
Posts: 3
Joined: Tue Jul 01, 2008 8:50 pm

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

Post 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!
cyberman

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

Post 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}
Post Reply

Return to “Layout and Design (CSS & HTML)”