We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 13166
    • 24 Posts
    I have a CALx calender with one event every month. I want to feature the next month event on the homepage. So I made an Ditto call like this
     [!Ditto? &display=`1` &parents=`22` &extenders=`dateFilter` &dateSource=`startDateofEvent` &month=`5`!] 

    The dateSource is the TV from the CALx Event. But I get an MODx Parser Error. So I made an new TV named eventMonth, only with the Month. But I get the same Error:

    PHP error debug
    Error: strftime() expects parameter 2 to be long, string given
    Error type/ Nr.: Warning - 2
    File: /Volumes/.../assets/snippets/ditto/classes/ditto.class.inc.php
    Line: 294
    Line 294 source: $placeholders[’date’] = strftime($dateFormat,$timestamp);

    If I use the createon Variable for testing and &month=5 I got all Events. But they are created in March.
      • 18397
      • 3,250 Posts
      Can you provide the Ditto debug output?