The DAM for Sitecore module extends SItecores default LInkProvider. The reason why we do that is because our media links are not recognized by Sitecore. We have to extend the LinkProvider and overrided the method ParseDynamicLink.
kjsdlfsdfThis is the configuration which is located in the fileĀ App_Config\Include\damforsitecore\DFS.Services.config.
Code Block |
---|
|
<linkManager>
<providers>
<add patch:instead="*[@type='Sitecore.Links.LinkProvider, Sitecore.Kernel']" name="sitecore" type="DFS.Services.DfsLinkProvider, DFS.Services" addAspxExtension="false" alwaysIncludeServerUrl="false" encodeNames="true" languageEmbedding="asNeeded" languageLocation="filePath" lowercaseUrls="false" shortenUrls="true" useDisplayName="false"/>
</providers>
</linkManager> |
If for some reason you also overrides the LinkProvider in your Sitecore solution, then we have a problem. Only one can override the LinkProvider. To fix this you have to extend from our implementation. Include the DFS.Services.dll and extend with the class DFSLinkProvider like this:
Code Block |
---|
|
public class YourImplProvider: DfsLinkProvider
{
...
} |