>
Download This Plugin | |
Download Elegant Themes | |
Name | JSON Content Importer |
Version | 1.2.0 |
Author | Bernhard Kux |
Rating | 100 |
Last updated | 2015-03-07 06:49:00 |
Downloads |
825
|
Download Plugins Speed Test plugin for Wordpress |
Home page PageSpeed score has been degraded by 0%, while Post page PageSpeed score has been degraded by 0%
JSON Content Importer plugin added 5 bytes of resources to the Home page and 6 bytes of resources to the sample Post page.
JSON Content Importer plugin added 0 new host(s) to the Home page and 0 new host(s) to the sample Post page.
Great! JSON Content Importer plugin ads no tables to your Wordpress blog database.Use a template engine to display the data of an JSON-Feed.
Define the url of the JSON-Feed, a template for it and other options like number of displayed items, cachetime etc..
The template engine inserts the JSON-data in the template provided in the wordpress-shortcode inside a page - whereby some extras like urlencoding can be invoked.
[jsoncontentimporter url="http://...json" numberofdisplayeditems="number: how many items of level 1 should be displayed? display all: leave empty or set -1" urlgettimeout="number: who many seconds for loading url till timeout?" basenode="starting point of datasets, the base-node in the JSON-Feed where the data is" oneofthesewordsmustbein="default empty, if not empty keywords spearated by ','. At least one of these keywords must be in the created text (here: text=code without html-tags)" oneofthesewordsmustbeindepth="default: 1, number:where in the JSON-tree oneofthesewordsmustbein must be?" ] Any HTML-Code plus "basenode"-datafields wrapped in "{}" {subloop:"basenode_subloop":"number of subloop-datasets to be displayed"} Any HTML-Code plus "basenode_subloop"-datafields wrapped in "{}". If JSON-data is HTML add "html" flag like "{fieldname:html}" {/subloop:"basenode_subloop"} [/jsoncontentimporter]
If the subloop is not an object but an array, e.g.: "{subloop-array:type:5}{1:ifNotEmptyAddRight:aa<br>bb}{2:ifNotEmptyAddLeft:AA}{3:ifNotEmptyAddRight:BB}{/subloop-array}" shows the first, second and third entry of that array, modified by ifNotEmptyAddLeft and ifNotEmptyAddRight (see below).
New in Version 1.2.0: filter & hook and the shortcode-parameter "oneofthesewordsmustbein" and "oneofthesewordsmustbeindepth" are added
templates like "{subloop-array:AAAA:10}{text}{subloop:AAAA.image:10}{id}{/subloop:AAAA.image}{/subloop-array:AAAA}" are possible: one is the recursive usage of "subloop-array" and "subloop". the other is "{subloop:AAAA.image:10}" where "AAAA.image" is the path to an object. This is fine for some JSON-data.
If the JSON-Tree is deep, the template has to be deep. Then "subloop" and "subloop-array" can be used inside the other.