ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Truncating input from {embed}

November 12, 2012 7:26pm

Subscribe [2]
  • #1 / Nov 12, 2012 7:26pm

    RandyT

    3 posts

    Is it possible to truncate the number of characters ingested through an {embed}?

    {exp:trunchtml chars="50"}{embed='_include/_content-about'}{/exp:trunchtml}

    Trying to do the above. I suspect it is a parsing order issue. Is there a solution?

    Advance thanks for help.

  • #2 / Nov 13, 2012 7:39am

    John St-Amand

    865 posts

    Embeds are parsed last, so the truncation tag pair is parsing before the embed has returned anything.  You’d have to move the truncation into the embed itself if you’re looking to truncate that content.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases