Documentation for ccm-cms-assets-imagestep.ftl
git-svn-id: https://svn.libreccm.org/ccm/trunk@6289 8810af33-2d31-482b-a856-94f89814c4dfmaster
parent
98bf5f215f
commit
c8cc43071f
|
|
@ -5,6 +5,25 @@
|
||||||
"ui": "http://www.arsdigita.com/ui/1.0"}
|
"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>
|
<#function getImageAttachments item>
|
||||||
|
|
||||||
<#return item["./imageAttachments"]?map(
|
<#return item["./imageAttachments"]?map(
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue