Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2010-08-09 12:47:37

philwareham
Core designer
From: Haslemere, Surrey, UK
Registered: 2009-06-11
Posts: 3,564
Website GitHub Mastodon

Access keys support for txp:link tag

Just a very minor thing, but it would be useful to some people (ie. me!):

Any chance of having the accesskey attribute added to the <txp:link/> tag in a future release? Or is there a plugin that does that already?

Last edited by philwareham (2010-08-10 08:09:21)

Offline

#2 2010-08-09 23:52:36

gomedia
Plugin Author
Registered: 2008-06-01
Posts: 1,373

Re: Access keys support for txp:link tag

Hi Phil,

accesskeys are something I’m toying with in a possible future adi_menu – not that I’ve used them in anger before, but it seems like a sensible thing to provide. Would an enhancement to adi_link be any good to you?

Adi

Offline

#3 2010-08-10 08:07:09

philwareham
Core designer
From: Haslemere, Surrey, UK
Registered: 2009-06-11
Posts: 3,564
Website GitHub Mastodon

Re: Access keys support for txp:link tag

Hi Adi,

I’ve not used your plugin before but I’ll definitely check it out. Accesskeys seem like such an easy thing to add to the core that I would rather they were part of the vanilla installation (like we already have the ‘rel’ attribute available for links), but it would be good if you did add it to your plugin as another option.

I’m increasingly getting asked to make websites as accessible as is possible for people of all abilities (part of the UK Disability Discrimination Act) and although I could quite easily just hardcode those links with accesskeys into a site I like keeping as much content as possible fully managed by Textpattern.

Cheers,
Phil

Offline

#4 2010-08-10 08:36:50

gomedia
Plugin Author
Registered: 2008-06-01
Posts: 1,373

Re: Access keys support for txp:link tag

philwareham wrote:

Accesskeys seem like such an easy thing to add to the core that I would rather they were part of the vanilla installation

Me too.

… I like keeping as much content as possible fully managed by Textpattern.

Me too – adi_link operates using links stored under the TXP Links tab. I’ve got another update to do it soon, so I’ll look into accesskeys at the same time.

Offline

#5 2010-08-10 08:52:34

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,448
Website GitHub

Re: Access keys support for txp:link tag

philwareham wrote:

Any chance of having the accesskey attribute added to the <txp:link/> tag

I doubt it’ll make it to the core since it looks like the accesskey attribute has been deprecated in HTML 5.

It doesn’t say what we should use instead, which is interesting from an accessibility point of view. Perhaps there’s some other system that goes alongside HTML 5 that can specify access keys, or maybe it’ll be the domain of jQuery. Haven’t really delved into it all yet because it’s a bit sticky.


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#6 2010-08-10 09:15:20

philwareham
Core designer
From: Haslemere, Surrey, UK
Registered: 2009-06-11
Posts: 3,564
Website GitHub Mastodon

Re: Access keys support for txp:link tag

Bah! They’ve dropped that from the spec recently then (the W3C HTML5 validator does not even flag it up), and since I’m coding my current project in HTML5 I’ll have to strip it out. Oh well.

Thanks for the heads up Stef.

Last edited by philwareham (2010-08-10 09:15:29)

Offline

#7 2010-08-10 09:33:38

gomedia
Plugin Author
Registered: 2008-06-01
Posts: 1,373

Re: Access keys support for txp:link tag

Bloke wrote:

I doubt it’ll make it to the core since it looks like the accesskey attribute has been deprecated in HTML 5.

That makes it easy then!

Offline

#8 2010-08-10 09:48:16

philwareham
Core designer
From: Haslemere, Surrey, UK
Registered: 2009-06-11
Posts: 3,564
Website GitHub Mastodon

Re: Access keys support for txp:link tag

Lol. Maybe I should stop getting my info from Wikipedia in future…

In XHTML 2, a revised web authoring language, the HTML Working Group of the World Wide Web Consortium deprecated the accesskey attribute in favor of the XHTML Role Access Module. However, XHTML 2 has been retired in favor of HTML 5, which (as of August 2009) continues to permit accesskeys.

Offline

Board footer

Powered by FluxBB