3
votes

I am looking to do something similar to the Insert Sitecore Link as I can with, for example, Image fields in which I can add a Source in order to limit from what directories an Image can be picked from. I want to be able to limit what items the content editor can link to as it currently shows the whole Sitecore database when Insert Sitecore Link is clicked.

1
Are talking about a Link field (DropLink, InternalLink etc...) or the Insert Sitecore Link button in the Rich Text Editor? - Richard Seal
@RichardSeal in the Rich Text Editor I think, according to the title. - Kevin Brechbühl
@RichardSeal In the RTE. - Moo

1 Answers

0
votes

The way I'd probably go about doing this would be to create a custom button for the RTE toolbar and implement your own insert sitecore link functionality (possibly based on the existing functionality).

See https://markstiles.net/Blog/2011/02/05/adding-button-to-rich-text-editor.aspx for a quick primer on how to achieve this.