Teaser Length Settings

i25 - April 28, 2009 - 15:07

I would like the teaser length settings (Administer >>> Post Settings) to be different for the home page than it is for other pages.

For instance, I want to have a teaser length of 800 characters for the home page, but for other pages (like a page that shows all content that matches a certain taxonomy term - taxonomy/term/6) I want unlimited characters.

How can I achieve this? Thanks.

Use break on the home page node

markj - April 28, 2009 - 16:58

Oh the home page node, insert the HTML comment <!-- break --> where you want the teaser to end.

Is there no configuration

i25 - April 28, 2009 - 17:46

Is there no configuration where this can be set so we won't have to insert this code for every item? Thanks.

By content type

markj - April 28, 2009 - 18:03

Sorry, you said "home page" so I thought you meant for a single node.

AFAIK, the only way to have broad control over the teaser lenght is if you are using custom content types, with the module http://drupal.org/project/teaserbytype

 
 

Drupal is a registered trademark of Dries Buytaert.