Documentation for ccm-cms-assets-imagestep.ftl

git-svn-id: https://svn.libreccm.org/ccm/trunk@6289 8810af33-2d31-482b-a856-94f89814c4df
master
jensp 2019-11-03 09:48:16 +00:00
parent 98bf5f215f
commit c8cc43071f
1 changed files with 19 additions and 0 deletions

View File

@ -5,6 +5,25 @@
"ui": "http://www.arsdigita.com/ui/1.0"}
>
<#--filedoc
Provides functions for processing the image attachemnts of a content item.
-->
<#--doc
Creates a sorted sequence of hashes (see Freemarker docuementation) for the
image attachments of a content item.
@param item The model of the content item to use.
@return A sequence of hashes. The following keys are available in each hash:
* `imageId`: The ID of the image.
* `name`: The name of the image file.
* `caption`: The caption of the image.
* `sortKey`: The sort key of the image.
* `width`: The orginal width of the image.
* `height`: The height width of the image.
* `imageUrl`: The URL of the image.
-->
<#function getImageAttachments item>
<#return item["./imageAttachments"]?map(