We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 29839 ☆ A M B ☆
    • 66 Posts
    Hey there,

    Wondering if anyone here managed to get calender events to work with JSONDerulo?

    Tried to follow the readme files and managed to get twitter to work just fine. Enabled the Calender API on my Google business account and go a public agenda XML url that I use in the snippet.

    Running latest Modx 2.3.1 and the plugin is updated.
      • 15202
      • 6 Posts
      Hi,
      I'm just trying to figure that out too. Unfortunately, not everything is working: the titles of all events are displaying just fine but I don't get any output of the date for all day events. If it's an event with a starting/ending time (like 3-5pm) everything is OK. If it's all day, I get nothing.
      Here my snippet call
      <ul>
          [[!JSONDerulo?
              &feed=`googlecalendar`
              &tpl=`jd.googleCal-sas`
              &limit=`6`
              &feedLocation=`[email protected]`
              &apiKey=`12345`
          ]]
      </ul>

      and my template (jd.googleCal-sas) which I've derived from the standard template:
      <li class="cf">
      [[+title:neq=`No events.`:then=`
      <b>[[+eventStart:date=`%d.%m.%y`]]</b><br />
      [[+title]]
      `:else=`[[+title]]`]]
      </li>

      Modx 2.2.16
      JSONderulo 2.5

      Any help would be much appreciated - or suggestions what other snippets I could use for pulling a public google calendar.
      Thanks,
      Chris
        • 15202
        • 6 Posts
        Problem solved!
        Apparently the new jsonderulo snippet wasn't completely ready for google calendar API v3.
        Here's the respective patch of the php file: https://github.com/andrewmfraser/JSONDerulo/commit/057c43d95ea735bd02f8acf707164cf7bb36989f.
        Combined with some alterations of the chunk (see https://github.com/pdincubus/JSONDerulo/issues/21) everything is working fine now.