Post by Brett PattersonDear CalendarX people,
Please, can someone tell me where I can customise the
display of events, so that the Creator and/or the Attendees
are displayed in the Calendar.
The default view only shows the Title and Dates.
Regards,
Brett Patterson
Hi Brett,
That would be the "eventstring" code, which is placed into the calendar
in the "eventlister" and "mMeventlister" macro codes, found in
CX_props_macros. However, the "eventstring" is generated differently for
each view, and is found in these Python scripts:
getEventsDictDay.py
getEventsDictMonth.py
getEventsDictMMonth.py
getEventsDictWeekbyday.py
getEventsDictWeekbyhour.py
The main line you are interested looks like this (from the Day script):
eventstring = '<strong>'+eventtitle+'</strong> (start: '+stime+' -
'+smonth+' '+sday+', '+syear+' | end: '+etime+' - '+emonth+' '+eday+',
'+eyear+')'
where all those variables have been set in the code lines above. If you
want to add the creator, you'll have to define its use, like this:
eventcreator = event.Creator
and then use it in your new eventstring code:
eventstring = '<strong>'+eventtitle+'</strong> (start: '+stime+' -
'+smonth+' '+sday+', '+syear+' | end: '+etime+' - '+emonth+' '+eday+',
'+eyear+')+ ' Created by '+eventcreator
same for other features that are included in the metadata of the
portal_catalog for each Event.
NOTE: there are more than one lines that generate "eventstring" depending
on the script and that view's usage/display of continuing and late events.
Sorry for the delay, Good luck.
+lupa+