Finsa Infinite Tricoya®
Une erreur s'est produite lors du traitement du modèle.
Java method "static com.liferay.portal.kernel.service.LayoutLocalServiceUtil.getLayout(long, boolean, long)" threw an exception; see cause exception in the Java stack trace. ---- FTL stack trace ("~" means nesting-related): - Failed at: #assign pageLayout = layoutLocalServi... [in template "20097#20123#65747" at line 50, column 21] ----
1<#if range.getSiblings()?has_content>
2<section class="finsa-grid-productos-container finsa-grid-mt">
3 <ul class="finsa-grid-productos">
4 <#list range.getSiblings() as cur_range>
5 <#assign webContentData = jsonFactoryUtil.createJSONObject(cur_range.getData())>
6
7 <#assign articleService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService")>
8
9 <#assign gama = articleService.fetchJournalArticleByUuidAndGroupId(webContentData.uuid, themeDisplay.getScopeGroupId())>
10
11 <#assign document = saxReaderUtil.read(gama.content)>
12
13 <#assign title = document.selectSingleNode("/root/dynamic-element[@name='title']/dynamic-content[@language-id='" + locale + "']")!document.selectSingleNode("/root/dynamic-element[@name='title']/dynamic-content")>
14
15 <#assign shortDescription = document.selectSingleNode("/root/dynamic-element[@name='shortDescription']/dynamic-content[@language-id='" + locale + "']")!document.selectSingleNode("/root/dynamic-element[@name='shortDescription']/dynamic-content")>
16
17 <#assign image = document.selectSingleNode("/root/dynamic-element[@name='mainImage']/dynamic-content[@language-id='" + locale + "']")!document.selectSingleNode("/root/dynamic-element[@name='mainImage']/dynamic-content")>
18 <#assign imageUuid = jsonFactoryUtil.createJSONObject(image.getText()).uuid!"">
19 <#assign imageLink = themeDisplay.getPortalURL() + themeDisplay.getPathContext() + "/documents/" + themeDisplay.getScopeGroupId() + "/" + imageUuid>
20
21 <#assign link = document.selectSingleNode("/root/dynamic-element[@name='link']/dynamic-content[@language-id='" + locale + "']")!document.selectSingleNode("/root/dynamic-element[@name='link']/dynamic-content")>
22
23 <li>
24 <div class="finsa-grid-productos__item no-click" id="nav--tab" data-toggle="tab"
25 href="#nav-" role="tab" aria-controls="nav-"
26 aria-selected="false">
27
28 <img class="finsa-grid-productos__img" src="${imageLink}" alt="">
29
30 <h2 class="finsa-grid-productos__title">
31
32 ${title.getText()}
33
34 </h2>
35
36 <p class="finsa-grid-productos__text">
37
38 ${shortDescription.getText()}
39
40 </p>
41
42 <#assign friendlyLink = "#">
43 <#if link.getText()?has_content>
44 <#assign layoutId = (jsonFactoryUtil.createJSONObject(link.getText()).layoutId?number)>
45 <#assign groupId = (jsonFactoryUtil.createJSONObject(link.getText()).groupId?number)>
46 <#assign isPrivate = (jsonFactoryUtil.createJSONObject(link.getText()).privateLayout)>
47
48 <#-- get layout -->
49 <#assign layoutLocalService = staticUtil["com.liferay.portal.kernel.service.LayoutLocalServiceUtil"]>
50 <#assign pageLayout = layoutLocalService.getLayout(groupId, isPrivate, layoutId)>
51
52 <#-- get Friendly URL -->
53 <#assign portalUtil = staticUtil["com.liferay.portal.kernel.util.PortalUtil"]>
54 <#assign friendlyLink = portalUtil.getLayoutFriendlyURL(pageLayout, themeDisplay, locale)>
55 </#if>
56
57 <div class="finsa-line-link finsa-line-link-left">
58 <img src="/o/finsa-theme/images/icons/line-red.svg" class="finsa-line" alt="descargar">
59 <a href="${friendlyLink}" class="finsa-link no-click">
60
61 ${languageUtil.get(locale, "see-more")}
62
63 </a>
64 </div>
65 </div>
66 </li>
67 </#list>
68 </ul>
69</section>
70<script>
71 if (!$(".page-editor")[0]){
72 item = $('.finsa-grid-productos__item')
73 $(item).css("cursor", "pointer")
74 $(item).on("click", function (e) {
75 link = $(this).find('a').attr('href')
76 window.location = link;
77 });
78 }
79</script>
80</#if>