Speciali
Si è verificato un errore nell'elaborarazione del modello.
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 layout = LayoutLocalServiceUt... [in template "10154#10192#21743206" at line 32, column 33] ----
1<#assign siteBaseURL = themeDisplay.getPortalURL() + themeDisplay.getPathFriendlyURLPublic() + themeDisplay.getLayout().getGroup().getFriendlyURL() />
2<#assign imagePath = themeDisplay.getTheme().getContextPath() + themeDisplay.getTheme().getImagesPath() />
3<#assign DLFileEntryLocalServiceUtil = staticUtil["com.liferay.document.library.kernel.service.DLFileEntryLocalServiceUtil"] />
4<#assign LayoutLocalServiceUtil = staticUtil["com.liferay.portal.kernel.service.LayoutLocalServiceUtil"] />
5
6<section class="container rt-content" id="content">
7 <div class="row">
8 <div class="col-md-12 portlet-column portlet-column-only" id="column-2">
9
10 <div class="rt-wrapper rt-wrapper--grid rt-wrapper--grid-2-col">
11 <#assign countArticle = 0 />
12 <#if entries?has_content>
13 <#list entries as curEntry>
14 <#assign assetRenderer = curEntry.getAssetRenderer() />
15 <#assign className = assetRenderer.getClassName() />
16 <#assign rendererURL = siteBaseURL + "/-/" + assetRenderer.getUrlTitle() />
17 <#if className = "com.liferay.journal.model.JournalArticle" >
18 <#assign article = assetRenderer.getArticle() />
19 <#if article?? >
20
21 <#assign countArticle = countArticle+1 />
22 <#assign docXml = saxReaderUtil.read(article.getContent()) />
23
24 <#assign titoloSpeciale = docXml.valueOf("//dynamic-element[@name='TestoPrincipale']/dynamic-content/text()") />
25
26 <#assign pageToRefer = docXml.valueOf("//dynamic-element[@name='PaginaDiRiferimento']/dynamic-content/text()") />
27 <#assign layoutSplitted = pageToRefer?split("@") />
28
29 <#assign layoutId = getterUtil.getLong(layoutSplitted[0]) />
30 <#assign groupId = getterUtil.getLong(layoutSplitted[2]) />
31
32 <#assign layout = LayoutLocalServiceUtil.getLayout(groupId, false , layoutId) />
33
34 <#assign referURL = siteBaseURL + layout.getFriendlyURL(locale) />
35
36 <#assign ImmagineSfondoBanner = docXml.valueOf("//dynamic-element[@name='ImmagineSfondoBanner']/dynamic-content/text()") />
37 <#assign ImmagineBannerTema = docXml.valueOf("//dynamic-element[@name='ImmagineBannerTema']/dynamic-content/text()") />
38
39 <#assign noBannerTema = "true" />
40 <#assign haveNoImage = "true" />
41
42 <#assign fileUrl = "" />
43 <#assign altImg = "" />
44
45
46 <#if ImmagineBannerTema?has_content>
47 <#assign json = jsonFactoryUtil.createJSONObject(ImmagineBannerTema) />
48 <#assign nameImg = json.getString("name") />
49 <#assign altImg = json.getString("alt") />
50 <#assign fileEntryId = json.getLong("fileEntryId") />
51 <#assign uuiD = json.getString("uuid") />
52 <#assign groupId = json.getLong("groupId") />
53
54 <#if fileEntryId != 0>
55 <#assign fileEntry = DLFileEntryLocalServiceUtil.getFileEntry(fileEntryId) />
56 <#assign fileUrl = "/documents/" + fileEntry.getGroupId() + "/" + fileEntry.getFolderId() + "/" + fileEntry.getTitle() + "/" + fileEntry.getUuid() />
57 <#assign noBannerTema = "false" />
58 </#if>
59
60 </#if>
61
62 <#if ImmagineSfondoBanner?? && ImmagineSfondoBanner != "" && fileUrl == "">
63 <#assign json = jsonFactoryUtil.createJSONObject(ImmagineSfondoBanner) />
64 <#assign nameImg = json.getString("name") />
65 <#assign altImg = json.getString("alt") />
66 <#assign fileEntryId = json.getLong("fileEntryId") />
67 <#assign uuiD = json.getString("uuid") />
68 <#assign groupId = json.getLong("groupId") />
69 <#if fileEntryId != 0>
70 <#assign fileEntry = DLFileEntryLocalServiceUtil.getFileEntry(fileEntryId) />
71 <#assign fileUrl = "/documents/" + fileEntry.getGroupId() + "/" + fileEntry.getFolderId() + "/" + fileEntry.getTitle() + "/" + fileEntry.getUuid() />
72 <#else>
73 <#if groupId != 0 && uuiD != "">
74 <#assign fileEntry = DLFileEntryLocalServiceUtil.getFileEntryByUuidAndGroupId(uuiD,groupId) />
75 <#if fileEntry?? >
76 <#assign fileUrl = "/documents/" + fileEntry.getGroupId() + "/" + fileEntry.getFolderId() + "/" + fileEntry.getTitle() + "/" + fileEntry.getUuid() />
77 </#if>
78 </#if>
79 </#if>
80 </#if>
81
82 <#if fileUrl?? && fileUrl != "">
83 <#assign haveNoImage = "false" />
84
85 <div class="rt-box rt-box--has-image">
86 <div class="rt-box__image" aria-label="${altImg}" style="background-image: url('${fileUrl?html}');">
87 </div>
88
89 <div class="rt-box__text">
90 <div class="rt-box__title">
91 <a title="Vai alla pagina dello speciale ${titoloSpeciale}" aria-label="Vai alla pagina dello speciale ${titoloSpeciale}" href="${referURL?html}">
92 ${titoloSpeciale}
93 </a>
94 </div>
95 <#assign titoloSecondario = docXml.valueOf("//dynamic-element[@name='TestoLinkSecondario']/dynamic-content/text()") />
96 <#if titoloSecondario?? && titoloSecondario != "">
97 <div class="rt-box__description">
98 <p>${titoloSecondario}</p>
99 </div>
100 </#if>
101 <div class="rt-box__button">
102 <a href="${referURL?html}" class="rt-btn" title="Scopri lo speciale ${titoloSpeciale}" aria-label="Scopri lo speciale ${titoloSpeciale}">Scopri lo speciale <i aria-hidden="true" class="far fa-chevron-circle-right"></i></a>
103 </div>
104 </div>
105
106
107 </div>
108 </#if>
109
110 <#if haveNoImage == "true">
111
112 <#assign haveNoImage = "false" />
113
114 <#assign GradienteBanner = docXml.valueOf("//dynamic-element[@name='GradienteBanner']/dynamic-content/text()") />
115 <#assign LogoHeaderImmagine = docXml.valueOf("//dynamic-element[@name='LogoHeaderImmagine']/dynamic-content/text()") />
116
117 <#if LogoHeaderImmagine?? && LogoHeaderImmagine != "">
118 <#assign json = jsonFactoryUtil.createJSONObject(LogoHeaderImmagine) />
119 <#assign nameImg = json.getString("name") />
120 <#assign altImg = json.getString("alt") />
121 <#assign fileEntryId = json.getLong("fileEntryId") />
122 <#assign uuiD = json.getString("uuid") />
123 <#assign groupId = json.getLong("groupId") />
124 <#if fileEntryId != 0>
125 <#assign fileEntry = DLFileEntryLocalServiceUtil.getFileEntry(fileEntryId) />
126 <#assign fileUrl = "/documents/" + fileEntry.getGroupId() + "/" + fileEntry.getFolderId() + "/" + fileEntry.getTitle() + "/" + fileEntry.getUuid() />
127 <#else>
128 <#if groupId != 0 && uuiD != "">
129 <#assign fileEntry = DLFileEntryLocalServiceUtil.getFileEntryByUuidAndGroupId(uuiD,groupId) />
130 <#if fileEntry?? >
131 <#assign fileUrl = "/documents/" + fileEntry.getGroupId() + "/" + fileEntry.getFolderId() + "/" + fileEntry.getTitle() + "/" + fileEntry.getUuid() />
132 </#if>
133 </#if>
134 </#if>
135 </#if>
136
137 <#if fileUrl?? && fileUrl != "">
138 <div class="rt-box rt-box--has-image">
139 <div class="rt-box__image">
140 <div class="rt-box__logo" style="background-image: linear-gradient(0deg, rgba(0, 0, 0, 0) 0%, ${GradienteBanner}, 100%);" >
141 <img src="${fileUrl}" alt="${altImg}">
142 </div>
143 </div>
144
145 <div class="rt-box__text">
146 <div class="rt-box__title">
147 <a title="Vai alla pagina dello speciale ${titoloSpeciale}" aria-label="Vai alla pagina dello speciale ${titoloSpeciale}" href="${referURL?html}">
148 ${titoloSpeciale}
149 </a>
150 </div>
151 <#assign titoloSecondario = docXml.valueOf("//dynamic-element[@name='TestoLinkSecondario']/dynamic-content/text()") />
152 <#if titoloSecondario?? && titoloSecondario != "">
153 <div class="rt-box__description">
154 <p>${titoloSecondario}</p>
155 </div>
156 </#if>
157 <div class="rt-box__button">
158 <a href="${referURL?html}" class="rt-btn" title="Scopri lo speciale ${titoloSpeciale}" aria-label="Scopri lo speciale ${titoloSpeciale}">Scopri lo speciale <i aria-hidden="true" class="far fa-chevron-circle-right"></i></a>
159 </div>
160 </div>
161
162
163 </div>
164
165 <#else>
166 <#assign haveNoImage = "true" />
167 </#if>
168
169 </#if>
170
171 <#if haveNoImage == "true">
172 <div class="rt-box rt-box--has-image">
173 <div class="rt-box__image" aria-label="Speciale" style="background-image: url('${imagePath}/campagna-placeholder.png');">
174 </div>
175
176 <div class="rt-box__text">
177 <div class="rt-box__title">
178 <a title="Vai alla pagina dello speciale ${titoloSpeciale}" aria-label="Vai alla pagina dello speciale ${titoloSpeciale}" href="${referURL?html}">
179 ${titoloSpeciale}
180 </a>
181 </div>
182 <#assign titoloSecondario = docXml.valueOf("//dynamic-element[@name='TestoLinkSecondario']/dynamic-content/text()") />
183 <#if titoloSecondario?? && titoloSecondario != "">
184 <div class="rt-box__description">
185 <p>${titoloSecondario}</p>
186 </div>
187 </#if>
188 <div class="rt-box__button">
189 <a href="${referURL?html}" class="rt-btn" title="Scopri lo speciale ${titoloSpeciale}" aria-label="Scopri lo speciale ${titoloSpeciale}">Scopri lo speciale <i aria-hidden="true" class="far fa-chevron-circle-right"></i></a>
190 </div>
191 </div>
192
193 </div>
194 </#if>
195 </#if>
196 </#if>
197 </#list>
198 <#else>
199 <h2>Al momento non ci sono speciali per questa sezione.</h2>
200 </#if>
201
202 </div>
203 </div>
204 </div>
205</section>
Mostrati 21 - 30 su 76 risultati.