You are viewing an old version of this page. View the current version.
Compare with Current
View Page History
« Previous
Version 2
Next »
DAM for Sitecore is constructed using pipelines, and it is possible to hook into the pipelines.
Note: Be aware that if you do change the pipelines, you are changing how DAM for Sitecore is supposed to work out of the box, and this may result in undesirable side effects.
The pipelines are defined in the .config files found in this folder: \App_Config\Include\damforsitecore
Below are descriptions of the most important pipelines used in the module.
App_Config/Include/damforsitecore/DFS.Settings.config
Pipeline | Description | PipelineArgs |
---|
DFS.GetAssetFieldValue | This pipeline will return rendering html for an asset item.
- First it will get the html template, determined by the media type and the fieldId (HtmlForAssetType). The html templates are located at:
Sitecore → System → Modules → Digizuite → MedaDataRoot → AssetTypeOutputRoot. - The different processors will replace the stampvalue in the html template.
- The property FieldValue of GetAssetFieldValueArgs will contain the rendering html.
List of processors - DFS.ContentSearch.Pipelines.GetAssetFieldValue.GetAssetTypeOutput
- DFS.Pipelines.GetAssetFieldValue.ReplaceTagsWithSelectedValues
- DFS.Services.Pipelines.GetAssetFieldValue.ReplaceTagsWithAccessValues
- DFS.Pipelines.GetAssetFieldValue.ReplaceTagsWithConfigValues
- DFS.Pipelines.GetAssetFieldValue.ReplaceTagsWithAssetItemFieldValues
- DFS.ContentSearch.Pipelines.GetAssetFieldValue.ReplaceTagsWithAssetIndexValues
- DFS.Pipelines.GetAssetFieldValue.RemoveEmptyAttributes
- DFS.Pipelines.GetAssetFieldValue.AppendTagsWithParameterValues
- DFS.ContentSearch.Pipelines.GetAssetFieldValue.AppendSeo
- DFS.Pipelines.GetAssetFieldValue.SplitFieldValueIntoResult
|
var renderArgs = new GetAssetFieldValueArgs
{
AssetItemId = new ID(this.AssetItemId),
ContextLanguage = Context.Language,
FieldId = DFS.Fields.HtmlForAssetType.FieldAssetMedia,
Quality = this.Quality
};
|
App_Config/Include/damforsitecore/DFS.Services.config
Pipeline | Description | PipelineArgs |
---|
DFS.Services.DFSMedia | This pipeline will return the media stream either from the cache or from Digizuite DAM. - First we check security.
- If the media is in the cache we return that.
- The media was not in the cache, fetch the media from Digizuite DAM.
- We resize the image, if resizing parameters was added.
- Store the media in the cache.
List of processors - DFS.Services.Pipelines.DFSMedia.CheckSecurity
- DFS.Services.Pipelines.DFSMedia.GetMediaFromCache
- DFS.Services.Pipelines.DFSMedia.GetMediaPrerequisites
- DFS.Services.Pipelines.DFSMedia.GetMediaFromDigizuite
- DFS.Services.Pipelines.DFSMedia.ResizeImage
- DFS.Services.Pipelines.DFSMedia.SaveToCache
- DFS.Services.Pipelines.DFSMedia.ResolveDownloadFilename
|
var arguments = new DFSMediaPipelineArgs
{
Request = mediaRequest,
Result = new MediaResult()
};
|