Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Bo Damgaard Mortensen 719 posts 1207 karma points
    Aug 08, 2011 @ 11:28
    Bo Damgaard Mortensen
    0

    RTE: add class to a link

    Hi all,

    I need to be able to set a links rel="" attribute to nofollow if needed in the RTE. I found a post here on the forum suggesting to make a nofollow class and apply that to the link that needs the nofollow attribute. When applying the style my link should look like this:

    <a href="/" class="nofollow" title="My link">My link</a>

    In XSLT I'd simply just replace class with rel before outputting the HTML.

    I'm a bit stuck though, when I'm applying my nofollow class to a link in the RTE, it wraps the <a> tag in a <span class="nofollow"> tag. Is it possible to place the nofollow-style on the link itself rather than wrapping it in a span element?

    Hope my question makes sense, if not - please let me know :-)

    Thanks in advance!

    / Bo

  • Bo Damgaard Mortensen 719 posts 1207 karma points
    Aug 10, 2011 @ 13:52
    Bo Damgaard Mortensen
    0

    bump!

    Anyone? :)

  • Nigel Wilson 945 posts 2077 karma points
    Feb 10, 2012 @ 03:28
    Nigel Wilson
    0

    Bump from me too...

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies