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
RESOLVED One Template - many headers?
RESOLVED One Template - many headers?
Last edited by bcsweb1 on Mon Jan 21, 2008 7:01 pm, edited 1 time in total.
-
- Support Guru
- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
- Location: Fernie British Columbia, Canada
Re: One Template - many headers?
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.
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.
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.
Re: One Template - many headers?
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?
{$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?
-
- Support Guru
- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
- Location: Fernie British Columbia, Canada
Re: One Template - many headers?
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.
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.
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.