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 CommunityCustomizationHacks and Mods (Moderators: scott, DanO, Marty)Show Calendar Description?
Pages: [1]   Go Down
Print
Author Topic: Show Calendar Description?  (Read 331 times)
0 Members and 1 Guest are viewing this topic.
CyberDivan
New Member
*

Karma: 0
Offline Offline

Posts: 0

Web Designer


WWW
« on: September 16, 2003, 09:39:00 AM »

When I us multiple calendars, I need a mod to show the Calendar Name and/or the Calender Description on the VIEW CALENDAR.

Does anyone know how I can do this?

------------------
Steve Pruner
The CyberDivan

Logged

Steve Pruner
The CyberDivan
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 230

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


WWW
« Reply #1 on: September 16, 2003, 12:57:00 PM »

** I need a mod to show the Calendar Name and/or the Calender Description on the VIEW CALENDAR. **

I assume you mean show the calendar name beside the "View Calendar" link on the administration menu?

That may be able to be accomplished by editing the main.html admin template as follows:

Find the line

<% if ($command->{description} ne "") { %> : <%= $command->{description} %><% } %>

and add this line directly after it:

<% if ($command->{title} eq "View Calendar") { %> <% CALENDAR NAME %><% } %>

You could also use <% CALENDAR DESCRIPTION %> in place of <% CALENDAR NAME %> in the above line to show the calendar description instead.

Dan O.

[This message has been edited by DanO (edited September 16, 2003).]

Logged
CyberDivan
New Member
*

Karma: 0
Offline Offline

Posts: 0

Web Designer


WWW
« Reply #2 on: September 16, 2003, 01:50:00 PM »

Dan,

Thanks.. I discovered that since I am using the 3.0 version that <%Calendar Name%> doesn't work in this version. So I am using <%CALENDAR%>. It brings up the KEYWORD. As long as I use the calendar name in the KEYWORD field it works.  Not too elegant but it works.

Steve

------------------
Steve Pruner
The CyberDivan

Logged

Steve Pruner
The CyberDivan
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 230

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


WWW
« Reply #3 on: September 16, 2003, 06:04:00 PM »

** since I am using the 3.0 version that <%Calendar Name%> doesn't work  **

Than try <%= $Calendar->{name} %>

Dan O.

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

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