Plugin Author
berkux
(@berkux)
try this:
[jsoncontentimporter url=https://www.reddit.com/r/news/hot.json]
kind: {kind}
{subloop:data:-1}data.after: {data.after}
{subloop-array:data.children:-1}
data.children.kind:{data.children.kind}
{subloop:data.children.data:-1}
data.children.data.id: {data.children.data.id}
{/subloop:data.children.data}<hr>
{/subloop-array:data.children}
{/subloop:data}
[/jsoncontentimporter]
Plugin Author
berkux
(@berkux)
feel free to vote for my plugin.
sorry, but just tried embeding html with the 2nd one and no luck
[jsoncontentimporter url=https://www.reddit.com/r/videos/hot.json]
{subloop:data:-1}
{subloop-array:data.children:-1}
{subloop:data.children.data:-1}
{subloop:data.children.data.secure_media:-1}
{subloop:data.children.data.secure_media.oembed:-1}
data.children{data.children.data.secure_media.oembed.html}
{/subloop:data.children.data.secure_media.oembed}
{/subloop:data.children.data.secure_media}
{/subloop:data.children.data}<hr>
{/subloop-array:data.children}
{/subloop:data}
[/jsoncontentimporter]
actually adding raw html doesn’t seem to work for any json, is this a security feature? can it be ignored for specific cases?
Plugin Author
berkux
(@berkux)
by default html-tags are converted to html.
Add “:html” like
data.children{data.children.data.secure_media.oembed.html:html}
Bernhard