Saltar al contenido


SERVICIOS


ACTUALIDAD
Se ha producido un error al procesar la plantilla.
Expression entry.getContent is undefined on line 21, column 28 in 20155#20195#71929.
1<div class="kr-sky" data-carousel="my_carousel"> 
2	<#assign liferay_ui= taglibLiferayHash["/WEB-INF/tld/liferay-ui.tld"] /> 
3	<#list entries as entry> 
4		<#assign entry = entry /> 
5 
6		<#assign assetRenderer = entry.getAssetRenderer() /> 
7 
8		<#assign entryTitle = htmlUtil.escape(assetRenderer.getTitle(locale)) /> 
9 
10		<#assign viewURL = assetPublisherHelper.getAssetViewURL(renderRequest, renderResponse, entry) /> 
11 
12		<#if assetLinkBehavior != "showFullContent"> 
13			<#assign viewURL = assetRenderer.getURLViewInContext(renderRequest, renderResponse, viewURL) /> 
14		</#if> 
15		<#assign docXml = saxReaderUtil.read(entry.getAssetRenderer().getArticle().getContent()) /> 
16		<#assign fieldVal_Enlace = docXml.valueOf("//dynamic-element[@name='Enlace_Interno']/dynamic-content/text()") /> 
17 
18	 <#assign summary = entry.getDescription() /> 
19 
20    <#if validator.isNull(summary)> 
21        <#assign summary = entry.getContent() /> 
22    </#if> 
23		 
24		<div class="kr-cloud kr-carousel" style="top:0!important;min-height: 240px;"> 
25			    <#if fieldVal_Enlace != ""> 
26			        <a href=" ${fieldVal_Enlace}" target="_BLANK"  
27onclick='window.open(this.href);return false;'> 
28        				<span class="tam_titlAl"> 
29        					${entryTitle} 
30        				</span>  
31        			</a> 
32        		<#else> 
33        		    <span class="tam_titlAl"> 
34        					${entryTitle} 
35        			</span> 
36        		</#if> 
37        		 
38			    <div> 
39                 <a href=" ${viewURL}"  target="_BLANK"  
40onclick='window.open(this.href);return false;'> 
41    			    <img src="${assetRenderer.getURLImagePreview(renderRequest)}" style="max-height:140px !important; width:292px !important;max-width:292px !important;"> 
42    			 </a> 
43     			</div> 
44     			<div style="margin-top: 10px !important;"> 
45${stringUtil.shorten(htmlUtil.stripHtml(summary), 110)} 
46			    </div> 
47			    
48		</div> 
49	</#list> 
50	</div> 
51 
52 
53<#macro getDiscussion> 
54	<#if validator.isNotNull(assetRenderer.getDiscussionPath()) && (enableComments == "true")> 
55		<br /> 
56 
57		<#assign discussionURL = renderResponse.createActionURL() /> 
58 
59		${discussionURL.setParameter("struts_action", "/asset_publisher/" + assetRenderer.getDiscussionPath())} 
60 
61		<@liferay_ui["discussion"] 
62			className=entry.getClassName() 
63			classPK=entry.getClassPK() 
64			formAction=discussionURL?string 
65			formName="fm" + entry.getClassPK() 
66			ratingsEnabled=enableCommentRatings == "true" 
67			redirect=portalUtil.getCurrentURL(request) 
68			userId=assetRenderer.getUserId() 
69		/> 
70	</#if> 
71</#macro> 
72 
73<#macro getEditIcon> 
74	<#if assetRenderer.hasEditPermission(themeDisplay.getPermissionChecker())> 
75		<#assign redirectURL = renderResponse.createRenderURL() /> 
76 
77		${redirectURL.setParameter("struts_action", "/asset_publisher/add_asset_redirect")} 
78		${redirectURL.setWindowState("pop_up")} 
79 
80		<#assign editPortletURL = assetRenderer.getURLEdit(renderRequest, renderResponse, windowStateFactory.getWindowState("pop_up"), redirectURL)!"" /> 
81 
82		<#if validator.isNotNull(editPortletURL)> 
83			<#assign title = languageUtil.format(locale, "edit-x", entryTitle) /> 
84 
85			<@liferay_ui["icon"] 
86				image="edit" 
87				message=title 
88				url="javascript:Liferay.Util.openWindow({dialog: {width: 960}, id:'" + renderResponse.getNamespace() + "editAsset', title: '" + title + "', uri:'" + htmlUtil.escapeURL(editPortletURL.toString()) + "'});" 
89			/> 
90		</#if> 
91	</#if> 
92</#macro> 
93 
94<#macro getFlagsIcon> 
95	<#if enableFlags == "true"> 
96		<@liferay_ui["flags"] 
97			className=entry.getClassName() 
98			classPK=entry.getClassPK() 
99			contentTitle=entry.getTitle(locale) 
100			label=false 
101			reportedUserId=entry.getUserId() 
102		/> 
103	</#if> 
104</#macro> 
105 
106<#macro getMetadataField 
107	fieldName 
108
109	<#if stringUtil.split(metadataFields)?seq_contains(fieldName)> 
110		<span class="metadata-entry metadata-"${fieldName}"> 
111			<#assign dateFormat = "dd MMM yyyy - HH:mm:ss" /> 
112 
113			<#if fieldName == "author"> 
114				<@liferay.language key="by" /> ${portalUtil.getUserName(assetRenderer.getUserId(), assetRenderer.getUserName())} 
115			<#elseif fieldName == "categories"> 
116				<@liferay_ui["asset-categories-summary"] 
117					className=entry.getClassName() 
118					classPK=entry.getClassPK() 
119					portletURL=renderResponse.createRenderURL() 
120				/> 
121			<#elseif fieldName == "create-date"> 
122				${dateUtil.getDate(entry.getCreateDate(), dateFormat, locale)} 
123			<#elseif fieldName == "expiration-date"> 
124				${dateUtil.getDate(entry.getExpirationDate(), dateFormat, locale)} 
125			<#elseif fieldName == "modified-date"> 
126				${dateUtil.getDate(entry.getModifiedDate(), dateFormat, locale)} 
127			<#elseif fieldName == "priority"> 
128				${entry.getPriority()} 
129			<#elseif fieldName == "publish-date"> 
130				${dateUtil.getDate(entry.getPublishDate(), dateFormat, locale)} 
131			<#elseif fieldName == "tags"> 
132				<@liferay_ui["asset-tags-summary"] 
133					className=entry.getClassName() 
134					classPK=entry.getClassPK() 
135					portletURL=renderResponse.createRenderURL() 
136				/> 
137			<#elseif fieldName == "view-count"> 
138				<@liferay_ui["icon"] 
139					image="history" 
140				/> 
141 
142				${entry.getViewCount()} <@liferay.language key="views" /> 
143			</#if> 
144		</span> 
145	</#if> 
146</#macro> 
147 
148<#macro getPrintIcon> 
149	<#if enablePrint == "true" > 
150		<#assign printURL = renderResponse.createRenderURL() /> 
151 
152		${printURL.setParameter("struts_action", "/asset_publisher/view_content")} 
153		${printURL.setParameter("assetEntryId", entry.getEntryId()?string)} 
154		${printURL.setParameter("viewMode", "print")} 
155		${printURL.setParameter("type", entry.getAssetRendererFactory().getType())} 
156 
157		<#if (validator.isNotNull(assetRenderer.getUrlTitle()))> 
158			<#if (assetRenderer.getGroupId() != themeDisplay.getScopeGroupId())> 
159				${printURL.setParameter("groupId", assetRenderer.getGroupId()?string)} 
160			</#if> 
161 
162			${printURL.setParameter("urlTitle", assetRenderer.getUrlTitle())} 
163		</#if> 
164 
165		${printURL.setWindowState("pop_up")} 
166 
167		<@liferay_ui["icon"] 
168			image="print" 
169			message="print" 
170			url="javascript:Liferay.Util.openWindow({id:'" + renderResponse.getNamespace() + "printAsset', title: '" + languageUtil.format(locale, "print-x-x", ["hide-accessible", entryTitle]) + "', uri: '" + htmlUtil.escapeURL(printURL.toString()) + "'});" 
171		/> 
172	</#if> 
173</#macro> 
174 
175<#macro getRatings> 
176	<#if (enableRatings == "true")> 
177		<div class="asset-ratings"> 
178			<@liferay_ui["ratings"] 
179				className=entry.getClassName() 
180				classPK=entry.getClassPK() 
181			/> 
182		</div> 
183	</#if> 
184</#macro> 
185 
186<#macro getRelatedAssets> 
187	<#if enableRelatedAssets == "true"> 
188		<@liferay_ui["asset-links"] 
189			assetEntryId=entry.getEntryId() 
190		/> 
191	</#if> 
192</#macro> 
193 
194<#macro getSocialBookmarks> 
195	<#if enableSocialBookmarks == "true"> 
196		<@liferay_ui["social-bookmarks"] 
197			displayStyle="${socialBookmarksDisplayStyle}" 
198			target="_blank" 
199			title=entry.getTitle(locale) 
200			url=viewURL 
201		/> 
202	</#if> 
203</#macro>