Using 'Rel="nofollow"' attribute in sitemap control

2 posts, 0 answers
  1. Raghuraman Venkataraman
    Raghuraman Venkataraman avatar
    8 posts
    Member since:
    Nov 2009

    Posted 05 Apr 2011 Link to this post

    Hello All,

    I am making use of Telerik's RadSiteMap control to display the hyperlinks of all the pages residing in my site. I have a requirement wherein I have to use the 'rel="nofollow"' attribute of the anchor tag for some of the hyperlinks (but not for all of them).

    Is it possible to control this using the ".sitemap" file itself. Otherwise is there any javascript workaround to add this attribute? I went through the html source of my aspx page once the page was rendered in my browser. There was no unique identifier for any of the hyperlinks. Any insights on how I could achieve this?

  2. Dimitar Terziev
    Dimitar Terziev avatar
    1268 posts

    Posted 08 Apr 2011 Link to this post

    Hi Raghuraman,

    I've prepared an example page where using jQuery a 'rel="nofollow" attribute is added to particular nodes of the RadSiteMap.

    I hope this would help you out.

    Dimitar Terziev
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top