Cabecera Oposiciones

Banners colores profesorado

Publicador de contenidos

Se ha producido un error al procesar la plantilla.
The following has evaluated to null or missing:
==> saxReaderUtil.createXPath("dynamic-element[@name='Fecha']").selectSingleNode(rootElement)  [in template "20100#20137#60329" at line 23, column 34]

----
Tip: If the failing expression is known to legally refer to something that's sometimes null or missing, either specify a default value like myOptionalVar!myDefault, or use <#if myOptionalVar??>when-present<#else>when-missing</#if>. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)??
----

----
FTL stack trace ("~" means nesting-related):
	- Failed at: #assign fecha = saxReaderUtil.createX...  [in template "20100#20137#60329" at line 23, column 17]
----
1<#assign assetCategoryLocalServiceUtil = staticUtil["com.liferay.asset.kernel.service.AssetCategoryLocalServiceUtil"]> 
2<div class="home-news"> 
3    <div class="row-fluid"> 
4        <div class="sec-title"> 
5            <h3 class="sub-title">LO MÁS RECIENTE</h3> 
6            <h2 class="title">Anuncios y Convocatorias</h2> 
7        </div> 
8    </div> 
9    <#if entries?has_content> 
10        <div class="row-fluid"> 
11            <#list entries as entry>             
12                <#assign assetRenderer = entry.getAssetRenderer() /> 
13                <#assign journalArticle = assetRenderer.getArticle() /> 
14                <#assign articleResourcePK = journalArticle.getResourcePrimKey()/> 
15                 
16                <#assign document = saxReaderUtil.read(journalArticle.getContentByLocale(locale)) /> 
17                <#assign rootElement = document.getRootElement() /> 
18     
19                <#assign viewURL = assetPublisherHelper.getAssetViewURL(renderRequest, renderResponse, entry) /> 
20                 
21                 
22                 
23                <#assign fecha = saxReaderUtil.createXPath("dynamic-element[@name='Fecha']").selectSingleNode(rootElement).getStringValue() /> 
24                <#assign contenido = saxReaderUtil.createXPath("dynamic-element[@name='Contenido']").selectSingleNode(rootElement).getStringValue() /> 
25                <#assign titulo = journalArticle.getTitle("ES")/> 
26                <#assign categoryList=assetCategoryLocalServiceUtil.getCategories("com.liferay.journal.model.JournalArticle",articleResourcePK)> 
27                                   
28                           
29                <#assign structureName = journalArticle.getDDMStructure().getNameCurrentValue() /> 
30                                                      
31 
32			<div class="events-column mb-20"> 
33 
34                <div class="date-part" > 
35                    <span class="month">${fecha?trim?date["yyyy-MM-dd"]?string["MMM yy"]}</span> 
36                    <div class="date">${fecha?trim?date["yyyy-MM-dd"]?string["dd"]}</div> 
37                </div> 
38			 
39			 
40			<div class="content-part"> 
41				    <div class="blog-meta"> 
42        				<ul> 
43                              <li class="blog-category"><i class="fa fa-tag"></i> 
44                                <#if categoryList?has_content> 
45                                    ${categoryList[0].getName()} 
46                                </#if> 
47                              </li> 
48                          </ul> 
49 
50				         
51				    </div> 
52                        <h4 class="title mb-0"> 
53                        <#if titulo?length &lt; 115> 
54                            <a href="${viewURL}">${titulo}</a>    
55                           <#else> 
56                            <a href="${viewURL}">${titulo?substring(0,114)} ...</a> 
57                        </#if> 
58                        </h4> 
59                    </div> 
60                </div> 
61    				 
62            </#list> 
63        </div><!-- End row fluid--> 
64    </#if> 
65</div><!-- End home news-->