Page 1 of 1

[solved] Different header image on each page

Posted: Tue Nov 03, 2009 10:06 pm
by Eleco
Hi, I'd like to have a different header image in each page of my site. The header informations are in the template, and I can't pass them into the content of the single pages. Do I need to define a "user defined tag"?
Would it be possible to add to the "edit content page" a field to define which image to use on that page?
Do I need to use the "Smarty data or logic that is specific to this page" box (under the "Option" label)?

Thankyou for any help!

Re: Different header image on each page

Posted: Tue Nov 03, 2009 10:07 pm
by calguy1000
Please do a search, this has been answered numerous times before.

Re: Different header image on each page

Posted: Tue Nov 03, 2009 10:16 pm
by Eleco
I've done many searches before posting, but obviously I can't figure out the right keywords...
I'll try some more. Anyway any help (on keywords too) will be apreciated...

Re: Different header image on each page

Posted: Wed Nov 04, 2009 4:30 am
by baresi

Re: Different header image on each page

Posted: Wed Nov 04, 2009 7:21 am
by Connie
Just do it like that:

1st possibility:  define a new content block in your template and in each page add a picture into that contentblock

2nd possibility: if you do not want to have pictures on each page, define two different templates, one with that additional contentblock and one without that (maybe with a standard image there)

so you can decide for each page whether you want to integrate a special image or keep the page without image

see here: http://wiki.cmsmadesimple.org/index.php ... ent_Blocks

Re: Different header image on each page

Posted: Wed Nov 04, 2009 7:34 am
by Eleco
Yeah! Content blocks! That's what I was looking for!
Thankyou Connie and thankyou Baresi too (nice solution you suggested me, but I needed something easier!)
:D I'll work on this now. Ciao!

Re: [solved] Different header image on each page

Posted: Wed Nov 04, 2009 5:11 pm
by Connie
Cheers and good luck!