Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

App_Config/Include/damforsitecore/DFS.SettingsPipelines.config

PipelineDescriptionPipelineArgs
DFS.GetAssetFieldValueThis pipeline will return rendering html for an asset item. 
  1. 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.
  2. The different processors will replace the stampvalue in the html template.
  3. 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


Code Block
languagec#
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



PipelineDescriptionPipelineArgs
DFS.Services.DFSMedia

This pipeline will return the media stream either from the cache or from Digizuite DAM. 

  1. First we check security.
  2. If the media is in the cache we return that.
  3. The media was not in the cache, fetch the media from Digizuite DAM.
  4. We resize the image, if resizing parameters was added.
  5. Store the media in the cache.


List of processors

  • DFS.Client.Services.Pipelines.DFSMedia.CheckSecurityFetchAsset (Only In Role: ContentManagement)
  • DFS.Services.Pipelines.DFSMedia.GetMediaFromCacheDFS.Services.Pipelines.DFSMedia.GetMediaPrerequisites
  • DFS.Services.Pipelines.DFSMedia.GetMediaFromDigizuite
  • DFS.Services.Pipelines.DFSMedia.ResizeImage
  • DFS.Services.Pipelines.DFSMedia.SaveToCache
  • DFS.Services.Pipelines.DFSMedia.ResolveDownloadFilename


Code Block
languagec#
var arguments = new DFSMediaPipelineArgs
{
	Request = mediaRequest,
    Result = new MediaResult()
};


...