RESOLVED One Template - many headers?

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
bcsweb1
Forum Members
Forum Members
Posts: 54
Joined: Tue Nov 13, 2007 2:39 pm

RESOLVED One Template - many headers?

Post by bcsweb1 »

I have a site that basically uses the same template within the whole site....

However each page has a different header.

This has caused me to make a "seperate" template for each page - which is not a smart thing to do...

The only thing that changes in the header is the header image - everything else in the templates are the same...

How do you use one template but can switch out the header based on the page they are on?

I did do a search on forum boards and there is a lot of talk about the header but not one template that uses different header images...

Thank you
Last edited by bcsweb1 on Mon Jan 21, 2008 7:01 pm, edited 1 time in total.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm
Location: Fernie British Columbia, Canada

Re: One Template - many headers?

Post by calguy1000 »

try just putting this into your page template:

  and see what you get..... then you can take it from there.

or ...

anyways, you get the idea.
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.
bcsweb1
Forum Members
Forum Members
Posts: 54
Joined: Tue Nov 13, 2007 2:39 pm

Re: One Template - many headers?

Post by bcsweb1 »

Ok, if we use this:



 

{$page_alias}.jpg

Does that mean that each header image must have the same name of the page?

For example, we have a page called fundraisers - does that mean the image must be called fundrasiers.jpg?
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm
Location: Fernie British Columbia, Canada

Re: One Template - many headers?

Post by calguy1000 »

that's the example I supplied, yes.... there are numerous ways to do this, but you haven't described your page arrangement or exactly what you need to do.

Also, I recommend you read the smarty manual at http://smarty.php.net/manual and read some of the sticky threads in the various forums.
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.
Post Reply

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