# Menu Links

**URL:** <https://www.ruby-forum.com/t/menu-links/97937>\
**Category:** Radiant CMS\
**Created:** [July 11, 2006, 4:16pm UTC](https://www.ruby-forum.com/t/menu-links/97937 "2006-07-11T16:16:57Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Harvey\_B](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/13edae/32.png) [@Harvey\_B](https://www.ruby-forum.com/u/Harvey_B)\
**Post date:** [July 11, 2006, 4:16pm UTC](https://www.ruby-forum.com/t/menu-links/97937/1 "2006-07-11T16:16:57Z")

</div>

Hey guys,  
I have been struggling with this one. I suspect the problem is that I  
am  
missing the obvious. I have lots of different sidebars menu which I  
generate like this:-

\<r:find url="/what-we-do/"\>

# 

- 

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 .

I’ve been struggling to find the right syntax for r:link. Could  
somebody  
point me in the right direction?

Thanks in advance  
Harvey

This e-mail has been scanned for all viruses by MessageLabs.

---

<div class="post-metadata">

**Author:** ![Harvey\_B](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/13edae/32.png) [@Harvey\_B](https://www.ruby-forum.com/u/Harvey_B)\
**Post date:** [July 11, 2006, 4:36pm UTC](https://www.ruby-forum.com/t/menu-links/97937/2 "2006-07-11T16:36:41Z")

</div>

Harvey B. wrote:

> 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 .

You can’t use the \<r:link /\> tag to do what you would like to do, but  
you could do this:

\<r:find url=“/what-we-do/”\>

# 

- 

You mention accessibility. Is the title attribute part of an  
accessibility spec?

–  
John L.  
[http://wiseheartdesign.com](http://wiseheartdesign.com)

---

<div class="post-metadata">

**Author:** ![Harvey\_B](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/13edae/32.png) [@Harvey\_B](https://www.ruby-forum.com/u/Harvey_B)\
**Post date:** [July 11, 2006, 5:33pm UTC](https://www.ruby-forum.com/t/menu-links/97937/3 "2006-07-11T17:33:07Z")

</div>

Thanks John works as advertised. I am no expect when it comes to  
accessibility. Luckily the designer I am working with is guiding me.  
He’s  
basically told me that all hyperlinks should have titles for screen  
readers.  
Pictures and table should also have the appropriate comments  
incorporated.

Harvey

On 11/7/06 15:34, “John W. Long” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> -- John L. http://wiseheartdesign.com \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_ Radiant mailing list removed\_email\_address@domain.invalid http://lists.radiantcms.org/mailman/listinfo/radiant
> 
> This e-mail has been scanned for all viruses by MessageLabs.

This e-mail has been scanned for all viruses by MessageLabs.

---

<div class="post-metadata">

**Author:** ![Harvey\_B](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/13edae/32.png) [@Harvey\_B](https://www.ruby-forum.com/u/Harvey_B)\
**Post date:** [July 12, 2006, 3:18am UTC](https://www.ruby-forum.com/t/menu-links/97937/4 "2006-07-12T03:18:32Z")

</div>

> 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 .

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 pdf,  
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 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:

Some Title

But you can’t do:

\<r:link title=“Learn more about \<r:title/\>”/\>

Dan.
