Home Forums Particles Support Content SliderWP no HTML

Viewing 4 posts - 1 through 4 (of 4 total)

  • Sven-M. Wölfle
    Subscriber

    The Content Slider WP 2.1.4 doesn´t format html even if content ist set to it.

    In the twig from line 445:

    {# Set Item Content #}
    {% set item_content %}
    {% if display.text.type %}
    {% set post_text = display.text.type == 'excerpt' ? post.post_excerpt : post.content %}
    <div class="tm-content jl-panel{{content_text_transform}} jl-margin-{{ particle.content_margin_top == 'default' ? 'top' : particle.content_margin_top|e ~ '-top' }}{% if particle.content_style != 'default' %} jl-text-{{ particle.content_style|e }}{% endif %}{% if particle.content_text_color != 'default' %} jl-text-{{ particle.content_text_color|e }}{% endif %}{% if particle.content_visibility != 'inherit' %} jl-visible@{{particle.content_visibility|e}}{% endif %}{{content_transition}}">
    {% if display.text.formatting == 'text' %}
    {{ post_text|truncate_text(display.text.limit)|raw }}
    {% else %}
    {{ post_text|<strong>truncate_text</strong>(display.text.limit)|raw }}
    {% endif %}
    </div>
    {% endif %}
    {% endset %}

    I changed it to:

    {# Set Item Content #}
    {% set item_content %}
    {% if display.text.type %}
    {% set post_text = display.text.type == 'excerpt' ? post.post_excerpt : post.content %}
    <div class="tm-content jl-panel{{content_text_transform}} jl-margin-{{ particle.content_margin_top == 'default' ? 'top' : particle.content_margin_top|e ~ '-top' }}{% if particle.content_style != 'default' %} jl-text-{{ particle.content_style|e }}{% endif %}{% if particle.content_text_color != 'default' %} jl-text-{{ particle.content_text_color|e }}{% endif %}{% if particle.content_visibility != 'inherit' %} jl-visible@{{particle.content_visibility|e}}{% endif %}{{content_transition}}">
    {% if display.text.formatting == 'text' %}
    {{ post_text|truncate_text(display.text.limit)|raw }}
    {% else %}
    {{ post_text|<strong>truncate_html</strong>(display.text.limit)|raw }}
    {% endif %}
    </div>
    {% endif %}
    {% endset %}

    Sven-M. Wölfle
    Subscriber

    is not in the twig!


    Sven-M. Wölfle
    Subscriber

    <strong></strong> I ment.


    Tony
    Moderator

    Hi there,
    Could you please give me a screenshot your particle setup and the code for post content so I can check it ? Did you get the same result with the default WordPress Posts particle ?

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.

80+ templates updated for Joomla 5.1.4 and JoomLead particles 2.3.0 Download
Flash Sale. Get Up to 25% Off - Coupon: FLASH25 Shop Now