Wednesday, October 17, 2018

How to Add Anchor Link to General Link

I came across an issue where we needed the general field in Sitecore 8.2 to also have an anchor added to it, so that the page loads to a particular section on the page. Unfortunately, it's not as easy as you would think! I found the solution here:

https://community.sitecore.net/developers/f/8/t/1785

Basically, you have to put the field in "Raw Values" mode, then within the link displayed in the general field, make sure to modifyed the "anchor=" attribute to include whatever you'd like the anchor to be, minus the hashtag. 

No comments:

Post a Comment