Publicador de contenidos

Propiedades en Venta JUNTA UCR

Publicador de contenidos

Se ha producido un error al procesar la plantilla.
The following has evaluated to null or missing:
==> renderer.getArticle  [in template "35243#35273#360661" at line 13, column 35]

----
Tip: It's the step after the last dot that caused this error, not those before it.
----
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 journalArticle = renderer.get...  [in template "35243#35273#360661" at line 13, column 9]
----
1<div class="row background-lightgray py-5"> 
2    <div class="col-12 d-flex justify-content-center pt-5 my-4"> 
3        <div class="col-8 text-center "> 
4            <h2 class="titulo-1 blue-ucr">Propiedades en Venta JUNTA UCR</h2> 
5        </div> 
6    </div> 
7    <div class="col-12 px-5"> 
8        <div class="card-deck mb-5 pb-5"> 
9<#if entries?has_content> 
10    <#list entries as curEntry> 
11        <#assign renderer = curEntry.getAssetRenderer() /> 
12        <#assign className = renderer.getClassName() /> 
13        <#assign journalArticle = renderer.getArticle() /> 
14        <#assign document = saxReaderUtil.read(journalArticle.getContent()) /> 
15        <#assign rootElement = document.getRootElement() /> 
16        <#assign imagenPrincipal = "" /> 
17        <#assign imagenPrincipalAlt = "" /> 
18        <#assign tituloNoticia = "" /> 
19        <#assign fecha_noticia = "" /> 
20        <#assign descripcion_noticia = "" /> 
21         
22        <#list rootElement.elements() as dynamicElement > 
23            <#if "Imagenwcit" == dynamicElement.attributeValue("name") > 
24                <#assign imagenPrincipal = dynamicElement.element("dynamic-content").getText() /> 
25            </#if> 
26            <#list dynamicElement.elements() as imagenElement > 
27                <#if (imagenElement.attributeValue("name"))?? > 
28                    <#if "Imagenwcit" == imagenElement.attributeValue("name") > 
29                        <#assign imagenPrincipalAlt = imagenElement.element("dynamic-content").getText() /> 
30                    </#if>  
31                </#if>  
32            </#list> 
33            <#if "Titulo" == dynamicElement.attributeValue("name") > 
34                <#assign tituloNoticia = dynamicElement.element("dynamic-content").getText() /> 
35            </#if> 
36            <#if "Fecha8ed6" == dynamicElement.attributeValue("name") > 
37                <#assign Fecha8ed6_Data = getterUtil.getString(dynamicElement.element("dynamic-content").getText())> 
38                <#if validator.isNotNull(Fecha8ed6_Data)> 
39                	<#assign Fecha8ed6_DateObj = dateUtil.parseDate("yyyy-MM-dd", Fecha8ed6_Data, locale)> 
40                    <#assign fecha_noticia = dateUtil.getDate(Fecha8ed6_DateObj, "dd MMMM yyyy", locale) /> 
41                </#if> 
42            </#if>  
43            <#if "Contenido" == dynamicElement.attributeValue("name") > 
44                <#assign descripcion_noticia = dynamicElement.element("dynamic-content").getText() /> 
45            </#if>  
46            <#if curEntry?? > 
47                <#assign link = assetPublisherHelper.getAssetViewURL(renderRequest, renderResponse, renderer, curEntry, true) > 
48            <#else> 
49                <#assign link = ""> 
50            </#if> 
51        </#list> 
52        <div class="card border-0 shadow-lg rounded-lg"> 
53            <!-- ${tituloNoticia}--> 
54            <#if (imagenPrincipal)?? > 
55                <#if (imagenPrincipalAlt)?? > 
56            <img alt="${imagenPrincipalAlt}" class="card-img-top" src="${imagenPrincipal}" /> 
57                <#else> 
58            <img alt="" class="card-img-top" src="${imagenPrincipal}" /> 
59                </#if> 
60            </#if> 
61            <div class="card-body text-left px-5"> 
62                <h5 class="card-title titulo-2 blue-ucr mb-4">${tituloNoticia}</h5> 
63                 
64                <p class="card-text gray-ucr parrafo">${stringUtil.shorten(htmlUtil.extractText(descripcion_noticia), 150)}</p> 
65                <a href="${link}" class="card-link titulo-3 blue-ucr"> 
66                    Ver más <i class="icon icon-long-arrow-right yellow-ucr ml-4" aria-hidden="true"></i> 
67                </a> 
68            </div> 
69        </div> 
70	</#list> 
71</#if> 
72        </div> 
73    </div> 
74</div>