Documentation for ccm-cms-types-bookmark.ftl

git-svn-id: https://svn.libreccm.org/ccm/trunk@6294 8810af33-2d31-482b-a856-94f89814c4df
master
jensp 2019-11-03 10:48:18 +00:00
parent 7044babdd2
commit def48dcb3e
1 changed files with 18 additions and 0 deletions

View File

@ -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 @@
</#if>
</#function>
<#--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"]>