How To Events-Create a custom calendar view


Create a custom calendar view:

This is an example of the path to your calendar as seen by patrons:
http://demo.evanced.info/events/lib/eventcalendar.asp

To show only children's programs, the path becomes:
http://demo.evanced.info/events/lib/eventcalendar.asp?et=children's+program
where "et" stands for Event Type, and "Children's Program" is one of your library's defined event types.

To show children programs for the next 60 days, the path becomes:
http://demo.evanced.info/events/lib/eventcalendar.asp?et=children's+program&nd=60
where "nd" stands for the next number of days.

The "libnum" switch and others, listed in the table below, can be used to show specific events offered at each location:
http://demo.evanced.info/events/lib/eventcalendar.asp?et=children's+program&nd=60&libnum=2

The switches (everything after "?") tell the system what to display and how to display it. The table below provides a reference for deciphering the switches.

df=

Tells the system what format to use when displaying the calendar – "list" or "calendar".

Example: df=list

dt=dr and
ds= and de=

These can be used to specify a date range.

dt=dr designates date range then "ds" is date start and "de" is date end. As in ds=2007-5-1&de=2007-5-7

nd=

Shows the events for the next XX number of days. [Default is 1]. [Path to event calendar]/eventcalendar.asp?nd=7

et=

This is used to limit the output to only certain event types. The default is to show all event types. You can specify multiple event types by separating them with a comma and a plus sign (et=Adult+Program,+Book+Discussion). Event types need to be alphabetically in order to work.

ag=

This is used to limit the output to only events for certain age groups. Similar to "et" above, you can specify multiple age groups by separating them with a comma and a plus sign (ag=children,+adult).

ln=

This is used to control the events for a given library/branch or events for all branches [Default is 0]. Use the library number (ln=x) or "ALL" (ln=ALL) to specify which branches’ events that are to be displayed or all. "ALL” needs to be in all capital letters.

libnum=

Tells the system which library or branch number is the "Home" branch for this view. Setting the Home branch in this case determines which style configuration (Branch 1, Branch 2, etc.) is shown, in addition to listing the events of that branch. "libnum=999" tells the system to use the All Branches style configuration.

ln= versus libnum=

"ln" tells the system which branch, in a multi-branch system, to display. "libnum" tells the system which branch is your Home (default) branch and applies the associated configuration of that branch.

pagetitle=

This is used to change the title of the page at the top.

Example: pagetitle=Available Events, default is "Programs and Events".

kw=

This is used to limit output to only events which contain a given keyword in their title, description, other information, or instructor fields. The default is to show all events. Example: kw=class

libnameintitle=

This is used to override the system setting of whether the Library Name is displayed at the top of the page or not. =1(Displayed) =0(Hidden)

"%2C" and "%2C+"

The browser inserts codes such as "%20" and "%2C" to represent special characters, such as spaces or commas.

Note: There are common switches between these and XML-RSS Switches, such as: ag, et, and kw.

 

Note: Using URL switches in the calendar link; specifically "pointer=inhouse&nopw=1", will allow limited access to private calendars without a password.


 



Article ID: 95
Created On: Tue, Sep 27, 2011 at 4:00 PM
Last Updated On: Thu, Jan 24, 2013 at 7:44 PM

Online URL: http://kb.demcosoftware.com/article.php?id=95