Print

Free: show the data {…}

Syntax for showing JCI data

The free JCI Parser uses curly brackets { and } to identify placeholders with should be replaced by JSON data. In the basic example with the API from WordPress.org we used basenode=level1 together with the template:

TEMPLATE: {start}

The free JCI Parser has some syntax to modify the output

The default display of a datafield is not HTML, but HTML tags are converted. This allows you to display the pure data from the JSON feed. Ty this is the output differs from the JSON-data.

{start:purejsondata}

Default display of a datafield is NOT HTML: & < etc. are converted to &amp; &lt;. This will display the HTML code as code. To output the HTML add “:html”.

{start:html}

Same as {street:html} plus \n linefeeds are converted linefeeds to HTML linebreaks:

{start:htmlAndLinefeed2htmlLinefeed}

Insert the php-urlencoded value of the datafield start. Necessary for building URLs.

{start:urlencode}

If datafield start is not empty, add “extratext” to the right (or left) of the datafield’s value. Permitted characters are limited to:
a-zA-Z0-9,;_-:<>/

{start:ifNotEmptyAddRight:extratext}
{start:ifNotEmptyAddLeft:extratext}

you can combine html and ifNotEmptyAdd… like this

{start:html,ifNotEmptyAddRight:extratext}
{start:html,ifNotEmptyAddLeft:extratext}

same as ifNotEmptyAddRight:

{start:ifNotEmptyAdd:extratext}

If datafield street is not empty, add “extratext_left” to the left and “extratext_right” to the right of the datafield’s value. Permitted characters are limited to:
a-zA-Z0-9,;_-:<>/

{start:ifNotEmptyAddLeftRight:extratext_left##extratext_right}

you can combine html and ifNotEmptyAddLeftRight… like this

{start:html,ifNotEmptyAddLeftRight:extratext_left##extratext_right}

Was this article helpful?
0 out Of 5 Stars
5 Stars 0%
4 Stars 0%
3 Stars 0%
2 Stars 0%
1 Stars 0%
How can we improve this article?
Please submit the reason for your vote so that we can improve the article.
Previous Free: Shortcode-options
Next Free: subloop vs. subloop-array
On this page: