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.


--
Lennart Regebro, Nuxeo     http://www.nuxeo.com/
CPS Content Management     http://www.cps-project.org/
_______________________________________________
cps-devel mailing list
http://lists.nuxeo.com/mailman/listinfo/cps-devel

Reply via email to