Menu Links

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.

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

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” [email protected] wrote:

    John L.
    http://wiseheartdesign.com


    Radiant mailing list
    [email protected]
    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.

    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.

    This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

    | Privacy Policy | Terms of Service | Remote Ruby Jobs