From def48dcb3e291d3704e765f950ebac66a42cbce0 Mon Sep 17 00:00:00 2001 From: jensp Date: Sun, 3 Nov 2019 10:48:18 +0000 Subject: [PATCH] Documentation for ccm-cms-types-bookmark.ftl git-svn-id: https://svn.libreccm.org/ccm/trunk@6294 8810af33-2d31-482b-a856-94f89814c4df --- .../freemarker/ccm-cms-types-bookmark.ftl | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/ccm-cms-types-bookmark/web/themes/freemarker/ccm-cms-types-bookmark.ftl b/ccm-cms-types-bookmark/web/themes/freemarker/ccm-cms-types-bookmark.ftl index 329a7990c..220102f3d 100644 --- a/ccm-cms-types-bookmark/web/themes/freemarker/ccm-cms-types-bookmark.ftl +++ b/ccm-cms-types-bookmark/web/themes/freemarker/ccm-cms-types-bookmark.ftl @@ -5,6 +5,17 @@ "ui": "http://www.arsdigita.com/ui/1.0"} > +<#--filedoc + Functions for Bookmark items. +--> + +<#--doc + Gets the description of a bookmark. + + @param item The bookmark item to use. + + @return The description of the provided bookmark. +--> <#function getDescription item> <#if (item["./description"]?size > 0)> <#return item["./description"]> @@ -13,6 +24,13 @@ +<#--doc + Gets the link of a bookmark. + + @param item The bookmark item to use. + + @return The link of the provided bookmark. +--> <#function getLink item> <#if (item["./url"]?size > 0)> <#return item["./url"]>