From 105f6c0c0a47ea98022fca1932b6551bd876315e Mon Sep 17 00:00:00 2001 From: jensp Date: Sun, 3 Nov 2019 09:51:29 +0000 Subject: [PATCH] Documentation for ccm-cms-assets-notes.ftl git-svn-id: https://svn.libreccm.org/ccm/trunk@6290 8810af33-2d31-482b-a856-94f89814c4df --- .../themes/freemarker/ccm-cms-assets-notes.ftl | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/ccm-cms-assets-notes/web/themes/freemarker/ccm-cms-assets-notes.ftl b/ccm-cms-assets-notes/web/themes/freemarker/ccm-cms-assets-notes.ftl index ccddc9be0..20fd1129e 100644 --- a/ccm-cms-assets-notes/web/themes/freemarker/ccm-cms-assets-notes.ftl +++ b/ccm-cms-assets-notes/web/themes/freemarker/ccm-cms-assets-notes.ftl @@ -5,6 +5,21 @@ "ui": "http://www.arsdigita.com/ui/1.0"} > +<#--filedoc + Functions for processing note attachments. +--> + +<#--doc + Generates a sorted sequence of hashes (see Freemarker documentation) for + the note attachments of a content item. + + @param item The model of the content item to use. + + @return A sorted sequence of note attachments of the provided content item. + The following keys are available in each hash: + * `content`: The content of the note. + * `rank`: The sort key of the note. +--> <#function getNotes item> <#-- <#return item["./ca_notes"]> --> <#return item["./ca_notes"]?map(