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.

Show first 10 words of comment on frontpage.

June 21, 2007 2:43pm

Subscribe [2]
  • #1 / Jun 21, 2007 2:43pm

    Lourens Thalen

    1 posts

    Hey,

    I’m using this code for displaying the first 3 comments on the frontpage:

    {exp:comment:entries sort="desc" orderby="date" limit="3" dynamic="off"}
    
    {comment}
    
    door {name} op {comment_date format="%Y %m %d"}
    
    als reactie op '<a href="http://{comment_url_title_auto_path}">{title}</a>'.
    
    {/exp:comment:entries}

    This works great, but I can’t figure out how I display the first 10 words of the comments instead of the whole comment. :(
    Can somebody give me a hint (since I’ve been searching for quite some time now)

  • #2 / Jun 21, 2007 2:46pm

    DrHackenbusch's avatar

    DrHackenbusch

    12 posts

    Might want to try the Word Limiter PlugIn which comes with your EE-installation…

  • #3 / Jun 21, 2007 6:08pm

    Michael Rog

    179 posts

    wow… that’s incredibly useful. way to go, EE!

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

ExpressionEngine News!

#eecms, #events, #releases