Get a list of files from repository

  1. ##Get File List  
  2. #fileRepository('/folder/')  
  3. #foreach($file in $filesList)  
  4.   
  5.     <tr bgcolor="#ffffff">  
  6.           <td align="center" valign="top"><a href="/dotAsset/${file.identifier}.${file.getExtension()}"><img src="/icon?i=${file.getExtension()}" width="16" height="16" alt="${file.getExtension()} file" border="0"></a></td>  
  7.           <td valign="top"><a href="/dotAsset/${file.identifier}.${file.getExtension()}">$file.fileName</a></td>  
  8.           <td valign="top">$math.ceil($math.div(${file.size}, 1024)) kb</td>  
  9.           <td valign="top">$UtilMethods.dateToHTMLDate($file.publishDate,'MMM d, yyyy')</td>  
  10.           <td valign="top">$!file.friendlyName</td>  
  11.     </tr>  
  12.   
  13. #end  
comments powered by Disqus