Page 1 of 1

RESOLVED One Template - many headers?

Posted: Sun Jan 20, 2008 3:53 pm
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

Re: One Template - many headers?

Posted: Sun Jan 20, 2008 11:37 pm
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.

Re: One Template - many headers?

Posted: Mon Jan 21, 2008 4:52 pm
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?

Re: One Template - many headers?

Posted: Mon Jan 21, 2008 5:28 pm
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.