From dc62372a6fab56dd010482ef2ed573e13e17285c Mon Sep 17 00:00:00 2001 From: jensp Date: Sat, 18 May 2019 09:31:29 +0000 Subject: [PATCH] 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 --- .../web/themes/freemarker/ccm-navigation/object-list.ftl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ccm-navigation/web/themes/freemarker/ccm-navigation/object-list.ftl b/ccm-navigation/web/themes/freemarker/ccm-navigation/object-list.ftl index 55f35d9e1..fceffc8c9 100644 --- a/ccm-navigation/web/themes/freemarker/ccm-navigation/object-list.ftl +++ b/ccm-navigation/web/themes/freemarker/ccm-navigation/object-list.ftl @@ -25,6 +25,10 @@ +<#function getObjectCount listId> + <#return model["/bebop:page/*[id='${listId}']/nav:ObjectList/nav:paginator/@objectCount"]@@text> + + <#function getItemLink item> <#return item["./nav:path"]>