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.

Excerpt plugin

November 11, 2009 6:45am

Subscribe [2]
  • #1 / Nov 11, 2009 6:45am

    Wil Linssen

    49 posts

    I’ve just finished a quick version 0.1 plugin to pick out an excerpt for an entry.

    It works by finding the field defined as the search excerpt in the admin panel, then truncating it and appending it with a trailing string:

    {exp:weblog:entries weblog="weblog1|weblog2|weblog3"}
      {exp:linssen_excerpt entry_id="entry_id" word_limit="30" trailer="... read more"}
    {/exp:weblog:entries}

    So you can see it’s useful if you’re using multiple weblogs or you don’t know which field to use as an excerpt or you’re just lazy 😉.

    I’ve popped the code for the excerpt plugin up on my website, I’d appreciate some feedback and obviously notes if you run into problems. Cheers guys!

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

ExpressionEngine News!

#eecms, #events, #releases