I set the Length of trimmed posts to 400 characters but it trimmed only the first paragraph. If the paragraph has only 150 character then it stops there. I want to trim and exact 400 characters on my teaser.

Anyone have experience the same problem?

My website is sourcecodester.com

Comments

m13’s picture

strip on html tags maybe?

"Strip HTML tags
If checked, all HTML tags will be stripped."

hope it helps

jaypabs’s picture

Thanks for the reply.

But I don't understand what you mean by strip on html tags. Where can I find its setting?

Thanks

kkobashi’s picture

Go to content type | article.
Click on the teaser button in the far right side
Change the teaser length for the body element then save it.

Go back into the same screen again and look to see if the value reverted back to the original 600 character setting.

jaypabs’s picture

I don't think this can be found under content type unless there is a plugin I do not know. I trimmed the teaser under Content Management | Post settings.

Please correct me if i'm wrong.

Thank you

silverwing’s picture

Have you taken into account that previously created posts teaser lengths wont change? Do new posts work right?

~silverwing

kkobashi’s picture

Are you using Drupal 7?

Structure | Content Types

Choose manage display, hit teaser button on far right
Click on the icon on the far right to edit the body
Change the teaser length

vali hutchison’s picture

I've been looking at this issue today and from what i understand the function used is text_summary which works in paragraph chunks - so if you have a short 1st paragraph and then a long second one, then it sets a break point after the first paragraph and stops there, so the 2nd paragraph isn't shown.

i'm currently looking at the smart trim module which allows trimming by words, and gets the desired result of a consistent block of text for a teaser view of nodes.

Mark Vincent Verallo’s picture

This has helped me. Thanks!