Hi everyone, i’m searching for a velocity function to add an attachment to a page.
#macro(changeAttachements $sectionChildDocument)
#set($list=$sectionChildDocument.getAttachmentList())
#foreach($attachment in $list)
##$doc.addAttachments()
#end
#end
The addAttachment() function neads the name of the attachment but the getAttachmentList() returns a list of types “Attachments”. So i want to know if it exist an addAttachment() function where i can pass an Attachment as parameter.