JCI Example-elementor


Boya Puerto de Bahia Blanca Exterior

2024-05-28 20:00:00

start:
level2:
id: , type:

ejemplo

Welcome!
Click on this block and you see on the right side the Gutenberg-Block settings of the “JSON Content Importer Gutenberg Block”. Yet there is an example to show how it works. The Example-URL is
https://ambiental.puertobahiablanca.com/wp-content/plugins/json-content-importer/json/gutenbergblockexample1.json
Some settings show you how the JSON-parser and display works. The example-template is (try to change it on the right):
start: {start}<br>{subloop-array:level2:-1}level2: {level2.key}<br>{subloop:level2.data:-1}id: {level2.data.id}, type: {level2.data.type}<br>{/subloop:level2.data}{/subloop-array:level2}
The result of combining JSON and this template gives us the output. Use this example to experiment: Type “level1” in the right basenode-field, please. This will change the output as now the JSON and the template fit together (without not…)
You may also open the lower right “JCI Advanced“-section. Insert at “One of these words must be displayed:” the word “bb”. And at “JSON-depth of the above displayed Words:” the number 3. Do you see the difference at once?
DEBUG: wp_remote_get to https://ambiental.puertobahiablanca.com/wp-content/plugins/json-content-importer/json/gutenbergblockexample1.json
DEBUG: arguments: Array ( [timeout] => 5 )
DEBUG: success getting URL

If you use WordPress without Gutenberg, you can use this Shortcode (copy with Strg+A, paste to TEXT-editor!):

DEBUG: basenode: no basenode defined
DEBUG: template:

DEBUG:
LEAVE function checkType // depth: 1 // result: start: {start}<br>{subloop-array:level2:-1}level2: {level2.key}<br>{subloop:level2.data:-1}id: {level2.data.id}, type: {level2.data.type}<br>{/subloop:level2.data}{/subloop-array:level2}
// returnHTMLinsideProc: start: {start}
{subloop-array:level2:-1}level2: {level2.key}
{subloop:level2.data:-1}id: {level2.data.id}, type: {level2.data.type}
{/subloop:level2.data}{/subloop-array:level2}


DEBUG: result:

start:
level2:
id: , type:

api-answer:
Inspect JSON: Copypaste (click in box, Strg-A marks all, then insert into clipboard) the JSON from the following box to https://jsoneditoronline.org):

template:

result:

Plugin-Settings (see Plugin options):
Cache: disabled
oauth Bearer Accesskey:
http-Header default Useragent:

the real result:
start:
level2:
id: , type:

nuevo

start:
level2:
id: , type: