Print

PRO: JCI-Templates

The PRO JCI-Plugin tries to avoid Shortcode-Paramternames and put all into JCI Templates

How to: Use an API and get access to JSON
Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
[jsoncontentimporterpro nameoftemplate=NAME_OF_TEMPLATE some_more_parameter]
[jsoncontentimporterpro nameoftemplate=NAME_OF_TEMPLATE some_more_parameter]
[jsoncontentimporterpro nameoftemplate=NAME_OF_TEMPLATE some_more_parameter]

Put together a very simple JCI-Template with this settings:

  • URL: dummyrequest
    This grabs some WordPress-Page info for an JSON-Feed
  • twig-template: Show received data as JSON
Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
{{_context | json_encode}}
{{_context | json_encode}}
{{_context | json_encode}}

You can also use the “inline”-Shortcode, but having all settings in one Shortcode has some disadavantages:

  • When using on several pages you always have to copy / change it on several pages
  • WordPress modifies sometimes the HTML-Code in the template. to avoid such trouble use the JCI template.
Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
[jsoncontentimporterpro url=... parser=twig332adj some_more_parameter]
twig-template
[/jsoncontentimporterpro]
[jsoncontentimporterpro url=... parser=twig332adj some_more_parameter] twig-template [/jsoncontentimporterpro]
[jsoncontentimporterpro url=... parser=twig332adj some_more_parameter]
twig-template
[/jsoncontentimporterpro]

Sort, Search, Bulkaction JCI-Templates

With Version 3.7.3 the handling of the JCI-Templatelist is improved. This is very helpful when you have many JCI-Templates:

  • Set the number of JCI-Templates per page via the “ScreenOptions”. Default is 10.
  • Text-Search the JCI-Templates
  • Do Bulk-Actions on selected JCI-Templates (e. g. delete several of them at once…).
Was this article helpful?
0 out Of 5 Stars
5 Stars 0%
4 Stars 0%
3 Stars 0%
2 Stars 0%
1 Stars 0%
5.0
How can we improve this article?
Please submit the reason for your vote so that we can improve the article.

On this page: