Use query for the source of the "General link" field

Can I change the Shared Link field in Sitecore to include requests in the Source in the template field definition? I hope that it is possible to add a pipeline processor to process requests for the "General Link" field in the same way as this article describes questions regarding requests to treelists and data sources ..

+7
sitecore
source share
1 answer

Unfortunately, this is not possible with the pipeline, because source resolution does not occur with the pipeline, for example, with the DropLink field.

You can set the absolute path and this works fine ... To make the original request, you need to inherit Sitecore.Shell.Applications.ContentEditor.Link and override the Source property to resolve the request, allowing the request in much the same way you are associated with.

The current implementation makes GetItem simple:

 Item obj = Client.ContentDatabase.GetItem(this.Source); 

While we need a query like item.Axes.SelectSingleItem() . Unfortunately, this means a custom field type or an update of the current field type in the kernel database.

+11
source share

All Articles