Internet explorer not supported - Please switch to Edge, Firefox, Chrome, Opera or other browser and improve the safety of your navigation

Menú de navegación

Notas de prensa - Messer Iberica de Gases S.A

NOTAS DE PRENSA

Publicador de contenidos

Contenidos con Notas de prensa 2020 .

Se ha producido un error al procesar la plantilla.
Java method "static com.liferay.document.library.kernel.service.DLAppLocalServiceUtil.getFileEntryByUuidAndGroupId(String, long)" threw an exception; see cause exception in the Java stack trace.

----
FTL stack trace ("~" means nesting-related):
	- Failed at: dlFile = dlAppLocalServiceUtil.getFil...  [in template "20099#20136#97965" in function "getDocumentURL" at line 114, column 9]
	- Reached through: #assign-container  [in template "20099#20136#97965" in function "getDocumentURL" at line 111, column 9]
	- Reached through: #assign image = getDocumentURL(field)  [in template "20099#20136#97965" at line 36, column 25]
----
1<#assign dlAppLocalServiceUtil = staticUtil["com.liferay.document.library.kernel.service.DLAppLocalServiceUtil"] > 
2<#assign dlUtil = staticUtil["com.liferay.document.library.kernel.util.DLUtil"] > 
3 
4<#if !entries?has_content> 
5    <#if !themeDisplay.isSignedIn()> 
6        ${renderRequest.setAttribute("PORTLET_CONFIGURATOR_VISIBILITY", true)} 
7    </#if> 
8 
9    <div class="alert alert-info"> 
10        <@liferay_ui["message"] key="there-are-no-results" /> 
11    </div> 
12</#if> 
13 
14<div class="row news-list"> 
15 
16    <#list entries as entry> 
17        <#assign 
18        entry = entry 
19 
20        assetRenderer = entry.getAssetRenderer() 
21 
22        viewURL = assetPublisherHelper.getAssetViewURL(renderRequest, renderResponse, assetRenderer, entry, !stringUtil.equals(assetLinkBehavior, "showFullContent")) 
23        /> 
24 
25        <div class="col-lg-4 col-sm-6 col-12"> 
26            <div class="news-entry"> 
27                <#assign fields =  assetRenderer.getDDMFormValuesReader().getDDMFormValues().getDDMFormFieldValues() /> 
28                <#list fields as field> 
29                    <#if field.getName() == "Title"> 
30                        <#assign title = field.getValue().getString(locale)> 
31                    </#if> 
32                    <#if field.getName() == "Summary"> 
33                        <#assign summary = field.getValue().getString(locale)> 
34                    </#if> 
35                    <#if field.getName() == "Image"> 
36                        <#assign image = getDocumentURL(field)> 
37                    </#if> 
38                </#list> 
39                <div class="image aspect-ratio aspect-ratio-3-to-2" style="background-image:url(${image})"> </div> 
40                <h3 class="title"> 
41                    <a class="title-link" href="${viewURL}"> 
42                        ${title} 
43                    </a> 
44                </h3> 
45                <div class="entry-data"> 
46                    <span class="date"> 
47                        ${dateUtil.getDate(assetRenderer.displayDate, "MMM dd, yyyy",themeDisplay.getLocale())} 
48                    </span> 
49                    <#-- 
50                    <span>///</span> 
51                    <a class="comments" href=""> 
52                        ${languageUtil.get(locale, "none")} 
53                        ${languageUtil.get(locale, "comments")} 
54                    </a>--> 
55                </div> 
56 
57                <p class="resume"> 
58                    ${summary} 
59                </p> 
60            </div> 
61        </div> 
62 
63    <#--<div class="asset-abstract">--> 
64    <#--<div class="pull-right">--> 
65    <#--<@getPrintIcon />--> 
66 
67    <#--<@getFlagsIcon />--> 
68 
69    <#--<@getEditIcon />--> 
70    <#--</div>--> 
71 
72    <#--&lt;#&ndash;<h3 class="asset-title">&ndash;&gt;--> 
73    <#--&lt;#&ndash;<a href="${viewURL}">&ndash;&gt;--> 
74    <#--&lt;#&ndash;${entryTitle}&ndash;&gt;--> 
75    <#--&lt;#&ndash;</a>&ndash;&gt;--> 
76    <#--&lt;#&ndash;</h3>&ndash;&gt;--> 
77 
78    <#--<@getMetadataField fieldName="tags" />--> 
79 
80    <#--<@getMetadataField fieldName="create-date" />--> 
81 
82    <#--<@getMetadataField fieldName="view-count" />--> 
83 
84    <#--&lt;#&ndash;--> 
85    <#--<div class="asset-content">--> 
86    <#--<@getSocialBookmarks />--> 
87 
88    <#--<div class="asset-summary">--> 
89    <#--<@getMetadataField fieldName="author" />--> 
90 
91    <#--${htmlUtil.escape(assetRenderer.getSummary(renderRequest, renderResponse))}--> 
92 
93    <#--<a href="${viewURL}"><@liferay.language key="read-more" /><span class="hide-accessible"><@liferay.language key="about" />${entryTitle}</span> &raquo;</a>--> 
94    <#--</div>--> 
95 
96    <#--<@getRatings />--> 
97 
98    <#--<@getRelatedAssets />--> 
99 
100    <#--<@getDiscussion />--> 
101    <#--</div>--> 
102    <#--&ndash;&gt;--> 
103    <#--</div>--> 
104    </#list> 
105 
106</div> 
107 
108<#function getDocumentURL field> 
109    <#assign imageJson = field.getValue().getString(locale)> 
110    <#if imageJson?has_content> 
111        <#assign imageJson = jsonFactoryUtil.createJSONObject(imageJson) 
112        uuid = imageJson.uuid 
113        groupId = imageJson.groupId 
114        dlFile = dlAppLocalServiceUtil.getFileEntryByUuidAndGroupId(uuid,groupId?number) 
115        smallImage =  dlUtil.getPreviewURL(dlFile, dlFile.getFileVersion(),themeDisplay,'') 
116        /> 
117        <#return smallImage> 
118    </#if> 
119    <#return ''> 
120</#function> 
121<#-- 
122 
123<#list entries as entry> 
124    <#assign 
125    entry = entry 
126 
127    assetRenderer = entry.getAssetRenderer() 
128 
129    entryTitle = htmlUtil.escape(assetRenderer.getTitle(locale)) 
130 
131    viewURL = assetPublisherHelper.getAssetViewURL(renderRequest, renderResponse, assetRenderer, entry, !stringUtil.equals(assetLinkBehavior, "showFullContent")) 
132    /> 
133 
134    <p> 
135        <a href="${assetRenderer.getURLDownload(themeDisplay)}">${entryTitle}</a> 
136    </p> 
137 
138    <div class="asset-abstract"> 
139        <div class="pull-right"> 
140            <@getPrintIcon /> 
141 
142            <@getFlagsIcon /> 
143 
144            <@getEditIcon /> 
145        </div> 
146 
147        <h3 class="asset-title"> 
148            <a href="${viewURL}"> 
149                ${entryTitle} 
150            </a> 
151        </h3> 
152 
153        <@getMetadataField fieldName="tags" /> 
154 
155        <@getMetadataField fieldName="create-date" /> 
156 
157        <@getMetadataField fieldName="view-count" /> 
158 
159        <div class="asset-content"> 
160            <@getSocialBookmarks /> 
161 
162            <div class="asset-summary"> 
163                <@getMetadataField fieldName="author" /> 
164 
165                ${htmlUtil.escape(assetRenderer.getSummary(renderRequest, renderResponse))} 
166 
167                <a href="${viewURL}"><@liferay.language key="read-more" /><span class="hide-accessible"><@liferay.language key="about" />${entryTitle}</span> &raquo;</a> 
168            </div> 
169 
170            <@getRatings /> 
171 
172            <@getRelatedAssets /> 
173 
174            <@getDiscussion /> 
175        </div> 
176    </div> 
177</#list> 
178 
179<#macro getDiscussion> 
180    <#if getterUtil.getBoolean(enableComments) && assetRenderer.isCommentable()> 
181        <br /> 
182 
183        <#assign discussionURL = renderResponse.createActionURL() /> 
184 
185        ${discussionURL.setParameter("javax.portlet.action", "invokeTaglibDiscussion")} 
186 
187        <@liferay_comment["discussion"] 
188        className=entry.getClassName() 
189        classPK=entry.getClassPK() 
190        formAction=discussionURL?string 
191        formName="fm" + entry.getClassPK() 
192        ratingsEnabled=getterUtil.getBoolean(enableCommentRatings) 
193        redirect=currentURL 
194        userId=assetRenderer.getUserId() 
195        /> 
196    </#if> 
197</#macro> 
198 
199<#macro getEditIcon> 
200    <#if assetRenderer.hasEditPermission(themeDisplay.getPermissionChecker())> 
201        <#assign redirectURL = renderResponse.createRenderURL() /> 
202 
203        ${redirectURL.setParameter("mvcPath", "/add_asset_redirect.jsp")} 
204        ${redirectURL.setWindowState("pop_up")} 
205 
206        <#assign editPortletURL = assetRenderer.getURLEdit(renderRequest, renderResponse, windowStateFactory.getWindowState("pop_up"), redirectURL)!"" /> 
207 
208        <#if validator.isNotNull(editPortletURL)> 
209            <#assign title = languageUtil.format(locale, "edit-x", entryTitle, false) /> 
210 
211            <@liferay_ui["icon"] 
212            cssClass="icon-monospaced visible-interaction" 
213            icon="pencil" 
214            markupView="lexicon" 
215            message=title 
216            url="javascript:Liferay.Util.openWindow({id:'" + renderResponse.getNamespace() + "editAsset', title: '" + title + "', uri:'" + htmlUtil.escapeURL(editPortletURL.toString()) + "'});" 
217            /> 
218        </#if> 
219    </#if> 
220</#macro> 
221 
222<#macro getFlagsIcon> 
223    <#if getterUtil.getBoolean(enableFlags)> 
224        <@liferay_flags["flags"] 
225        className=entry.getClassName() 
226        classPK=entry.getClassPK() 
227        contentTitle=entry.getTitle(locale) 
228        label=false 
229        reportedUserId=entry.getUserId() 
230        /> 
231    </#if> 
232</#macro> 
233 
234<#macro getMetadataField fieldName> 
235    <#if stringUtil.split(metadataFields)?seq_contains(fieldName)> 
236        <span class="metadata-entry metadata-${fieldName}"> 
237			<#assign dateFormat = "dd MMM yyyy - HH:mm:ss" /> 
238 
239            <#if stringUtil.equals(fieldName, "author")> 
240                <@liferay.language key="by" /> ${htmlUtil.escape(portalUtil.getUserName(assetRenderer.getUserId(), assetRenderer.getUserName()))} 
241            <#elseif stringUtil.equals(fieldName, "categories")> 
242                <@liferay_asset["asset-categories-summary"] 
243                className=entry.getClassName() 
244                classPK=entry.getClassPK() 
245                portletURL=renderResponse.createRenderURL() 
246                /> 
247            <#elseif stringUtil.equals(fieldName, "create-date")> 
248                ${dateUtil.getDate(entry.getCreateDate(), dateFormat, locale)} 
249            <#elseif stringUtil.equals(fieldName, "expiration-date")> 
250                ${dateUtil.getDate(entry.getExpirationDate(), dateFormat, locale)} 
251            <#elseif stringUtil.equals(fieldName, "modified-date")> 
252                ${dateUtil.getDate(entry.getModifiedDate(), dateFormat, locale)} 
253            <#elseif stringUtil.equals(fieldName, "priority")> 
254                ${entry.getPriority()} 
255            <#elseif stringUtil.equals(fieldName, "publish-date")> 
256                ${dateUtil.getDate(entry.getPublishDate(), dateFormat, locale)} 
257            <#elseif stringUtil.equals(fieldName, "tags")> 
258                <@liferay_asset["asset-tags-summary"] 
259                className=entry.getClassName() 
260                classPK=entry.getClassPK() 
261                portletURL=renderResponse.createRenderURL() 
262                /> 
263            <#elseif stringUtil.equals(fieldName, "view-count")> 
264                ${entry.getViewCount()} <@liferay.language key="views" /> 
265            </#if> 
266		</span> 
267    </#if> 
268</#macro> 
269 
270<#macro getPrintIcon> 
271    <#if getterUtil.getBoolean(enablePrint)> 
272        <#assign printURL = renderResponse.createRenderURL() /> 
273 
274        ${printURL.setParameter("mvcPath", "/view_content.jsp")} 
275        ${printURL.setParameter("assetEntryId", entry.getEntryId()?string)} 
276        ${printURL.setParameter("viewMode", "print")} 
277        ${printURL.setParameter("type", entry.getAssetRendererFactory().getType())} 
278        ${printURL.setWindowState("pop_up")} 
279 
280        <@liferay_ui["icon"] 
281        iconCssClass="icon-print" 
282        message="print" 
283        url="javascript:Liferay.Util.openWindow({id:'" + renderResponse.getNamespace() + "printAsset', title: '" + languageUtil.format(locale, "print-x-x", ["hide-accessible", entryTitle], false) + "', uri: '" + htmlUtil.escapeURL(printURL.toString()) + "'});" 
284        /> 
285    </#if> 
286</#macro> 
287 
288<#macro getRatings> 
289    <#if getterUtil.getBoolean(enableRatings) && assetRenderer.isRatable()> 
290        <div class="asset-ratings"> 
291            <@liferay_ui["ratings"] 
292            className=entry.getClassName() 
293            classPK=entry.getClassPK() 
294            /> 
295        </div> 
296    </#if> 
297</#macro> 
298 
299<#macro getRelatedAssets> 
300    <#if getterUtil.getBoolean(enableRelatedAssets)> 
301        <@liferay_asset["asset-links"] 
302        assetEntryId=entry.getEntryId() 
303        viewInContext=!stringUtil.equals(assetLinkBehavior, "showFullContent") 
304        /> 
305    </#if> 
306</#macro> 
307 
308<#macro getSocialBookmarks> 
309    <@liferay_social_bookmarks["bookmarks"] 
310    className=entry.getClassName() 
311    classPK=entry.getClassPK() 
312    displayStyle="${socialBookmarksDisplayStyle}" 
313    target="_blank" 
314    title=entry.getTitle(locale) 
315    url=viewURL 
316    /> 
317</#macro> 
318 
319--> 

Navegación por categorías

CONT - NOTICIAS - NIVEL 3