Show Content on some pages

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
andrewvideo
Forum Members
Forum Members
Posts: 127
Joined: Fri Nov 28, 2008 10:28 pm

Show Content on some pages

Post 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
klenkes
Power Poster
Power Poster
Posts: 307
Joined: Mon Sep 08, 2008 9:43 am

Re: Show Content on some pages

Post 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
andrewvideo
Forum Members
Forum Members
Posts: 127
Joined: Fri Nov 28, 2008 10:28 pm

Re: Show Content on some pages

Post by andrewvideo »

That was quick. Thank you very much, I well try it now.

Thank you

Andrew
Post Reply

Return to “CMSMS Core”