On Mar 29, 2006, at 5:23 PM, Lennart Regebro wrote:
Joachim Schmitz wrote:
I have a calendar in workspaces:
Do I have to publish a calendar in a section to make it public
viewable?
Well, strictly speaking no, you can set the local roles on the
calendar itself. But typically you would publish it, yes.
Can I display that specific calendar in a calendar templet?
No, we don't have a calendar template for the cps shared calendar.
How would I display upcoming events from that calendar on a public
page?
Basically, you do getOccurrences( (to, from)) on the calendar,
where to and from are datetime.datetime objects. That will return a
list of events in the period, which you can simply loop over.
However, there is one tricky bit: The calendar has no publicly
viewable methods, as it is written in Five. You will have to make a
"view" for it.
Hmmm. I think someone did something like that, maybe we have an
example code... I'll check.
You made a blog entry on this after helping me making a page that
summarizes the user's current events.
---------
Georges Racinet Nuxeo SAS
[EMAIL PROTECTED] http://nuxeo.com
Tel: +33 (0) 1 40 33 71 73
_______________________________________________
cps-devel mailing list
http://lists.nuxeo.com/mailman/listinfo/cps-devel