From 746e62ee2951896c10330e17fdffc425e0e45083 Mon Sep 17 00:00:00 2001 From: jensp Date: Mon, 20 May 2019 14:31:53 +0000 Subject: [PATCH] Freemarker function for getting the value of the lead property of an item in an object list git-svn-id: https://svn.libreccm.org/ccm/trunk@6068 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 cae7599af..6c7f13e19 100644 --- a/ccm-navigation/web/themes/freemarker/ccm-navigation/object-list.ftl +++ b/ccm-navigation/web/themes/freemarker/ccm-navigation/object-list.ftl @@ -86,6 +86,10 @@ <#return item["./nav:path"]> +<#function getItemLead item> + <#return item["./nav:attribute[@name='lead']"]> + + <#function hasImage item> <#return (item["./nav:attribute[@name='imageAttachments.image.id']"]?size > 0)>