From c8cc43071f17140dd4174c7ac110d2d8cb7385eb Mon Sep 17 00:00:00 2001 From: jensp Date: Sun, 3 Nov 2019 09:48:16 +0000 Subject: [PATCH] Documentation for ccm-cms-assets-imagestep.ftl git-svn-id: https://svn.libreccm.org/ccm/trunk@6289 8810af33-2d31-482b-a856-94f89814c4df --- .../freemarker/ccm-cms-assets-imagestep.ftl | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/ccm-cms-assets-imagestep/web/themes/freemarker/ccm-cms-assets-imagestep.ftl b/ccm-cms-assets-imagestep/web/themes/freemarker/ccm-cms-assets-imagestep.ftl index 55323ec18..8b9a0ecb5 100644 --- a/ccm-cms-assets-imagestep/web/themes/freemarker/ccm-cms-assets-imagestep.ftl +++ b/ccm-cms-assets-imagestep/web/themes/freemarker/ccm-cms-assets-imagestep.ftl @@ -5,6 +5,25 @@ "ui": "http://www.arsdigita.com/ui/1.0"} > +<#--filedoc + Provides functions for processing the image attachemnts of a content item. +--> + +<#--doc + Creates a sorted sequence of hashes (see Freemarker docuementation) for the + image attachments of a content item. + + @param item The model of the content item to use. + + @return A sequence of hashes. The following keys are available in each hash: + * `imageId`: The ID of the image. + * `name`: The name of the image file. + * `caption`: The caption of the image. + * `sortKey`: The sort key of the image. + * `width`: The orginal width of the image. + * `height`: The height width of the image. + * `imageUrl`: The URL of the image. +--> <#function getImageAttachments item> <#return item["./imageAttachments"]?map(