plone / Products.CMFPlone

The core of the Plone content management system
https://plone.org
GNU General Public License v2.0
254 stars 191 forks source link

Collections only show one instance of a recurring event #3648

Open cdw9 opened 2 years ago

cdw9 commented 2 years ago

What I did:

What I expect to happen:

I expect the collection would display all occurrences of the event separately

What actually happened:

Only the one event is displayed

What version of Plone/ Addons I am using:

Tested on the Plone 5 and Plone 6 demos

davisagli commented 2 years ago

There is a special event_listing view which includes the recurrences: https://github.com/plone/plone.app.event/blob/master/plone/app/event/browser/configure.zcml#L25

(Normally collections simply query the catalog and each result is a different content item. Event recurrences need to be queried in a different way.)

cdw9 commented 2 years ago

There is a special event_listing

Yes, but if you want to build a custom listing based on some other condition, you can't do that TTW.

I realize this may be more of a feature request, but wanted to throw it out there.

davisagli commented 2 years ago

@cdw9 It looks like the event_listing view implementation (https://github.com/plone/plone.app.event/blob/master/plone/app/event/browser/event_listing.py) has some code to use the query from a collection as the starting point for looking up the event recurrences. But, I haven't tried it myself.