Welcome, Guest. Please login or register.
Did you miss your activation email?


Login with username, password and session length

Search

 
Advanced search

8043 Posts in 1856 Topics- by 2099 Members - Latest Member: roi
Pages: [1]   Go Down
Print
Author Topic: Customizing event view  (Read 368 times)
0 Members and 1 Guest are viewing this topic.
Chris
Guest
« on: January 05, 2003, 10:48:00 AM »

When you click on a event in main calendar you are taken to another page which shows you the event details. By default this page also displays header and footer information from main calendar page.

I would like to use a different header and footer for this event detail page...can someone tell me in what file I would modify this for the event detail page only??

Thanks in advance
Chris

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 230

Please don't PM me. Post in the open forum.


WWW
« Reply #1 on: January 05, 2003, 02:19:00 PM »

** By default this page also displays header and footer information from main calendar page. **

It depends on which templates you're using for your calendar. If you're using the Default templates, that happens because it is the same page, just displaying different results.

** can someone tell me in what file I would modify this for the event detail page only? **

If you're using the Default templates, you'd make the changes in the default.html template file.

Dan O.

------------------

Logged
John
Guest
« Reply #2 on: January 05, 2003, 05:27:00 PM »

Dan,
Yes I am using default template. However if I modify one as you suggest it will change in both. I am trying to use different header and footer info in the detailed event view than I am am using in calendar view.
Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 230

Please don't PM me. Post in the open forum.


WWW
« Reply #3 on: January 05, 2003, 06:48:00 PM »

** if I modify one as you suggest it will change in both. **

Yes. You'll have to use conditionals like is already used in the template. Eg.

if ($VIEW eq "Event") {
do something
} else {
do something else
}

Of course, written in CalendarScripts' ASP type code (see the documentation).

Dan O.

------------------

[This message has been edited by DanO (edited January 05, 2003).]

Logged
Alvy
New Member
*

Karma: 0
Offline Offline

Posts: 0


WWW
« Reply #4 on: July 21, 2003, 12:54:00 AM »

A solution I found was to call an include for the month view and not the event view. ie
Right afer the Body tag in default.html find
<% if ($VIEW eq "Month") { %>
add the line
<!--#include file="monthheader.txt"-->

then put the monthheader.txt, which contains the html you need for your header, in the template folder.

You could find similar solution for other views as well.

------------------

Logged
Pages: [1]   Go Up
Print
Jump to: