Se ha producido un error al procesar la plantilla.
Expression entry.publishDate is undefined on line 82, column 43 in 20155#20195#20570.
1<#assign liferay_ui = taglibLiferayHash["/WEB-INF/tld/liferay-ui.tld"] /> 
2 
3<section class="ctx" role="region"> 
4	<div class="content-title-listado"> 
5        <#if locale == 'es_ES'> 
6            <h1 class="sectionTitle">Novedades</h1> 
7        <#elseif locale == 'en_US'> 
8            <h1 class="sectionTitle">Novedades</h1> 
9        </#if> 
10	</div> 
11 
12<#list entries as entry> 
13	<#assign entry = entry /> 
14 
15	<#assign assetRenderer = entry.getAssetRenderer() /> 
16 
17	<#assign entryTitle = htmlUtil.escape(assetRenderer.getTitle(locale)) /> 
18 
19	<#assign viewURL = assetPublisherHelper.getAssetViewURL(renderRequest, renderResponse, entry) /> 
20 
21	<#if assetLinkBehavior != "showFullContent"> 
22		<#assign viewURL = assetPublisherHelper.getAssetViewURL(renderRequest, renderResponse, entry, true) /> 
23	</#if> 
24 
25	<#assign viewURLSinParametros = viewURL?substring(0,viewURL?index_of("?")) /> 
26 
27	<div class="asset-abstract"> 
28		<div class="lfr-meta-actions asset-actions"> 
29			<@getPrintIcon /> 
30 
31			<@getFlagsIcon /> 
32 
33			<@getEditIcon /> 
34		</div> 
35 
36		<@getMetadataField fieldName="tags" /> 
37 
38		<@getMetadataField fieldName="create-date" /> 
39 
40 
41 
42		<@getMetadataField fieldName="view-count" /> 
43 
44		<div class="asset-content"> 
45			<@getSocialBookmarks /> 
46 
47			<div class="asset-summary"> 
48 
49 
50 
51		<#assign docXml = saxReaderUtil.read(entry.getAssetRenderer().getArticle().getContent()) /> 
52		<#assign fieldImagen = docXml.valueOf("//dynamic-element[@name='Imagen']/dynamic-content/text()") /> 
53		<#assign fieldTextoAlternativoImagen = docXml.valueOf("//dynamic-element[@name='Imagen']/dynamic-element[@name='TextoAlternativoImagen']/dynamic-content/text()") /> 
54        <#assign fieldResumen = docXml.valueOf("//dynamic-element[@name='Resumen']/dynamic-content/text()") /> 
55 
56 
57 
58 
59 
60<#if fieldImagen?has_content> 
61<div class="listado-contenedor-item-con-imagen"> 
62 
63	<div class="listado-imagen"> 
64		<a href="${viewURLSinParametros}"> 
65	<img alt="${fieldTextoAlternativoImagen}" src="${fieldImagen}" style="width:250px !important; height:200px !important;"/> 
66		</a> 
67	</div> 
68 
69	<div class="listado-area-contenido"> 
70 
71		<div class="listado-leer-enlace"> 
72		  <a class="listado-arrow-leer-enlace" href="${viewURLSinParametros}"> 
73		      <i class="fa fa-arrow-right-listado"></i> 
74		  </a> 
75		  <a class="listado-texto-leer-enlace" href="${viewURLSinParametros}"> 
76		      <span class="listado-texto-leer">Leer</> 
77		  </a> 
78		</div> 
79 
80    	<div class="listado-categoria-fecha"> 
81    	    <span class="categoria-pagina"></span> 
82    	    <span class="listado-fecha">${entry.publishDate?string["dd.MM.yyyy"]}</span> 
83        </div> 
84 
85    	<div class="listado-texto"> 
86    		<h3 class="listado-item-title"> 
87    		<a href="${viewURLSinParametros}">${entryTitle}</a> 
88    		</h3> 
89    		<p>${fieldResumen}</p> 
90    	</div> 
91	</div> 
92 
93</div> 
94 
95<#else> 
96 
97<div class="listado-contenedor-item-solo-texto"> 
98 
99	<div class="listado-leer-enlace"> 
100	  <a class="listado-arrow-leer-enlace" href="${viewURLSinParametros}"> 
101	      <i class="fa fa-arrow-right-listado"></i> 
102	  </a> 
103	  <a class="listado-texto-leer-enlace" href="${viewURLSinParametros}"> 
104	      <span class="listado-texto-leer">Leer</> 
105	  </a> 
106	</div> 
107 
108	<div class="listado-categoria-fecha"> 
109	    <span class="categoria-pagina"></span> 
110	    <span class="listado-fecha">${entry.publishDate?string["dd.MM.yyyy"]}</span> 
111    </div> 
112 
113    <div class="listado-texto"> 
114        <h3 class="listado-item-title"> 
115            <a href="${viewURLSinParametros}">${entryTitle}</a> 
116        </h3> 
117 
118    	<p>${fieldResumen}</p> 
119    </div> 
120 
121</div> 
122</#if> 
123 
124 
125 
126			</div> 
127 
128			<@getRatings /> 
129 
130			<@getRelatedAssets /> 
131 
132			<@getDiscussion /> 
133		</div> 
134	</div> 
135 
136</#list> 
137 
138</section> 
139 
140<#macro getDiscussion> 
141	<#if validator.isNotNull(assetRenderer.getDiscussionPath()) && (enableComments == "true")> 
142		<br /> 
143 
144		<#assign discussionURL = renderResponse.createActionURL() /> 
145 
146		${discussionURL.setParameter("struts_action", "/asset_publisher/" + assetRenderer.getDiscussionPath())} 
147 
148		<@liferay_ui["discussion"] 
149			className=entry.getClassName() 
150			classPK=entry.getClassPK() 
151			formAction=discussionURL?string 
152			formName="fm" + entry.getClassPK() 
153			ratingsEnabled=enableCommentRatings == "true" 
154			redirect=portalUtil.getCurrentURL(request) 
155			userId=assetRenderer.getUserId() 
156		/> 
157	</#if> 
158</#macro> 
159 
160<#macro getEditIcon> 
161	<#if assetRenderer.hasEditPermission(themeDisplay.getPermissionChecker())> 
162		<#assign redirectURL = renderResponse.createRenderURL() /> 
163 
164		${redirectURL.setParameter("struts_action", "/asset_publisher/add_asset_redirect")} 
165		${redirectURL.setWindowState("pop_up")} 
166 
167		<#assign editPortletURL = assetRenderer.getURLEdit(renderRequest, renderResponse, windowStateFactory.getWindowState("pop_up"), redirectURL)!"" /> 
168 
169		<#if validator.isNotNull(editPortletURL)> 
170			<#assign title = languageUtil.format(locale, "edit-x", entryTitle) /> 
171 
172			<@liferay_ui["icon"] 
173				image="edit" 
174				message=title 
175				url="javascript:Liferay.Util.openWindow({dialog: {width: 960}, id:'" + renderResponse.getNamespace() + "editAsset', title: '" + title + "', uri:'" + htmlUtil.escapeURL(editPortletURL.toString()) + "'});" 
176			/> 
177		</#if> 
178	</#if> 
179</#macro> 
180 
181<#macro getFlagsIcon> 
182	<#if enableFlags == "true"> 
183		<@liferay_ui["flags"] 
184			className=entry.getClassName() 
185			classPK=entry.getClassPK() 
186			contentTitle=entry.getTitle(locale) 
187			label=false 
188			reportedUserId=entry.getUserId() 
189		/> 
190	</#if> 
191</#macro> 
192 
193<#macro getMetadataField fieldName> 
194	<#if stringUtil.split(metadataFields)?seq_contains(fieldName)> 
195		<span class="metadata-entry metadata-"${fieldName}"> 
196			<#assign dateFormat = "dd MMM yyyy - HH:mm:ss" /> 
197 
198			<#if fieldName == "author"> 
199				<@liferay.language key="by" /> ${portalUtil.getUserName(assetRenderer.getUserId(), assetRenderer.getUserName())} 
200			<#elseif fieldName == "categories"> 
201				<@liferay_ui["asset-categories-summary"] 
202					className=entry.getClassName() 
203					classPK=entry.getClassPK() 
204					portletURL=renderResponse.createRenderURL() 
205				/> 
206			<#elseif fieldName == "create-date"> 
207				${dateUtil.getDate(entry.getCreateDate(), dateFormat, locale)} 
208			<#elseif fieldName == "expiration-date"> 
209				${dateUtil.getDate(entry.getExpirationDate(), dateFormat, locale)} 
210			<#elseif fieldName == "modified-date"> 
211				${dateUtil.getDate(entry.getModifiedDate(), dateFormat, locale)} 
212			<#elseif fieldName == "priority"> 
213				${entry.getPriority()} 
214			<#elseif fieldName == "publish-date"> 
215				${dateUtil.getDate(entry.getPublishDate(), dateFormat, locale)} 
216			<#elseif fieldName == "tags"> 
217				<@liferay_ui["asset-tags-summary"] 
218					className=entry.getClassName() 
219					classPK=entry.getClassPK() 
220					portletURL=renderResponse.createRenderURL() 
221				/> 
222			<#elseif fieldName == "view-count"> 
223				<@liferay_ui["icon"] 
224					image="history" 
225				/> 
226 
227				${entry.getViewCount()} <@liferay.language key="views" /> 
228			</#if> 
229		</span> 
230	</#if> 
231</#macro> 
232 
233<#macro getPrintIcon> 
234	<#if enablePrint == "true" > 
235		<#assign printURL = renderResponse.createRenderURL() /> 
236 
237		${printURL.setParameter("struts_action", "/asset_publisher/view_content")} 
238		${printURL.setParameter("assetEntryId", entry.getEntryId()?string)} 
239		${printURL.setParameter("viewMode", "print")} 
240		${printURL.setParameter("type", entry.getAssetRendererFactory().getType())} 
241 
242		<#if (validator.isNotNull(assetRenderer.getUrlTitle()))> 
243			<#if (assetRenderer.getGroupId() != themeDisplay.getScopeGroupId())> 
244				${printURL.setParameter("groupId", assetRenderer.getGroupId()?string)} 
245			</#if> 
246 
247			${printURL.setParameter("urlTitle", assetRenderer.getUrlTitle())} 
248		</#if> 
249 
250		${printURL.setWindowState("pop_up")} 
251 
252		<@liferay_ui["icon"] 
253			image="print" 
254			message="print" 
255			url="javascript:Liferay.Util.openWindow({id:'" + renderResponse.getNamespace() + "printAsset', title: '" + languageUtil.format(locale, "print-x-x", ["hide-accessible", entryTitle]) + "', uri: '" + htmlUtil.escapeURL(printURL.toString()) + "'});" 
256		/> 
257	</#if> 
258</#macro> 
259 
260<#macro getRatings> 
261	<#if (enableRatings == "true")> 
262		<div class="asset-ratings"> 
263			<@liferay_ui["ratings"] 
264				className=entry.getClassName() 
265				classPK=entry.getClassPK() 
266			/> 
267		</div> 
268	</#if> 
269</#macro> 
270 
271<#macro getRelatedAssets> 
272	<#if enableRelatedAssets == "true"> 
273		<@liferay_ui["asset-links"] 
274			assetEntryId=entry.getEntryId() 
275		/> 
276	</#if> 
277</#macro> 
278 
279<#macro getSocialBookmarks> 
280	<#if enableSocialBookmarks == "true"> 
281		<@liferay_ui["social-bookmarks"] 
282			displayStyle="${socialBookmarksDisplayStyle}" 
283			target="_blank" 
284			title=entry.getTitle(locale) 
285			url=viewURL 
286		/> 
287	</#if> 
288</#macro>