2013_02_27_FECLE_La fe en la Universidad centra un seminario organizado por el CRYF y el IAE con motivo del Año de la Fe
$News_title.data
$Entradilla.data
#foreach ($video in $CheckVideo.getSiblings())
#if ($video.data == "true")
#if ($video.Video_Youtube.data != "" || $video.Video_Library.data != "")
## We check that there is a document to show the block of documents
#foreach ($doc in $Document.getSiblings())
#if ($doc.data == "")
#set ($hayDocument = 0)
#else
#set ($hayDocument = 1)
#end
#end
## We check if there is any music file to show the audio block.
#foreach ($music in $Audio.getSiblings())
#if ($musica.data == "")
#set ($hayMusica = 0)
#else
#set ($hayMusica = 1)
#end
#end
#if ($hayDocument == 1 || $hayMusic == 1)
##
#if($validator.isNotNull($video.Video_Library.data))
#else
#end
#end
#if($validator.isNotNull($video.Titulo_video.getData())))
#end
#end
$video.Titulo_video.getData()
#end
$Body1.data
#foreach ($image in $CheckImage.getSiblings())
#if ($image.data == "true")
##MCV26/06/13
$Body2.data
$image.Text_image.data
PHOTO: $image.Author_image.data
#end
#end
#if ($Sumario1.data != "" || $Sumario2.data != "")
#if ($Sumario1.data != "")
#end
$Sumario1.data
#end
#if ($Sumario2.data != "")

$Sumario2.data
#end

Other contents of the news
#if ($hayDocument == 1)
#foreach ($document in $Document.getSiblings())
##**************************************
##WE GET THE DATE OF THE DOCUMENT
##**************************************
#set ($dlServiceFile = $serviceLocator.findService("com.liferay.document.library.kernel.service.DLFileEntryLocalService"))
## Get the group ID of the document library you are referring to
#set ($gid = $getterUtil.getLong($document.data.split("/").get(2)))
## Get the folder ID of the DL
#set ($fid = $getterUtil.getLong($documento.data.split("/")).get(3)))
## Get the file title
#set ($fileTitle = $document.data.split("/").get(4))
#set ($tmp = {})
#set ($decoder = $tmp.class.forName("java.net.URLDecoder").newInstance())
#set ($fileTitle = $decoder.decode($fileTitle, "UTF-8"))
#set ($fileEntry = $dlServiceFile.getFileEntry($gid, $fid, $fileTitle))
#set($fileDate = $fileEntry.getModifiedDate())
##************************************************************
#end
#end
#if ($hayMusica == 1)

Document
$dateTool.format("dd/MM/yyyy HH:mm",$dateTool.toDate("EEE, dd MMM yy hh:mm:ss Z",$fileDate), $locale)
#set ($counter = 0)
#foreach ($sound in $Audio.getSiblings())
#set ($counter = $counter +1)
##**************************************
##WE GET THE DATE OF THE AUDIO
##**************************************
#set ($dlServiceFile = $serviceLocator.findService("com.liferay.document.library.kernel.service.DLFileEntryLocalService"))
## Get the group ID of the document library you are referring to
#set ($gid = $getterUtil.getLong($sound.data.split("/").get(2))))
## Get the folder ID of the DL
#set ($fid = $getterUtil.getLong($sonido.data.split("/")).get(3)))
## Get the file title
#set ($fileTitle = $sonido.data.split("/").get(4))
#set ($tmp = {})
#set ($decoder = $tmp.class.forName("java.net.URLDecoder").newInstance())
#set ($fileTitle = $decoder.decode($fileTitle, "UTF-8"))
#set ($fileEntry = $dlServiceFile.getFileEntry($gid, $fid, $fileTitle))
#set($fileDate = $fileEntry.getModifiedDate())
##************************************************************
#end
#end

Audio
##$dateTool.format("dd/MM/yyyy HH:mm",$dateTool.toDate("EEE, dd MMM yy hh:mm:ss Z",$fileDate), $locale)