Freemarker function for testing if an item in an object list has an attached image

git-svn-id: https://svn.libreccm.org/ccm/trunk@6066 8810af33-2d31-482b-a856-94f89814c4df
master
jensp 2019-05-20 14:24:49 +00:00
parent 28eb621d52
commit 2746e6bc82
1 changed files with 4 additions and 0 deletions

View File

@ -82,6 +82,10 @@
<#return item["./nav:path"]>
</#function>
<#function hasImage item>
<#return (item["./nav:attribute[@name='imageAttachments.image.id']"]?size > 0)>
</#function>
<#function getImageId item>
<#return item["./nav:attribute[@name='imageAttachments.image.id'][1]"]>
</#function>