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


Login with username, password and session length

Search

 
Advanced search

8054 Posts in 1860 Topics- by 2099 Members - Latest Member: roi
Pages: [1]   Go Down
Print
Author Topic: Meta Format  (Read 418 times)
0 Members and 1 Guest are viewing this topic.
srichter
New Member
*

Karma: 0
Offline Offline

Posts: 0


WWW
« on: November 18, 2004, 05:59:00 PM »

We appreciate the folks who made this useful calendar and the meta plug in.  We'll be showing our appreciation with $$ soon.  
We are using calendarscript for displaying on call staff in our hospital.  The most important calendar is the meta calendar which is set to display the current day in list format.  The data that's displayed is Event and a link to the description of this event.  What we'd like to see is, the calendar name, the event and a link to the description.  I've looked through the code and gotten dizzy.  I've also spent quite a bit of time looking around these forums to see if anyone else had the same problem.  

By the way- our events are a person's name, the description is contact information for that person.  So for the meta to look right, it needs to look like -OR Jim (details)

Thanks

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 235

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


WWW
« Reply #1 on: November 19, 2004, 12:28:00 PM »

** What we'd like to see is, the calendar name, the event and a link to the description. **

All the regular calendar views are formatted by the default.html template file. The event title is displayed with the tag <%= EVENT FIELD(title) %>

The "Day" events code starts after the tag <%-- DAY VIEW --%> and the "List" view portion starts after the tag <%-- LIST VIEW --%>

From the Meta Calendar plug-in _installation.txt file under OPTIONS:

quote:
In the calendar view, $site_cal->{$EVENT->{details}->{calendarref}} will contain the calendar *name* the event was found on.
You can print that information using a tag like <%= $site_cal->{$EVENT->{details}->{calendarref}} %>

So, you need to find the appropriate section(s) of the default.html template file and add the necessary tag to print the calendar name.

Dan O.

[This message has been edited by DanO (edited November 19, 2004).]

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