Plugin Author
berkux
(@berkux)
Hi,
Thank you for using my plugin.
By adding debugmode=10 you get some detailinfo.
You might switch to
https://jsoncontentimporter.freshdesk.com/widgets/feedback_widget/new?searchArea=no
There you can post confidentially the url or json you got.
Bernhard
Thread Starter
ALB13
(@alb13)
I think I’m good. Not sure what happened but it’s working now. Thanks for the quick reply!
Thread Starter
ALB13
(@alb13)
Oh, but I did notice one very strange behavior (unrelated to this post).
Whenever you put the word “Description” in the template, the JSON load will throw an error in the preview pane. Doesn’t matter if “description” is plain text, a part of a JSON field, or anywhere. It fails the page. Very strange.
I think it was actually “descript” that was the problem. I had a field called “Short Description” that kept causing the page to fail every time it was in there. I changed it to “Short Desc” and it works fine now. I also just typed “descript” into a text area in the template, and it failed again.
Cheers,
AL
Plugin Author
berkux
(@berkux)
Hi,
try this:
Description[jsoncontentimporter url=http://api.json-content-importer.com/extra/json/1.json kbasenode=pricing_plans]
Description{subloop-array:pricing_plans:-1}
{subloop:pricing_plans.data:-1}Description: {pricing_plans.data.created_at}{/subloop:pricing_plans.data}
<hr>Description
{/subloop-array:pricing_plans}Description
[/jsoncontentimporter]
This works for me.
So this might depends on the JSON you use. If the name of JSON-field is not existing in some arrays this might cause errors.
If you can, you can post the JSON and the used shortcode at
https://jsoncontentimporter.freshdesk.com/widgets/feedback_widget/new?searchArea=no
for confidential analysis.
Thanks
Bernhard