Page 1 of 1

[solved]change header image per page

Posted: Fri Sep 04, 2009 9:29 pm
by De_Charel
Hi

I successfully installed CMSMS 1.6.4, the installation works like a charm.

I wondered if there was a way to change the header image from page to page, per category an image would be nice, with the possibility of setting a default or random image. I searched the net, but couldn't find such a feature.

Maybe you can give me a few suggestions how to get this done?
Thanks!

Greets Charel

Re: change header image per page

Posted: Sat Sep 05, 2009 2:53 am
by jmcgin51
how about by page_alias?

{if $page_alias eq 'page1'}

{elseif $page_alias eq 'page2'}

{else}

{/if}

This is just a simple example.  There are many other ways to do things like this, including a plugin to randomly rotate images.  Check the Forge.

Re: change header image per page

Posted: Sat Sep 05, 2009 2:56 am
by calguy1000
This has been discussed numerous times... There are multiple ways to do this in CMSMS depending upon your needs.

Re: change header image per page

Posted: Sat Sep 05, 2009 11:53 am
by Andiministrator
If the functionality of random image is not that important, have a look on my ImageList Plugin: http://dev.cmsmadesimple.org/projects/imagelist.

Re: change header image per page

Posted: Sat Sep 05, 2009 2:00 pm
by seensite
... ... ... and there is the Banners'module which do that too, especially you can categorize your images. There's no content yet, but header uses Banners : http://www.centpourcent.ch/

Re: [solved]change header image per page

Posted: Mon Sep 07, 2009 2:29 pm
by De_Charel
Thx for the fast and nice replies.

I fixed it with this kind of code in the template, which works fine.
{if $page_alias eq 'page1'}

{elseif $page_alias eq 'page2'}

{else}

{/if}

Kind regards
Charel