Setting Proper Targets on General Link Field – Sitecore 8x

Setting Proper Targets on General Link Field – Sitecore 8x

I had this situation while working with Sitecore.NET 8.0 (rev. 160115)* and I want to share it to the community.

A “General Link Field” provides “link” features so we can create links. Simple right?

A while ago a noticed that it was not possible to set an internal link to be opened on same page.

I analyzed what could be the issue and it happened that the INTERNAL LINK option was not providing the option to set the _parent.

Instead the options were the following: Active Browser, Custom and New Browser.

To understand why Sitecore is setup like this please open CORE Database and go to the following item:

/sitecore/client/Applications/Dialogs/InsertLinkViaTreeDialog/PageSettings/TargetsSearchPanelConfig

Please note the Root field of the Filters section:

It points to the “Targets” folder that contains the following items:

So this folder does not seem right.

To change this behavior please set the Root field to:

/sitecore/client/Business Component Library/System/Texts/Targets

and you will have the following options when creating an Internal Link:

Now when you are creating an Internal Link you will have the following options:

These are the target attributes specified by w3schools.com (framename does not apply in this case).

I hope that helps and if you have any comments or questions please feel free to ask.

 

*You might find the same issue while working with other Sitecore 8  revisions.

Leave a Comment

%d bloggers like this: