[solved] Different header image on each 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
User avatar
Eleco
Forum Members
Forum Members
Posts: 24
Joined: Tue Sep 18, 2007 1:16 pm

[solved] Different header image on each page

Post 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!
Last edited by Eleco on Wed Nov 04, 2009 7:34 am, edited 1 time in total.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: Different header image on each page

Post by calguy1000 »

Please do a search, this has been answered numerous times before.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
User avatar
Eleco
Forum Members
Forum Members
Posts: 24
Joined: Tue Sep 18, 2007 1:16 pm

Re: Different header image on each page

Post 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...
baresi
Forum Members
Forum Members
Posts: 129
Joined: Fri Jul 27, 2007 4:15 pm

Re: Different header image on each page

Post by baresi »

Connie

Re: Different header image on each page

Post 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
User avatar
Eleco
Forum Members
Forum Members
Posts: 24
Joined: Tue Sep 18, 2007 1:16 pm

Re: Different header image on each page

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

Re: [solved] Different header image on each page

Post by Connie »

Cheers and good luck!
Post Reply

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