- added #9668 extension template variable to attachment loops for the following assets:

Article,Post,Event,File,Form::Attachments,Folder
This commit is contained in:
Peter Christiansen 2011-07-21 21:42:17 +02:00
parent a4ee31feef
commit fd3346586e
7 changed files with 13 additions and 91 deletions

View file

@ -369,6 +369,7 @@ sub view {
}
push(@{$var{attachment_loop}}, {
filename => $file,
extension => WebGUI::Storage->getFileExtension($file),
isImage => $storage->isImage($file),
url=> $storage->getUrl($file),
thumbnailUrl => $storage->getThumbnailUrl($file),

View file

@ -313,6 +313,7 @@ sub view {
"icon.small" => $child->getIcon(1),
"icon.big" => $child->getIcon,
type => $child->getName,
extension => WebGUI::Storage->getFileExtension( $child->get("filename")),
url => $child->getUrl,
canEdit => $child->canEdit,
controls => $child->getToolbar,