Saltar al contenido

Camino de migas Camino de migas

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