S'ha produït un error mentre es processava la plantilla.
Unable to parse Velocity template
1#if (!$entries.isEmpty())
2 #foreach ($entry in $entries)
3 #set($renderer = $entry.getAssetRenderer())
4 #set($className = $renderer.getClassName())
5 #if( $className == "com.liferay.portlet.journal.model.JournalArticle")
6 #set($journalArticle = $renderer.getArticle())
7 #set($document = $saxReaderUtil.read($journalArticle.getContentByLocale($locale.toString())))
8 #set($rootElement = $document.getRootElement())
9
10 #set($xPathSelector = $saxReaderUtil.createXPath("dynamic-element[@name='Imagen']"))
11 #set($Imagen = $xPathSelector.selectSingleNode($rootElement).getStringValue())
12
13 #set($xPathSelector = $saxReaderUtil.createXPath("dynamic-element[@name='Resumen']"))
14 #set($Resumen = $xPathSelector.selectSingleNode($rootElement).getStringValue())
15
16 #set($xPathSelector = $saxReaderUtil.createXPath("dynamic-element[@name='Contenido']"))
17 #set($Contenido = $xPathSelector.selectSingleNode($rootElement).getStringValue())
18
19 #set($xPathSelector = $saxReaderUtil.createXPath("dynamic-element[@name='Documentos_adjuntos']"))
20 #set($documentos_adjuntos = $xPathSelector.selectNodes($rootElement))
21
22 <h2>$entry.getTitle($locale)</h2>
23 <p class="date-new">$dateUtil.getDate($journalArticle.displayDate, "d MMMM yyyy", $locale)</p>
24 <div class="cuerpo_noticia">
25 #if ($Imagen.trim() != "")
26 <center><img width="500px" alt="Imagen" src="$Imagen" /></center>
27 #end
28 <p>$Contenido</p>
29 #if (!$documentos_adjuntos.isEmpty())
30 #foreach ($adjunto in $documentos_adjuntos)
31 #if (()$adjunto.getStringValue().trim().length() > 0) and (!adjunto.getStringValue().equals("null")) )
32 #set($arrayURL = $adjunto.getStringValue().split("/"))
33 #set($documentName = $arrayURL.size() - 2)
34 <p><strong>Documento adjunto:</strong> <a href="$adjunto.getStringValue()"> $arrayURL.get($documentName)</a></p>
35 #end
36 #end
37 #end
38 </div>
39 #end
40 #end
41#end