Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • suzyb 474 posts 932 karma points
    Jul 26, 2016 @ 10:34
    suzyb
    0

    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?

  • Ole Martin Bakke 112 posts 624 karma points
    Jul 26, 2016 @ 11:26
    Ole Martin Bakke
    100

    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.)

  • suzyb 474 posts 932 karma points
    Jul 26, 2016 @ 12:48
    suzyb
    0

    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.

Please Sign in or register to post replies

Write your reply to:

Draft