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: Show Current Calendar Name  (Read 265 times)
0 Members and 1 Guest are viewing this topic.
christianb
Guest
« on: February 17, 2005, 04:48:00 PM »

How would someone edit the default.html to show the current calendar (if say 6 calendars were being used)?

For example.  User is on calendar4 and jumps to calendar2.  How would the user, other than looking at the URL or a color coded navigation bar, see what calendar they are viewing?  Such as:

Current Calendar: [name of calendar]

Thanks for your help.  

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: February 18, 2005, 01:34:00 AM »

** How would someone show the current calendar  **

From the Documentation: Defined Variables  

quote:
Template Tags

These are special tags that are specific to the calendar display, and have special meaning.

<% code %> Evaluate Perl code
<%= expression %> Print out the value of expression (*Note the "=" sign!)
<% CALENDAR NAME %> The name of the currently-displayed calendar
<% CALENDAR KEY %> The key of the currently-displayed calendar (to be used for linking, etc)
<% CALENDAR DESCRIPTION %> The description of the currently-displayed calendar


So to print out the current calendar's name, put the tag <%= CALENDAR NAME %> where appropriate in the template.

JFYI

Dan O.


[This message has been edited by DanO (edited February 18, 2005).]

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