We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 26113
    • 88 Posts
    Hello -
    I’m currently building an event calendar where the client will add ’pages’ as event entries in modx. I am also returning a record set with Ditto in the JSON format to add some nice interactivity.

    Is there a way to only return this months events?
    Currently it returns all documents.

    Also, the date is sorted by a template variable.
    [[Ditto?startID=`2`sortBy=`Event_Date`&dateSource=`Event_Date`&format=`json`]]


    Thank you
    rich
      • 36592
      • 970 Posts
        • 26113
        • 88 Posts
        Hi -
        I found this and started trying it out which let me to other questions and issues. In a nutshell - I’m not sure if its doing what I need.
        I am basing the dateSource on a TV which is set to the Unixtime widget, so this should work - below is my code:

        http://test.richtestani.com/seminars
        [[Ditto?startID=`2`&format=`json`&extenders=`dateFilter`&dateSource=`Event_Date`&sortBy=`Event_Date`&sortDir=`ASC`&month=`10`]]

        Thanks
        Rich