Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-01-25 22:26:33

m0rt
Member
Registered: 2005-07-12
Posts: 12

Title tags for accessibility

Hi,

I’d like to add meaningful title tags to some links and can’t seem to figure out how.

I have it working on Permalinks thanks to a post on the forum by Mary (thanks!) but I’m struggling with comment invite links and category links – eg:

On a comment invite link: title=“Comment on [Article Name]”

On a category link: title=“View all posts in [Category Name]”

Any pointers much appreciated.

Offline

#2 2006-01-26 00:00:21

Andrew
Plugin Author
Registered: 2004-02-23
Posts: 730

Re: Title tags for accessibility

:cough: title attributes :cough:

)

Offline

#3 2006-01-26 00:09:25

m0rt
Member
Registered: 2005-07-12
Posts: 12

Re: Title tags for accessibility

yes, them too :)

Offline

#4 2006-01-26 16:18:33

m0rt
Member
Registered: 2005-07-12
Posts: 12

Re: Title tags for accessibility

anyone???

Offline

#5 2006-01-26 20:57:51

mikeg
Member
From: Edmonton, Canada.
Registered: 2005-02-21
Posts: 31
Website

Re: Title tags for accessibility

Here’s a solution for the comments invite:

<txp:if_comments_allowed><a href="<txp:permlink />#comment" title="Comment on <txp:title />">Commentary</a></txp:if_comments_allowed>

<p>Obviously, make sure that you have a “comment” anchor just above your comments display. <a name="comment"></a> will work in this case.</p>

As for the category list, not sure. It would likely be easy to hack the code a bit. Around line 465 in /textpattern/publish/taghandlers.php is where you’d wanna look. Haven’t tried it myself, but it looks like it’d be a snap (famous last words).

Anyways. Hope it helps.

Last edited by mikeg (2006-01-26 21:04:12)


“I love Beethoven. Especially the poems.”
- Ringo Starr

Offline

#6 2006-01-26 21:49:47

m0rt
Member
Registered: 2005-07-12
Posts: 12

Re: Title tags for accessibility

Nice one Mike – thanks very much :)

Offline

Board footer

Powered by FluxBB