Created
February 1, 2017 20:08
-
-
Save soen/58f9e2dc0580635856f56015a6474b33 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class CustomLinkRenderer : Sitecore.Xml.Xsl.LinkRenderer | |
{ | |
public LinkRenderer(Item item) : base(item) | |
{ | |
} | |
protected override string GetUrl(XmlField field) | |
{ | |
if (field != null) | |
return new CustomLinkUrl().GetUrl(field, this.Item.Database); | |
return LinkManager.GetItemUrl(this.Item, XslHelper.GetUrlOptions()); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment