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


Login with username, password and session length

Search

 
Advanced search

8018 Posts in 1850 Topics- by 2099 Members - Latest Member: roi
Pages: [1]   Go Down
Print
Author Topic: 7 day instead of week  (Read 277 times)
0 Members and 1 Guest are viewing this topic.
TechnoShroom
New Member
*

Karma: 0
Offline Offline

Posts: 7


WWW
« on: September 23, 2004, 11:08:00 PM »

I'm trying to figure out how to change my default week list view to a 7 day view. That is, instead of showing the current week, Sunday through Saturday, I would like the week to start with today (whatever day that may be) and show forward for a total of seven days. I would like to leave the week grid view as is though. Is there any way to do this?

[This message has been edited by TechnoShroom (edited September 23, 2004).]

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 218

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


WWW
« Reply #1 on: September 24, 2004, 12:34:00 AM »

You'd probably have to make an additional conditional in the default.html template file in the area of:

elsif ($VIEW eq "Week") { &getEvents( { 'range'=>'week' } ); }

And if it was "List" view, use something like the following (from just a little further down in the default.html file) to retrieve the events:

&getEvents( {'duration'=>$in{duration}, 'range'=>$in{range}, 'startdate'=>$in{startdate}, 'enddate'=>$in{enddate} } );
(should be on one line)

I don't know exactly what values you'd call it with though.

Dan O.

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

Logged
TechnoShroom
New Member
*

Karma: 0
Offline Offline

Posts: 7


WWW
« Reply #2 on: September 24, 2004, 07:05:00 AM »

Yes, I was looking at that but I don't have a real handle on how to modify it to fit my needs.

Thank you for taking the time to take a look.

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

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 218

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


WWW
« Reply #3 on: September 24, 2004, 06:59:00 PM »

There is a couple of problems besides just getting the calendar to spit out the right number of days' events.

The main calendar template only has code to display "Day", "Week", Two-Week, Three-Week, ... Month, and Search view results. A new one would have to be added for your intended display as well a new navigation code for the top of the page because it suffers from the same restrictions.

Can you not use the SSI template on some other page at your site and just link it to the main calendar? That template is designed to display just a list of upcoming events for whatever duration you define.

JFYI

Dan O.

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

Logged
TechnoShroom
New Member
*

Karma: 0
Offline Offline

Posts: 7


WWW
« Reply #4 on: September 24, 2004, 07:12:00 PM »

I saw that. I also took a look in the calendar.pl where it defines a week but that would change both the grid and list.

Right now I have the SSI set up to deliver today's events to the home page. Using SSI to create another display might be doable but it wouldn't be ideal because as one navigates around the calendar it's inevitable to come back to the week list view and the difference in formating would probably be confusing or annoying.

I'll still think about this though. It's a minor issue right now.

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

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