Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-05-17 22:35:49

rossharvey
Member
From: Earth. Sometimes.
Registered: 2005-03-16
Posts: 233
Website

[textile] SEO Friendly mod: Giving all links a title by default

In the world of SEO and whatnot, using links with no title tag is not optimal. Having to write the linked text, AND the title text, i.e…

"Automatic Recognition(Automatic Recognition)":http://...

…becomes laborious quite quickly, and goes against the speed of writing in textile.

A quick mod to classTextile.php, line 760:

From:

$atts .= ($title != '') ? ' title="' . $this->encode_html($title) . '"' : '';

To:

$atts .= ($title != '') ? ' title="' . $this->encode_html($title) . '"' : ' title="' . $this->encode_html($text) . '"';

If you do not supply a specific title, it uses the link text by default. You only ever need type it once, in the shortest style.

Offline

#2 2007-05-17 23:18:31

jm
Plugin Author
From: Missoula, MT
Registered: 2005-11-27
Posts: 1,746
Website

Re: [textile] SEO Friendly mod: Giving all links a title by default

Yeah, but that’s irritating for users. The point of link text is to describe the link; the title attribute is for clarification. "Automatic Recognition(Automatic Recognition)":http://... is redundant, since the link text clearly describes the link.

Offline

#3 2007-05-18 13:31:31

rossharvey
Member
From: Earth. Sometimes.
Registered: 2005-03-16
Posts: 233
Website

Re: [textile] SEO Friendly mod: Giving all links a title by default

I never said use it in all circumstances. The reason is to stop you linking without a title tag.

You cannot expect all users to write descriptive link titles – that just will not happen. The vast majority do not even realise they exist. At least this way there is a relevant tag, which is far better than none at all.

Last edited by rossharvey (2007-05-18 13:46:01)

Offline

#4 2007-05-18 20:46:52

Jeremie
Member
From: Provence, France
Registered: 2004-08-11
Posts: 1,578
Website

Re: [textile] SEO Friendly mod: Giving all links a title by default

Not sure this is a Textile issue. It may be more of a “Textpattern’s use of Textile” issue.

Anyway, wet_quicklink handle that.

Offline

#5 2007-05-18 23:00:55

rossharvey
Member
From: Earth. Sometimes.
Registered: 2005-03-16
Posts: 233
Website

Re: [textile] SEO Friendly mod: Giving all links a title by default

Jeremie wrote:

Not sure this is a Textile issue. It may be more of a “Textpattern’s use of Textile” issue.
Anyway, wet_quicklink handle that.

That was my initial thought too, but Textile is always growing in popularity (more implementations), and it should be robust enough to handle tabs, regardless of the context.

Last edited by rossharvey (2007-05-18 23:01:17)

Offline

#6 2007-05-18 23:20:34

Jeremie
Member
From: Provence, France
Registered: 2004-08-11
Posts: 1,578
Website

Re: [textile] SEO Friendly mod: Giving all links a title by default

I’m not sure what you mean by “handle tabs”…

The thing is, simply duplicating the text link as title has no purpose, at all. It doesn’t improve the human readability, it doesn’t improve the machine readability (including the search engine bots).

However, having a good title is necessary. Inside Textpattern, there are a number of situations where the software could feed Textile the data, like article’s title, and the like.

Offline

#7 2007-05-19 18:10:19

rossharvey
Member
From: Earth. Sometimes.
Registered: 2005-03-16
Posts: 233
Website

Re: [textile] SEO Friendly mod: Giving all links a title by default

Jeremie wrote:

I’m not sure what you mean by “handle tabs”…

Apologies – got wires crossed with the tab character bug in another thread!

I was under the impression search engines didn’t like empty title tags. If thats changed and they are ignored if identical then I stand corrected :¬)

I’ll checkout wet_quicklink.

Offline

#8 2007-05-19 23:21:39

Jeremie
Member
From: Provence, France
Registered: 2004-08-11
Posts: 1,578
Website

Re: [textile] SEO Friendly mod: Giving all links a title by default

rossharvey wrote:

I was under the impression search engines didn’t like empty title tags.

I’m not sure that was, or is, the case. I don’t see why they wouldn’t.

They don’t like the absence of or empty alt attribute, but that’s a different story (and they are right on this one).

Offline

Board footer

Powered by FluxBB