content:assetThumbnailUrl

This tag will get you a url to a thumbnail of a asset if it's an image taken from a content, either bound though a property or referenced by a content id.

Parameters

Name

Required Default Type Description
id true   Object/String The result is stored in this variable.
digitalAssetId false   Object/String The id of the digitalAsset you wish to get the asset thumbnail url to.
contentId false   Object/String The id of the content you wish to get the assets thumbnail from.
propertyName false   Object/String The property name the component used to bind the content by in which you wish to get the asset thumbnail from.
assetKey true   Object/String The key of the asset you wish to get the url to.
width false   Object/String The width of the thumbnail
height false   Object/String The height of the thumbnail
useInheritance false true boolean Sets if the component should look for other articles on other components with the same propertyname, either on the same page or on pages above.
useRepositoryInheritance false true boolean Sets if the component should use repository inheritance when looking for inherited items.
useStructureInheritance false true boolean Sets if the component should use inherit properties from it’s parent site nodes.

ID-result variable contains: An string containing the url to the thumbnail asset.

Examples

The following example gets the url to the asset with asset key "Image" from the content bound by the component property "Article".

<content:assetThumbnailUrl id="imageThumbnailUrl" propertyName="Article"
assetKey="Image" width="100" height="100"/>
<img src="<c:out value="${imageThumbnailUrl}"/>"/>

 



comments powered by Disqus