Reputation: 306
In the Rich Test Editor, when linking to a proxy item referencing a media item using "Insert Sitecore Link", the link does not behave correctly, as it links to the proxy item directly, instead of the the proper resource in the media library.
Eg. when link is clicked, the user gets a "broken" proxy page, instead of the link is treated as the correct resource type.
RTE "Insert Sitecore Link" -> Proxy folder/subitems -> Media Library folder/subitems
Question: Are there some way of "extending" the proxy functionality, to properly support linking proxyfied Media Library items?
Upvotes: 1
Views: 192
Reputation: 4456
Sitecore gives you the ability to create a custom link provider
in which you can override the method GetItemUrl
. GetItemUrl is called when internal links in the RTE link are expanded in to 'a' tags. You could use you custom link provider to assemble links differently when the link is set to one of your proxy items (i.e. if it's a proxy item then create link to the corresponding media item).
The following articles give examples of customizing how links are formed
Upvotes: 1