I've inherited a project where the dev uses this on a document type that is used for nested content. I am trying to use Calendar.getEvents to get the list of events however I am not receiving anything.
Does getEvents work with nested content or do the events need to be child documents?
getEvents is looking for the calendar data type or property type directly on the node. So I don't think it will work with Nesten Content.
(You can get the code from GitHub and maybe add your own method where you collect all the nesten content nodes into a DynamicPublishedContentList and send that to the getEventList method.)
Calendar.getEvents with Nested Content
I've inherited a project where the dev uses this on a document type that is used for nested content. I am trying to use Calendar.getEvents to get the list of events however I am not receiving anything.
Does getEvents work with nested content or do the events need to be child documents?
getEvents is looking for the calendar data type or property type directly on the node. So I don't think it will work with Nesten Content.
(You can get the code from GitHub and maybe add your own method where you collect all the nesten content nodes into a DynamicPublishedContentList and send that to the getEventList method.)
I'll probably just change it so the events are children instead as there doesn't seem to be any specific reason the other dev used nested content.
Thanks for the prompt reply.
is working on a reply...