Freemarker Functions for Image Attachments
git-svn-id: https://svn.libreccm.org/ccm/trunk@5900 8810af33-2d31-482b-a856-94f89814c4dfmaster
parent
d08fddb17d
commit
4ed7bdd480
|
|
@ -28,4 +28,36 @@
|
|||
-->
|
||||
<#macro imageAttachment image>
|
||||
<#nested image["./image/id"], image["./image/name"], image["./caption"] image["./sortKey"], image["./image/width"], image["./image/height"]>
|
||||
</#macro>
|
||||
</#macro>
|
||||
|
||||
<#function getImageAttachments item>
|
||||
<#return item["./imageAttachments"]>
|
||||
</#function>
|
||||
|
||||
<#function getImageId image>
|
||||
<#return image["./image/id"]>
|
||||
</#function>
|
||||
|
||||
<#function getImageName image>
|
||||
<#return image["./image/name"]>
|
||||
</#function>
|
||||
|
||||
<#function getImageCaption image>
|
||||
<#return image["./image/caption"]>
|
||||
</#function>
|
||||
|
||||
<#function getImageSortKey image>
|
||||
<#return image["./image/sortKey"]>
|
||||
</#function>
|
||||
|
||||
<#function getImageWidth image>
|
||||
<#return image["./image/width"]>
|
||||
</#function>
|
||||
|
||||
<#function getImageHeight image>
|
||||
<#return image["./image/height"]>
|
||||
</#function>
|
||||
|
||||
<#function getImageUrl image>
|
||||
<#return dispatcherPrefix + '/cms-service/stream/image/?image_id=' + getImageId(image)>
|
||||
</#function>
|
||||
|
|
|
|||
Loading…
Reference in New Issue