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