At the moment when inserting an internal link in Sitecore, by default the Target is set to "Custom". Is there a way to manually change this within the Core database?
1 Answer
You can't set the default value for the Target drop down list, but you can change the order of its options, so that the "Active browser" appears at the top of the list.
Follow the below simple steps to change the sort order of the Target list in the Link Details form:
Switch to the Core DB in the Sitecore Desktop;
In the Content Editor, navigate to the
/sitecore/client/Business Component Library/version 1/Templates/Common/Text
folder and add a new field of theSingle-Line Text
type to store the sort order. For example, call itSortOrder
;Navigate to the
/sitecore/client/Applications/Dialogs/InsertLinkViaTreeDialog/PageSettings/Targets
folder and set the sort order value for each target individually using1
,2
and3
values; make sure that1
is set to the "Active browser" target option;Navigate to the
/sitecore/client/Applications/Dialogs/InsertLinkViaTreeDialog/PageSettings/TargetsSearchPanelConfig
item and set the value of theSorting
field toaSortOrder
(should be "a" followed by the name of your Sort field from step 2).Important to rebuild the
sitecore_core_index
index; go to the Control Panel > Index Manager and select the core index for rebuild.