Documentation of Freemarker functions for ccm-cms-assets-notes

git-svn-id: https://svn.libreccm.org/ccm/trunk@6107 8810af33-2d31-482b-a856-94f89814c4df
master
jensp 2019-06-05 18:03:59 +00:00
parent da9b2fe4e2
commit 3e2047dce6
1 changed files with 6 additions and 23 deletions

View File

@ -1,31 +1,14 @@
### ccm-cms-assets-notes # Freemarker functions for Sidenote assets
Functions for processing note assets assigned to a content item. Functions for processing note assets assigned to a content item.
#### getNotes Import path
: `/ccm-cms-assets-notes.ftl`
getNotes(item) ## `getNotes(item: Node): Sequence<Node>`
Returns the notes assigned to a content item. Returns the notes assigned to a content item.
##### Parameters ## `getContent(item: Node): String
`item` The content item Gets the content of a note. The return value is the HTML content of the node.
##### Returns
A sequence of the notes assigned to the provided item.
#### getContent
getContent(note)
Gets the content of a note.
##### Parameters
`note` The note.
##### Returns
The content of the note.