From effe06a9910b26d977f807de878f8d24efafeb02 Mon Sep 17 00:00:00 2001 From: jensp Date: Mon, 20 May 2019 14:38:30 +0000 Subject: [PATCH] Freemarker function for getting a property from an item in an object list git-svn-id: https://svn.libreccm.org/ccm/trunk@6069 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 6c7f13e19..cb9fbfd3c 100644 --- a/ccm-navigation/web/themes/freemarker/ccm-navigation/object-list.ftl +++ b/ccm-navigation/web/themes/freemarker/ccm-navigation/object-list.ftl @@ -90,6 +90,10 @@ <#return item["./nav:attribute[@name='lead']"]> +<#function getItemProperty item property> + <#return item["./nav:atttribute[@name='${property}']"]> + + <#function hasImage item> <#return (item["./nav:attribute[@name='imageAttachments.image.id']"]?size > 0)>