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.

hacksaw and cutoff="" parameter with wygwam

April 11, 2012 11:25am

Subscribe [2]
  • #1 / Apr 11, 2012 11:25am

    Sean C. Smith

    3818 posts

    I’ve got a template where the user needs to be able to add the “read more” link where they want it, just like in WordPress. No problem says I, EE hacksaw has the cutoff=”” parameter. I’ve set this up and when I use the read-more button in wygwam it spits this out into the source of the field <!—read_more—> which I then set as the cutoff parameter in EE hive.

    The thing is it’s not working - any clues on what I’m missing?

    {exp:eehive_hacksaw cutoff="<!--read_more-->" allow="<p><b><a><ul><ol><li>"}
        {general-content}
        {/exp:eehive_hacksaw}

    Sean

  • #2 / Apr 11, 2012 4:06pm

    Sean C. Smith

    3818 posts

    Turns out you don’t need hacksaw for this to work. wygwam has an excerpt function built in

    {field_name:excerpt}
  • #3 / Apr 11, 2012 6:19pm

    John St-Amand

    865 posts

    That’s so cool. I didn’t know about the excerpt variable. Thanks Sean!

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

ExpressionEngine News!

#eecms, #events, #releases