Опубліковувач

Rozpoczęta rekrutacja na 12 edycję Forum Rozwoju Mazowsza

## dokument #set($docURL = $httpUtil.decodeURL($document.getData(), true)) #set($parts = $stringUtil.split($docURL, "/")) #if($parts.size()>3) #set($targetPart = $stringUtil.split($docURL, ";")) #if($targetPart.size()>1) #set($target = $targetPart.get(1)) #else #set($target = "_self") #end #set($group_id = $getterUtil.getLong($parts.get(2))) #set($folder_id = $getterUtil.getLong($parts.get(3))) #set($doc_name = $parts.get(4)) #set($uuid = $parts.get(5)) #set($uuid = $stringUtil.split($uuid, "?")) #set($uuid = $uuid.get(0)) #set($docService = $serviceLocator.findService("com.liferay.portlet.documentlibrary.service.DLAppLocalService")) #set($fileEntry = $docService.getFileEntryByUuidAndGroupId($uuid, $group_id) ) #if($fileEntry)
#set($size = $mathTool.toDouble($fileEntry.size) / 1024) #set($sizeType = "KB") #if($fileEntry.size > 1024*1024) #set($size = $mathTool.toDouble($fileEntry.size) / (1024*1024)) #set($sizeType = "MB") #end #set($size = $mathTool.roundTo(2, $size))

$fileEntry.title

$fileEntry.getExtension() $size $sizeType

Obowiązuje od $dateTool.format("dd.MM.yyyy", $dateTool.toDate("dd-MM-yyyy hh:mm:ss", $fileEntry.getCreateDate()), $locale) #if ($fileEntry.getDescription().length() > 0) | Opis zmian od ostatniej wersji

#end

#end #end

Skorzystaj z programu