Use tokens such as [node-title] for Read More links and link attributes

morningtime - May 17, 2009 - 12:03
Project:Read More link (Drupal 6 and earlier)
Version:6.x-5.x-dev
Component:Miscellaneous
Category:feature request
Priority:normal
Assigned:Todd Nienkerk
Status:fixed
Description

I have a suggestion: instead of 'read more' or any custom text, lets make it more SEO friendly by adding tokens, e.g. "Read [node-title-raw] >". The result could be:

Read Ecommerce Law >
Read International Business of the [...] > (trimmed)
Read Your Momma >
etc.

I was told "Read more" links are a SEO killer. So I usually link with full titles, so I get more hits from Google.

Thanks for taking tokens into consideration. Its just an idea, maybe it doesnt fit your module.

#1

Todd Nienkerk - May 29, 2009 - 15:41
Title:Read [node-title] - let's use tokens!» Use tokens such as [node-title] for Read More links and link attributes
Version:6.x-3.0» 6.x-5.x-dev

Version 6.x-5.x-RC1 (and -dev) includes some major changes in SEO behavior. For example, the title="" attribute in the link includes the node title.

I'm switching the version to 6.x-5.x-dev in the hopes that someone can help integrate tokens. I think this is a great idea, but I don't have much experience working with tokens myself.

#2

eaton - October 1, 2009 - 11:28
Status:active» needs review

Here's a patch that does it. Just tested it for a client and it works nicely, degrades cleanly if token isn't installed.

AttachmentSize
readmore-token.patch 1.62 KB

#3

grateful_drupal_user - October 3, 2009 - 15:46

*subscribe*

#4

PlayfulWolf - November 4, 2009 - 21:53

#2 works for me

#5

Todd Nienkerk - November 10, 2009 - 04:59
Status:needs review» fixed

A slightly modified version of eaton's patch was added and committed to 6.x-5.x-dev. Thanks!

#6

Todd Nienkerk - November 10, 2009 - 05:02
Assigned to:Anonymous» Todd Nienkerk
 
 

Drupal is a registered trademark of Dries Buytaert.