[Radiant] Menu Links
Daniel Sheppard
daniels at pronto.com.au
Tue Jul 11 20:13:01 CDT 2006
> They work fine. My problem is that for accessibility
> purposes I need to
> ensure that I add a title to all links. So the title should
> be something
> like "Click here to find out more about our <INSERT BREADCRUMB>.
I don't think there's any accessability guidelines that recommend that
you put 'title' attributes on ALL links. Only where they add extra
information. For example linking to a pdf with <a href="blah">pdf</a>,
you'd want to be adding the title there. If the text of the link is
description about where it's going (which <r:link/> does by including
the title of the destination), then there's no added benefit from the
inclusion of a title attribute.
The "click here to find out more about" is implied by the fact that
you're using a link, and the <insert breadcrumb> is defined by your link
text.
It might be worth spitting out a title attribute for the case where the
author is providing their own link text (<r:link>whatever</r:link>) but
not for the simple <r:link/> case.
You can add arbitary html attributes to the link tag to get them added
to your document, though you can't use expressions in those attributes
(which is a big weakness of the tag approach to templating). So you can
put:
<r:link title="monkeys" id="monkey_link"/>
and that will be rendered as:
<a href="wherever" title="monkeys" id="monkey_link">Some Title</a>
But you can't do:
<r:link title="Learn more about <r:title/>"/>
Dan.
More information about the Radiant
mailing list