• Resolved iqonomy

    (@iqonomy)


    Hi Bernhard,
    I am trying to put Javascript code into the JCI template of the free plugin. How can I distinct between field placeholders and curly brackets which should be rendered?

    [jsoncontentimporter url="https://**" numberofdisplayeditems="150" basenode="location"]{subloop:airport:5}
      var marker = new google.maps.Marker({position: {lat: {latitude}, lng: {longitude} }, map: map  });
    {/subloop}[/jsoncontentimporter] 

    Thanks so much!
    Moritz

    • This topic was modified 4 years, 4 months ago by iqonomy.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author berkux

    (@berkux)

    Hi Moritz,

    you can’t. Yet you need the pro plugin for that.
    Ok, I added this to the next free version: There will be #CBO# and #CBC# for “curly bracket open / close” placeholders to be used in the template and replaced in the end by { or }.
    But the next official Version of the free plugin will take some time.
    Would a beta be helpful?

    Bernhard

    Thread Starter iqonomy

    (@iqonomy)

    Hi Bernhard,

    Oh yes, a beta would be great. But it’s not highest prio, so no hurry. I am happy whenever you’re ready!
    Thanks for your great work here!

    Moritz

    Plugin Author berkux

    (@berkux)

    Hi Moritz,

    here we are:
    As I solved a annoying old bug too I added placeholders:

    Changelog 1.3.9

    * Bugfix if a JSON-field is not always there or null (loop stopped if this was the case)

    *Placeholders for template: If you want to have curly or square brackets {}[] in the template, this can trouble the shortcode-syntax or the template-parser. Use the placeholders #CBO# (curly brackets open), #CBC# (curly brackets close), #SBO# (square brackets open) and #SBC# (square brackets close) in the template, the placeholders will be replaced by it’s needed bracket-values in the end after parsing

    * Plugin ok with WP 5.4.2

    Bernhard

    • This reply was modified 4 years, 4 months ago by berkux.
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Using curly brackets in JCI template loop?’ is closed to new replies.