Situation: You have a JSON with Marker-Data you can use on Maps like Openstreeptmap.Example: http://api.json-content-importer.com/extra/json/mapmarker.php Such a JSON can be created out of other JSON by the JCI-PRO Plugin: See here how this is done for an RSS-Feed. In Action: Solution: Create a new JCI-Tempalte with: URL: http://api.json-content-importer.com/extra/json/mapmarker.php Twig-Code:
this is the blueprint-page for the meetup-pagesmeetup-description: ##description##meetup-date: ##date##venue: ##venue##
Here you see how date from JSON can be formatted by twig.Example of JSON with dates: http://api.json-content-importer.com/extra/json/date.php For that create a JCI-Template with: URL: http://api.json-content-importer.com/extra/json/date.phpName: dateformattingtwig-code:See https://www.php.net/manual/en/function.date.php for the Syntax in date(“…”) Then add time: 1660799766 time-formatted: Thursday 18.08.2022 date: 2022-10-06T00:00:00.000+0000 date-formatted: Thursday 06.10.2022 otherdate: Thu, 18 Aug 22 07:16:06 +0200 otherdate-formatted: Thursday 18.08.2022 05:16:06 …
Continue reading “Formatting of date”
Here you find how the PRO JCI-Plugin can eal with JSON, XML, CSV…:
Here you find some examples on how to use twig with the PRO JCI-Plugin:
Here you find some advanced-examples of twig-programming:
Here you find some examples on how touse the PRO JCI-Plugin:
Here you find some examples on how to transform data into new formats:
Here you find some examples on how to create CPT out of JSON:
Here you find some examples on how to use some APIs: