Page 1 of 1

Show Content on some pages

Posted: Sat Feb 27, 2010 10:17 pm
by andrewvideo
hi everyone,

How I would do this in my main template?

if page=hone
show {global_content name="Comments"}
else show {global_content name="MainSiteHeader"}

I can't find any infro on this.

Thank you

Andrew

Re: Show Content on some pages

Posted: Sat Feb 27, 2010 11:15 pm
by klenkes
Hi Andrew.

It would be looking like this:

Code: Select all

{if $page_alias eq "home"}
{global_content name="Comments"}
{else}
{global_content name="MainSiteHeader"}
{/if}
If you intend to use CMSMS on a regular basis, and I hope so, I suggest that you browse the Smarty Doku now and then. It's quite easy and lightweighted to read.
http://www.smarty.net/manual/en/

Bernd

Re: Show Content on some pages

Posted: Sat Feb 27, 2010 11:30 pm
by andrewvideo
That was quick. Thank you very much, I well try it now.

Thank you

Andrew