4

I changed the teaser length from 600 characters to 300 characters for the Story and Book Page content types. How do I rebuild the teasers so that all teasers are updated to the new value?

Any help would be appreciated.

  • 1
    You should just be able to clear the cache and this take effect. Config > Performance > clear cache – blue928 Jun 28 '12 at 2:00
  • Thanks for help. Yes, I did clear the cache. In drupal 6, every time when I change the setting for body and teaser, all I have to do is hit the rebuild buttom and clear the cache. But in drupal 7 it seem to have no effect as all. – Qtri Jun 30 '12 at 0:23
  • The summary is generated whenever text_field_formatter_view() is run, so a cache clear should work. You are you displaying these teasers? In a view? – peterpoe Feb 28 '16 at 15:13
1
  • If you are using the Views module to display your teasers, and you are using fields in the View, then you need to set the trim length for each field in the View itself.
  • Are you using custom formatters? These might be buggy and/org disregard the trim length.
  • When you edit the node(s), check that the summary field is blank. (I quote from the node edit page: "Leave blank to use trimmed value of full text as the summary.")
  • For further troubleshooting, create a new node with a lot of dummy text. Does it get trimmed to 300 or 600 characters?
    • If the new node gets trimmed to the new value, but old nodes get trimmed to the old value, then there is a problem with your cache or with the old nodes.
    • If the new node also gets trimmed to the old value, then there is a problem with your fields or views.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.