PDA


View Full Version : How to control headers?


DougM
04-25-2005, 09:32 PM
I am trying to use a seperate header for my calendar and thought I would just replace $header with my HTML code in the CALENDAR template, simple enough.

It doesn't work. The new header appears below the navbar and even deleting $header in CALENDAR has no effect on the actual header. I'm guessing this is now controlled by CMPS which is why I posted this here. I could certainly be wrong.

I'm creating a seperate HTML header for home, forums, links directory and calendar. I would use conditionals except that there are none that work for calendar pages as far as I can tell. Any ideas on how I might include a seperate header for calendar pages?

Thank you.

EDIT - This whole question can be better summarized as such:

If you wanted these headers how would you do it?

Home (CMPS index) = Home Page Header
Forums = Forums Header
Links = Links Header
Calendar = Calendar Header

My only problem is the calendar header since I have figured out the rest. I thought I'd just replace $header in CALENDAR but read above. If anyone has this down then please do share.

Brian
04-26-2005, 01:22 PM
Your best bet is probably going to be to add something like this to your header template:

<if condition="THIS_SCRIPT == 'calendar'">

Calendar header here

<else />

Normal header here

</if>