Okay
  Public Ticket #2231157
{{ content|truncate(100) }} filter
Open

Comments

  • Jack started the conversation

    Hi,

    I tried to add truncate filter to dark carousel widget :

    <p style="color:{{item.primary_color}};">{{item.post.intro|truncate(50)}}</p>

    But I get an error :

    Unlimited Elements Error: Error in widget Article Dark Carousel, The filter "truncate" does not exist in "item" at line 7

    I also tried truncate_html(100) filter; same error.
    Plugin documentation says to use |raw for HTML, so I'm a bit confused.

    Regards

  •   Max replied privately
  • Jack replied

    That worked like a charm ! Thank you very much :)

  •   Max replied privately