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
Calendar Script CommunityCustomizationCustomizing CalendarScript (Moderators: scott, DanO, Marty)Can CalendarScript display this way?
Pages: [1]   Go Down
Print
Author Topic: Can CalendarScript display this way?  (Read 357 times)
0 Members and 1 Guest are viewing this topic.
OperaDivaMommy
New Member
*

Karma: 0
Offline Offline

Posts: 0

mommy, opera singer, violinist, website designer


WWW
« on: May 03, 2003, 10:58:00 PM »

I'm working on a website for my voice teacher.

She currently has a listing of past and upcoming performances, but would like to be able to update it herself.  However, she'd still like it to display the way it currently does.

Can someone give me some guidance on how I can do this?  I suspect it's probably pretty simple, but my brain is on overload right now.
http://www.julianagondek.com/bio/news.htm

Thanks in advance.

Laura

Logged

Laura Ruiz
http://www.increDesign.com

==========
This will be our reply to violence:
 To make music more intensely,
 more beautifully,
 more devotedly than ever before.
    -Leonard Bernstein
==========

DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 230

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


WWW
« Reply #1 on: May 04, 2003, 02:50:00 PM »

You should be able to set up the calendar's default display to 'List' view. You would then need to customize the 'List View' display of the default.html template to display the event details in addition to just the event titles.

Dan O.

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

Logged
OperaDivaMommy
New Member
*

Karma: 0
Offline Offline

Posts: 0

mommy, opera singer, violinist, website designer


WWW
« Reply #2 on: May 07, 2003, 02:25:00 PM »

I probably should have been a little more specific.  Sorry.

I don't doubt that I can make the calendar *look* the way that page looks, what I'm concerned about is displaying the date ranges the way they are on the page:  top section displays everything (theoretically) for the next 6 months, while the bottom portion displays everything from the previous 6 months.

My suspicion is that I'd need to be able to display 2 different views of the same calendar.

OR, the other option would be to set things up so that old events can be moved to another calendar all together?  How difficult would that be to set up?

Laura

------------------
Laura Ruiz
http://www.increDesign.com

==========
This will be our reply to violence:
 To make music more intensely,
 more beautifully,
 more devotedly than ever before.
    -Leonard Bernstein
==========

Logged

Laura Ruiz
http://www.increDesign.com

==========
This will be our reply to violence:
 To make music more intensely,
 more beautifully,
 more devotedly than ever before.
    -Leonard Bernstein
==========

DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 230

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


WWW
« Reply #3 on: May 07, 2003, 05:17:00 PM »

** top section displays everything for the next 6 months **

You could modify the ssi.html template file to retrieve any number of events and include them into another file using SSI. The only change needed is to change this line:

&getEvents( {'duration'=>$in{duration}} );

to

&getEvents( {'duration'=>$in{duration}, 'range'=>$in{range}, 'startdate'=>$in{startdate}, 'enddate'=>$in{enddate} } );

You can then pass the start and and date to it for the events to be displayed. If you included the template twice, once with upcoming events and another for past events, both could be shown on the same page.

There are 2 problems with that which are:

1. Your host would have to be able to use the 'include virtual' SSI tag to pass the variables like:

<!--#include virtual="/cgi-bin/calendar.pl?template=ssi.html&startdate=20020101&enddate=20020601"-->

2. You'd have to pass the start and end dates (which would change all the time) in that SSI call.

If you're good at math or programming you could program the template to calculate the start or end date of the events to be displayed from the current date string $DATESTRING. That way you wouldn't need to pass either, just some variable so the template knows to display past or upcoming events.

The difficulty with that would be to determine a date string 6 months previous to a date like 20030101. You couldn't just subtract a number of months from it and arrive that the correct start date.

There's one option for you to work on anyway.

Dan O.


[This message has been edited by DanO (edited May 07, 2003).]

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