I've taken over a project and there is very little information or notes to go from. Basically the dev before me has setup som JSON pages in Squiz Matrix to pull in data from the calendar events. I really don't know how to set this up myself - even after reading the Squiz Matrix manual and trying to figure out how it has been setup by analysing the structure in Squiz Matrix.
BTW, the reason is that there is a mobile app which receives this data to display events in the application.
The JSON file combines single and recurring events (not sure how) into two JSON files that are somehow combined to give this URL http://www.slq.qld.gov.au/_slqmedia/whats_on/asset-listings/single-recurring-event-data.json
The code is below:
1) Recurring calendar event JSON code
{"id":"%asset_assetid%-%instance_start_datetime_Y%%instance_start_datetime_m%%instance_start_datetime_j%%instance_start_datetime_g%%instance_start_datetime_i%","title":"%event_name^json_encode%","summary":"%asset_metadata_Summary^json_encode%","description":"%asset_attribute_description^json_encode%","start_date_and_time":"%instance_start_datetime_D% %instance_start_datetime_j% %instance_start_datetime_M% %instance_start_datetime_Y%, %instance_start_datetime_g%:%instance_start_datetime_i% %instance_start_datetime_a%","end_date_and_time":"%instance_end_datetime_D% %instance_end_datetime_j% %instance_end_datetime_M% %instance_end_datetime_Y%, %instance_end_datetime_g%:%instance_end_datetime_i% %instance_end_datetime_a%","thumbnail":"%asset_thumbnail_url^json_encode%","location":"%asset_metadata_Venue^json_encode%%asset_metadata_VenueOther%, %asset_metadata_Address^json_encode%, %asset_metadata_Location^json_encode%","paid_event":"%asset_metadata_FreeOrPaid%","status":"%asset_metadata_Status^titleize%","event_type":"%asset_metadata_TypeMain^replace:":'^titleize%","read_more_url":"%asset_url^json_encode%"},
2) Single Calendar event JSON code
{"id":"%asset_assetid%","title":"%event_name^json_encode%","summary":"%asset_metadata_Summary^json_encode%","description":"%asset_attribute_description^json_encode%","start_date_and_time":"%event_start_datetime_D% %event_start_datetime_j% %event_start_datetime_M% %event_start_datetime_Y%, %event_start_datetime_g%:%event_start_datetime_i% %event_start_datetime_a%","end_date_and_time":"%event_end_datetime_D% %event_end_datetime_j% %event_end_datetime_M% %event_end_datetime_Y%, %event_end_datetime_g%:%event_end_datetime_i% %event_end_datetime_a%","thumbnail":"%asset_thumbnail_url^json_encode%","location":"%asset_metadata_Venue^json_encode%%asset_metadata_VenueOther%, %asset_metadata_Address^json_encode%, %asset_metadata_Location^json_encode%","paid_event":"%asset_metadata_FreeOrPaid%","status":"%asset_metadata_Status^titleize%","event_type":"%asset_metadata_TypeMain^replace:":'^titleize%","read_more_url":"%asset_url^json_encode%"},
To be honest, when looking at the feed of data that the URL retrieves http://www.slq.qld.gov.au/_slqmedia/whats_on/asset-listings/single-recurring-event-data.json, it really looks like it follows the code from the latter.
Anyway, the issue is that it has not retrieved all of the events. They are all live, I just checked that the data had been entered in correctly, and everything checked out. Is there any good reason that single calendar event data will not show up in the feed? Some have and many haven't and I can't see any obvious reason why the JSON data dump is being so selective.
I've also attached a screenshot of how the setup in Squiz Matrix looks too. JSON-data-setup.jpg (87.9 KB)