Freemarker function for getting the object count from an object list

git-svn-id: https://svn.libreccm.org/ccm/trunk@6056 8810af33-2d31-482b-a856-94f89814c4df
master
jensp 2019-05-18 09:31:29 +00:00
parent f9da0f8a80
commit dc62372a6f
1 changed files with 4 additions and 0 deletions

View File

@ -25,6 +25,10 @@
</#if> </#if>
</#function> </#function>
<#function getObjectCount listId>
<#return model["/bebop:page/*[id='${listId}']/nav:ObjectList/nav:paginator/@objectCount"]@@text>
</#function>
<#function getItemLink item> <#function getItemLink item>
<#return item["./nav:path"]> <#return item["./nav:path"]>
</#function> </#function>