Telf. / WhatsApp 51 - 998321374

Destinos

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://www.coastaltoursperu.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> {level2.key}<br>
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?

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

DEBUG: basenode: level1
DEBUG: template:

DEBUG:
LEAVE function checkType // depth: 1 // result: start: Very good, this is the value of &#039;start&#039;, right out of the JSON-data<br />{level2.key}<br />
// returnHTMLinsideProc: start: Very good, this is the value of 'start', right out of the JSON-data
This is the fourth value of key in the 'level1'-array


DEBUG: result:

DEBUG: Cache is active
DEBUG: CacheExpireTime: 10 minutes
DEBUG: try to retieve this url: https://www.coastaltoursperu.com/wp-content/plugins/json-content-importer/json/gutenbergblockexample1.json

DEBUG: 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):

DEBUG: basenode: level1
DEBUG: template:

DEBUG:
LEAVE function checkType // depth: 1 // result: start: Very good, this is the value of &#039;start&#039;, right out of the JSON-data<br>{level2.key}<br>
// returnHTMLinsideProc: start: Very good, this is the value of 'start', right out of the JSON-data
This is the fourth value of key in the 'level1'-array


DEBUG: result:

start: Very good, this is the value of 'start', right out of the JSON-data


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: active
Cachetime: 10 minutes
Cachefolder: /home/coastalt/public_html/wp-content/cache/jsoncontentimporter/
oauth Bearer Accesskey:
http-Header default Useragent:

the real result:
start: Very good, this is the value of 'start', right out of the JSON-data



© 2022 Coastal Tours Perú - Todos los derechos reservados | Diseño: TBCOM 360° (www.tbcom.pe)

Síguenos en Facebook