> JSON Content Importer wordpress plugin resources analysis

JSON Content Importer wordpress plugin resources analysis

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

Delta: 0%

Post page

Delta: 0%
JSON Content Importer plugin has no negative impact on PageSpeed score.

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.

JSON Content Importer - Powerful and Simple JSON-Import Plugin

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.

Simple Example of wordpress-shortcode

[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.

Recursive usage of "subloop-array" and "subloop" of wordpress-shortcode

If the JSON-Tree is deep, the template has to be deep. Then "subloop" and "subloop-array" can be used inside the other.

Some special add-ons for datafields

  • "{street:html}": Default-display of a datafield is NOT HTML: "<" etc. are converted to "&amp,lt;". Add "html" to display the HTML-Code as Code.
  • "{street:ifNotEmptyAddRight:,}": If datafield "street" is not empty, add "," right of datafield-value. allowed chars are: "a-zA-Z0-9,;_-:<>/ "
  • "{street:html,ifNotEmptyAddRight:extratext}": you can combine "html" and "ifNotEmptyAdd..." like this
  • "{street:ifNotEmptyAdd:,}": same as "ifNotEmptyAddRight"
  • "{street:ifNotEmptyAddLeft:,}": If datafield "street" is not empty, add "," left of datafield-value. allowed chars are: "a-zA-Z0-9,;_-:<>/ "
  • "{locationname:urlencode}": Insert the php-urlencoded value of the datafield "locationname". Needed when building URLs
  • "{locationname:unique}": only display the first instance of a datafield. Needed when JSON delivers data more than once

Screenshots

Resources added by plugin to Home page/Post page in kB
Total size of resources for Home page/Post page in kB
Random Theme Tests
D5 Socialia screenshot

D5 Socialia

by: d5creation

74073
64%
Deshnok screenshot

Deshnok

by: devcorn

2110
100%