#set( $attachmentroot = $content.attachmentroot ) #set( $path = "/WEB-INF/data/$catalogid/originals/$asset.sourcepath/" ) #macro(showattachments $parentfolder $depth) #set ( $depth = $depth + 1) #set ( $padding = (15 * $depth) ) #set( $files = $attachmentManager.listChildren($context, $mediaarchive, $parentfolder ) ) #foreach($file in $files) #set( $filesource = "${file.parentsourcepath}/${file.name}")
  • #if ( $file.isfolder == "true" ) $file.name #else #set( $subpath = $attachmentManager.parseFileSubPath($asset.sourcepath, ${file.parentsourcepath}, $file.name) ) $file.name #if ( $asset.primaryFile == $subpath )([[Primary File]])#end #if ( $asset.primaryThumb == $subpath )([[Primary Thumbnail]])#end #end #set( $downloadpath = "/WEB-INF/data/$catalogid/originals/$filesource/" ) #if ( $file.isfolder == "true" ) [[Download Folder]] [[Add New Folder]] [[Upload]] [[Edit]] [[Delete]]
    #else [[Download File]] [[Delete]] #end #if($file.isfolder == "true") #end
  • #if ( $file.isfolder == "true" ) #end #end #end
    [[Reload Files]]
    $pages.include("$attachmentroot/details.html")
    ##$sizer.inEnglish($attachment.size)