Drupal Q & A: How do I break teaser text the way I want?

When you publish a news item (story) to your home page in Drupal, it is pretty simple. The text creates a teaser on the home page, and that helps to lead visitors in to see the rest of the story as well as other parts of your web site. Very often, though, the break in the text happens at the wrong place. Maybe you'd like to customize how much of your text shows on the home page. Here's how you do it.

the HTML button Open your news item and go to the edit tab. Scroll down to where the body of the news is stored and look for an HTML button icon along with the other icons like Bold and Italics. Click on the HTML button. Once you are in the the HTML window, find the location where you'd like your news to break. Add "<!--break-->" (minus those quotes) to the exact location where you want it to break. This code will not display and it will break your text at this point so you'll have just the teaser text you want on your home page.

adding in a break Click update and then submit your edit. Your view will now break in the correct location.

Add new comment

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
3 + 7 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.