Render templates is a Dam For Sitecore term. It is used as templates for what HTML should be rendered for different asset types. The reason for this, is that the HTML rendered differs a lot from asset type to asset type - for instance video is very different from image.
...
- Rich text Editor Media
- Rich Text Editor Link
- Asset Field Type
- Asset Link Type
- Content Editor Asset
- URL
- DownloadUrl
Each template is used in different scenarios. It should be very apparent which ones for most of them (e.g. Rich Text Editor Media is of course used when inserting media in the Rich Text Editor). The only one that requires a little explaining is the URL and DownloadUrl . These are used when getting the URL/Doenload Download Url of assets using the API by the methods on the AssetMetadata object.
...
The templates uses the concept of Stampvalues. These are placeholders that are replaced on at runtime with the corresponding values.
...
Code Block | ||||
---|---|---|---|---|
| ||||
<img src="{stampvalue-config:cdn}/{stampvalue-config:mediapipeline}/{stampvalue-asset:assetsiloid}/{stampvalue-asset:assetid}-{stampvalue-selected:quality}/{stampvalue-asset-seo:name}" alt="{stampvalue-asset:description}" /> |
The idea is pretty simple. Each Stampvalue is replaced with corresponding values by a pipeline called GetAssetFieldValue which is defined in the DFS.Pipelines.config file. It is spawned based on the three custom field types that comes with the DAM For Sitecore module:
...