#set( $attachmentroot = "$apphome/views/modules/asset/editor/attachments" ) #set( $path = "/WEB-INF/data/$catalogid/originals/$asset.sourcepath/" ) #macro(listattachments $parentfolder) #set( $files = $attachmentManager.listChildren($context, $mediaarchive, $parentfolder ) ) #foreach($file in $files) #set( $filesource = "${file.parentsourcepath}/${file.name}") #set( $downloadpath = "/WEB-INF/data/$catalogid/originals/$filesource/" ) #if ( $file.folder != "true" && $file.name != "product.xml")
  • #set( $type = $mediaarchive.getMediaPlayerType($file) ) #if( $type == "video" || $type == "document" || $type == "image" ) ${file.name}
    ${file.name} #else ${file.name} #end
  • #end #end #end Media Manager