By jaypabs on
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
you tick
strip on html tags maybe?
"Strip HTML tags
If checked, all HTML tags will be stripped."
hope it helps
Thanks for the reply. But I
Thanks for the reply.
But I don't understand what you mean by strip on html tags. Where can I find its setting?
Thanks
Go to content type
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.
I don't think this can be
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
...
Have you taken into account that previously created posts teaser lengths wont change? Do new posts work right?
~silverwing
Are you using Drupal
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
I've been looking at this
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.
This has helped me. Thanks!
This has helped me. Thanks!