Drupal Node Teaser SEO

In Drupal, the node teaser is the part that shows up on summary pages instead of the full node body. By default it is the first 600 characters of the node body. This can be changed via Administer > Content Management > Post settings (admin/content/node-settings). But, you can better control how much of the node body to show by using a special comment:

<!--break-->

In Drupal 6, you can also use the "split summary at cursor" button to split up the summary and rest of the node body, but for some reason I prefer using the special <!--break--> comment. If you use the comment, though, and go back to edit the node, it will split up the content like you have used the "split summary at cursor" anyway, so it doesn't really matter which you do.

Here's a screenshot of what the "split summary at cursor" button looks like when you are editing:

drupal split summary at cursor

And here's what it looks like after you click the button (the <!--break--> or cursor after the first paragraph in this case):

drupal split summary at cursor 2

In general, for better SEO, it's a good idea to limit the amount of content shown on the summary pages to just a couple/few sentences (or the first paragraph). Enough to let users know what the node is about but not so much that you end up with large amounts of duplicate content all over the place.

This is particular true for nodes with little content on them. If you have a node with only 600 characters and the summaries all show the first 600 characters, then you are essentially showing the full node throughout the site. Although, it's probably not a good idea to have such a short node, it happens sometimes, particularly if you are simply giving a quick blog update about some event or article and linking off to another site.

In Drupal 5, you can use the nodeteaser module if you want your teaser to be different than the first part of your node body. In Drupal 6, you can have a separate teaser by using the "split summary at cursor" button and then unchecking the "Show summary in full view" checkbox.

So, if you have time, you could always write a short teaser that is totally different than the text shown in the node body. That would be the good Drupal node teaser to use since that would reduce the duplicate content somewhat (the same teaser will likely show up on different summary pages throughout the site so you still will have duplicate content).

Tags: 

Comments

Your article was

Your article was reader-friendly and I assure you it’s highly appreciated. Being able to split the summary and incorporating node teasers would save us a lot of worries when dealing with duplicates.

600 characters.

This is particular true for nodes with little content on them. If you have a node with only 600 characters and the summaries all show the first 600 characters, then you are essentially showing the full node throughout the site.
Gadget Review

split summary at cursor

Could you please tell me where to find this "split summary at cursor" in Drupal 6 admin? I can't find it. When I try to use

it doesn't work. Nothing happens in Drupal 6.

Also, do you have any idea how to create custom teasers that are different than the body in Drupal 6? Thanks

Screenshots

I just updated the article with some screenshots. If you are using TinyMCE, perhaps that's why you don't see it? I found this about the bug: http://drupal.org/node/260963 Good luck.

Excerpt module

I have found the "excerpt module" that supposedly can be used when using a wysiwyg editor and having separate teasers:

http://drupal.org/project/excerpt

Kristen

Note that the $page variable

Note that the $page variable indicates whether a node is standing alone or not, which isn't necessarily the same as whether it's being shown as a teaser. There are legitimate situations where $page == 0 and it's not supposed to be a teaser - for example, when you preview a node. Additionally, $page and $teaser can be set directly by any code that displays nodes via the node_view() function, so it's wise to think about unexpected combinations.

Lexia

Post new comment - ALL COMMENTS ARE MODERATED - SPAM WILL BE DELETED!

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options

By submitting this form, you accept the Mollom privacy policy.

I'm a Speaker at DrupalCon Austin

I'm a Speaker at DrupalCon Portland