• Resolved nonbin

    (@nonbin)


    The following show inconsistent behavior related to shortcodes in templates. I have JCI set to execute shortcodes then twig, and line 3 outputs the the result of the shortcode like I expect, but line 2 returns the length of the shortcode itself

    {% set tmp = '[jsoncontentimporterpro nameoftemplate="trendData"]' %}
    trendData Length: {{ tmp | length }}</br> {# Returns 51, which is the exact length of the shortcode itself. should be closer to 500 #}
    {{tmp}}</br> {# Correctly displays the output of the shortcode #}
    • This topic was modified 1 year, 8 months ago by nonbin.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘Inconsistent shortcode evaluation in template’ is closed to new replies.