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.

How To Display First 100 Characters of a Weblog Field?

July 03, 2007 7:55am

Subscribe [3]
  • #1 / Jul 03, 2007 7:55am

    sm9

    352 posts

    Hi there,

    We have weblog fields on our EE site that are a bit longer than ‘summary text,’ but we’d like to display them in certain areas (like the home page) so the first 100 characters (or certain amount of words, or whatever) is displayed only, with a ‘...read more’ link after it.

    We know the standard way of doing this is to have a ‘summary text’ then to link to the full article, but this isn’t practical for us at the moment due to us have several custom weblog fields which we’d like to display in such a way.

    Is this possible?  If so, how?

    Thanks,

    Ste

  • #2 / Jul 03, 2007 8:29am

    Ingmar

    29245 posts

    A couple of plugins, most recently Trunc HTML. The Word Limit and Character Limit plugins ship with EE by default, if I remember correctly.

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

ExpressionEngine News!

#eecms, #events, #releases