PRO: param1 and param2 in the Shortcode

There is a special way to use the same JCI-Shortcode with small variations. E .g. having almost the same JCI-Shortcode on two pages with different languages .

In detail: Add param1… or param2=… to the JCI-Shortcode.

Example:

[[jsoncontentimporterpro nameoftemplate="demoparam1param2" param1="value_param1" param2="value_param2"]]

Effect: Both in the URL and the twig-template you can use the values of param1 and param2

URL in the template (no spaces or special chars in the param1 / param2 as the values are passed as is):
https://api.json-content-importer.com/extra/json/1.json?p1=##param1##&p2=##param2##&end=yes

Used URL:
https://api.json-content-importer.com/extra/json/1.json?p1=value_param1&p2=value_param2&end=yes

twig-template:

Twig-syntax for showing the complete JSON-data:<br>
{{ _context | json_encode  }}
<hr>param1: {{param1}}
<hr>param2: {{param2}}

In Action:

Twig-syntax for showing the complete JSON-data:
{“pricing_plans”:[{“data”:{“id”:3,”name”:”Pro”,”amount”:”436.0″,”sms_allowed”:3200,”created_at”:”2016-03-29T06:52:43.945Z”,”updated_at”:”2016-03-29T06:52:43.945Z”,”discount_percentage”:”0.1″,”plan_type”:”Paid”}},{“data”:{“id”:2,”name”:”Basic”,”amount”:”0.2″,”sms_allowed”:3200,”created_at”:”2016-03-29T06:52:18.253Z”,”updated_at”:”2016-03-29T06:52:18.253Z”,”discount_percentage”:”0.1″,”plan_type”:”Paid”}},{“data”:{“id”:1,”name”:”Lite”,”amount”:”157.0″,”sms_allowed”:3200,”created_at”:”2016-03-29T06:30:57.117Z”,”updated_at”:”2016-03-29T06:30:57.117Z”,”discount_percentage”:”0.1″,”plan_type”:”Paid”}}],”param1″:”value_param1″,”param2″:”value_param2″}
param1: value_param1
param2: value_param2