Noticias

Se ha producido un error al procesar la plantilla.
The following has evaluated to null or missing:
==> dmImage.getValue().getString(locale)  [in template "20116#20152#32594" at line 89, column 28]

----
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 value = dmImage.getValue().ge...  [in template "20116#20152#32594" at line 89, column 11]
----
1<style> 
2 
3@include sm() { 
4	.list-item-news > article > a > img { 
5	    width: 100% !important; 
6		height: 250px !important; 
7		height: calc(100vw / 2 / 1.7777) !important; 
8
9
10@include md() { 
11    .list-item-news > article > a > img { 
12	    width: 100% !important;  
13		height: calc(970px / 3 / 1.7777) !important; 
14
15
16@include lg() { 
17    .list-item-news > article > a > img { 
18	    width: 100% !important; 
19		height: 260px !important; 
20
21
22 
23@media (min-width: 992px) { 
24    .list-item-news > article > a > img { 
25	    width: 100% !important; 
26		height: 260px !important; 
27
28
29 
30@media (min-width: 767px) and (max-width: 992px) { 
31    .list-item-news > article > a > img { 
32	    width: 100% !important; 
33		height: 250px !important; 
34		height: calc(100vw / 2 / 1.7777) !important; 
35
36
37 
38 
39</style> 
40 
41<#assign htmlUtil = staticUtil["com.liferay.portal.kernel.util.HtmlUtil"] /> 
42 
43<#function printImage image alt> 
44    <#if image?? && image != ""> 
45        <#if alt?? && alt != ""> 
46            <#return '<img src="${htmlUtil.escape(image)}" alt="${alt}" />'/> 
47        <#else> 
48            <#return '<img src="${htmlUtil.escape(image)}" alt=""/>'/> 
49        </#if> 
50    </#if> 
51    <#return ""> 
52</#function> 
53<#if entries?has_content> 
54<div class="generic-content"> 
55    <div class="agbar-list list-news"> 
56      <div class="container"> 
57        <div class="row"> 
58    	<#list entries as curEntry> 
59        <#assign image = ""> 
60        <#assign imageAlt = ""> 
61        <#assign listImage = ""> 
62        <#assign listImageAlt = ""> 
63        <#assign detailImage = ""> 
64        <#assign detailImageAlt = ""> 
65        <#assign cssClass = (curEntry?index == 0)?then('h2','h4') /> 
66        <#assign 
67          assetRenderer = curEntry.getAssetRenderer() 
68          ddmFormValuesReader = assetRenderer.getDDMFormValuesReader() 
69          textFields = ddmFormValuesReader.getDDMFormFieldValues('text') 
70          dmImages = ddmFormValuesReader.getDDMFormFieldValues('image') 
71          dateFields = ddmFormValuesReader.getDDMFormFieldValues('date') 
72        /> 
73        <#assign titulo = assetRenderer.getTitle(locale) 
74				listImage="" 
75				listImageAlt="" 
76				detailImage="" 
77				detailImageAlt=""/> 
78        <#list textFields as textField> 
79          <#if textField.name == 'DescripcionListado'> 
80            <#assign descripcion = textField.getValue().getString(locale) /> 
81          </#if> 
82        </#list> 
83		<#list dateFields as dateField> 
84            <#if dateField.name == 'Fecha'> 
85                <#assign fecha = dateField.getValue().getString(locale) /> 
86            </#if>    		 
87		</#list>    
88  	    <#list dmImages as dmImage> 
89          <#assign value = dmImage.getValue().getString(locale)/> 
90		  <#assign icono_map = jsonFactoryUtil.createJSONObject(value) /> 
91          <#attempt> 
92            <#if dmImage.name == 'ImagenListado'> 
93			  <#if (icono_map.groupId)?? && (icono_map.uuid)?? > 
94				<#assign listImage = "/documents/" + icono_map.groupId + "/" + icono_map.uuid /> 
95			  </#if> 
96			  <#if (icono_map.alt)??> 
97				<#assign listImageAlt = icono_map.alt/> 
98			  </#if> 
99            <#elseif dmImage.name == 'ImagenDetalle' && dmImage??> 
100			  <#if (icono_map.groupId)?? && (icono_map.uuid)?? > 
101				<#assign detailImage = "/documents/" + icono_map.groupId + "/" + icono_map.uuid /> 
102			  </#if> 
103			  <#if (icono_map.alt)??> 
104				<#assign detailImageAlt = icono_map.alt/> 
105			  </#if> 
106            </#if> 
107            <#recover> 
108          </#attempt> 
109        </#list> 
110    		<#if listImage?? && listImage != ""> 
111          <#assign image = listImage> 
112          <#if listImageAlt?? && listImageAlt != ""> 
113            <#assign imageAlt = listImageAlt> 
114          </#if> 
115    		<#elseif detailImage?? && detailImage != ""> 
116          <#assign image = detailImage> 
117          <#if detailImageAlt?? && detailImageAlt != ""> 
118            <#assign imageAlt = detailImageAlt> 
119          </#if> 
120        </#if> 
121		<#assign viewURL1 = assetPublisherHelper.getAssetViewURL(renderRequest, renderResponse, curEntry) />  
122		<#assign viewURL2 = assetRenderer.getURLViewInContext(renderRequest, renderResponse, viewURL1) /> 
123            <div class="list-item-news col-md-4 col-sm-6 col-xs-12"> 
124              <article> 
125                <a href="${viewURL2}" data-senna-off="true"> 
126                    ${printImage(image, imageAlt)} 
127                </a> 
128							<#assign displayDate = curEntry.getCreateDate()?date> 
129				        <#if fecha?? && fecha != ''> 
130                 
131                    <#assign structureDate = fecha> 
132                    <#assign displayDate = dateUtil.parseDate("yyyy-MM-dd", structureDate, locale)> 
133                 </#if> 
134                  <time datetime="${dateUtil.getDate(displayDate, "dd/MM/yyyy", locale)}"><span>${dateUtil.getDate(displayDate, "dd MMM yyyy", locale)}</span></time> 
135                  <h2><a href="${viewURL2}" data-senna-off="true">${titulo}</a></h2> 
136              </article> 
137          </div> 
138 
139      </#list> 
140        </div> 
141      </div> 
142    </div> 
143  </div> 
144</#if> 
Mostrando el intervalo 1 - 3 de 29 resultados.