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)display in grid format and the other as a list
Pages: [1]   Go Down
Print
Author Topic: display in grid format and the other as a list  (Read 395 times)
0 Members and 1 Guest are viewing this topic.
olivia
Guest
« on: December 02, 2003, 08:57:00 PM »

I have 2 calendars on my website.  Both are using the oldstyle template.  One I would like to display in grid format and the other as a list.  
Is this possible?  
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: December 03, 2003, 01:12:00 PM »

You would likely need to make a conditional in the first code line of the default.html (and maybe other) template changing the default style to be used depending on the calendar being displayed. This is a pseudo (not real) code example:

if (other calendar)
$STYLE = $in{style} | | $in{calendar_style} | | "List";
else
$STYLE = $in{style} | | $in{calendar_style} | | "Grid";

Dan O/

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

[This message has been edited by DanO (edited December 03, 2003).]

Logged
olivia
Guest
« Reply #2 on: December 03, 2003, 06:14:00 PM »

I'm new to this... can you please be more specific?

for the

if (other calendar)  

what would i put in () if the name of one calendar is called Cats and the other is Dogs

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: December 03, 2003, 08:08:00 PM »

if ($CALENDAR_KEY eq "Cats")
{
$STYLE = $in{style} | | $in{calendar_style} | | "List";
}
else
{
$STYLE = $in{style} | | $in{calendar_style} | | "Grid";
}


Dan O.

PS. There should be NO spaces between the | | in the code above. This forum software adds them.

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

Logged
Christina
Guest
« Reply #4 on: December 04, 2003, 09:03:00 PM »

thank you!!
Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 230

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


WWW
« Reply #5 on: December 05, 2003, 01:18:00 PM »

Did it work? Others might be interested in knowing.

Dan O.

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

Logged
olivia
Guest
« Reply #6 on: December 09, 2003, 06:34:00 PM »

Yes your solution worked, thanks.
Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 230

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


WWW
« Reply #7 on: December 09, 2003, 07:14:00 PM »

Glad to hear it.

Dan O.

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

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