6D Labs / CQ Extended Tag Library / API / Tags / getAssetMetadata

getAssetMetadata Tag

Retrieves a metadata attribute from the specified asset.

  • name - getAsset

  • class - com.sixdimensions.wcm.cq.taglib.ext.GetAssetMetadataTag

  • attributes:

    • asset - required - The asset from which to retrieve the metadata
    • key - required - The property to retrieve from the asset metadata
    • var - The name of the page context variable in which to save the metadata value If not specified the value will be written to the page

Example:

<ext:getAssetMetadata asset="${asset}" key="dam:MimeType" />

Follow Our Blog Posts

Latest CQ News