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"]>