Pular para o conteúdo
## ## This template can be used to modify the look of a specific ## application. ## ## Please use the left panel to quickly add commonly used variables. ## Autocomplete is also available and can be invoked by typing "$". ## #foreach ($entry in $entries) #set($renderer = $entry.getAssetRenderer() ) #set($className = $renderer.getClassName() ) #if( $className == "com.liferay.portlet.journal.model.JournalArticle" ) #set( $journalArticle = $renderer.getArticle() ) #set( $document = $saxReaderUtil.read($journalArticle.getContent()) ) #set( $rootElement = $document.getRootElement() ) #set( $xPathSelector = $saxReaderUtil.createXPath("dynamic-element[@name='url']") ) #set( $xPathSelector2 = $saxReaderUtil.createXPath("dynamic-element[@name='chamada']") ) #set( $url = $xPathSelector.selectSingleNode($rootElement).getStringValue() ) #set( $chamada = $xPathSelector2.selectSingleNode($rootElement).getStringValue() ) #set( $link = $renderer.getURLViewInContext($renderRequest, $renderResponse, '') ) #set( $xPathSelector = $saxReaderUtil.createXPath("dynamic-element[@name='file']") ) #set( $file = $xPathSelector.selectSingleNode($rootElement).getStringValue() ) #set($index = $url.indexOf('/') + 1) #set($url = $url.substring($index)) #set($index = $url.indexOf('/') + 1) #set($url = $url.substring($index)) #set($index = $url.indexOf('/') + 1) #set($url = $url.substring($index)) #set($date = $dateTool.format("dd 'de' MMMM 'de' yyyy 'às' HH:mm",$entry.getCreateDate())) #end #break #end
$date
$entry.getTitle($locale) #if ($file) #if($file.trim() != "")
#end #end
Recentes
#set($count = 0) #if (!$entries.isEmpty()) #foreach ($entry in $entries) #set($renderer = $entry.getAssetRenderer() ) #set($className = $renderer.getClassName() ) #if( $className == "com.liferay.portlet.journal.model.JournalArticle" ) #set( $journalArticle = $renderer.getArticle() ) #set( $document = $saxReaderUtil.read($journalArticle.getContent()) ) #set( $rootElement = $document.getRootElement() ) #set( $xPathSelector = $saxReaderUtil.createXPath("dynamic-element[@name='url']") ) #set( $xPathSelector2 = $saxReaderUtil.createXPath("dynamic-element[@name='chamada']") ) #set( $url = $xPathSelector.selectSingleNode($rootElement).getStringValue() ) #set( $chamada = $xPathSelector2.selectSingleNode($rootElement).getStringValue() ) #set( $link = $renderer.getURLViewInContext($renderRequest, $renderResponse, '') ) #set( $xPathSelector = $saxReaderUtil.createXPath("dynamic-element[@name='file']") ) #set( $file = $xPathSelector.selectSingleNode($rootElement).getStringValue() ) #if($count == 0)
#end #set($index = $url.indexOf('/') + 1) #set($url = $url.substring($index)) #set($index = $url.indexOf('/') + 1) #set($url = $url.substring($index)) #set($index = $url.indexOf('/') + 1) #set($url = $url.substring($index)) #set($date = $dateTool.format("dd 'de' MMMM 'de' yyyy 'às' HH:mm",$entry.getCreateDate()))
$dateTool.format("dd 'de' MMMM 'de' yyyy 'às' HH:mm",$entry.getCreateDate())
#set($count = $count+1) #if($count == 3)
#set($count = 0) #end #end #end #if($count != 0)
#end #end