UAT Card - Avvocati 2019
Test str2024_TITOLOPAGINAHOME
TEST CARD HOME
Test str2024_TITOLOPAGINAHOME
Test
Si è verificato un errore nell'elaborarazione del modello.
Java method "com.sun.proxy.$Proxy733.getArticleByUrlTitle(long, String)" threw an exception when invoked on com.sun.proxy.$Proxy733 object "com.liferay.journal.service.impl.JournalArticleLocalServiceImpl@d64e756"; see cause exception in the Java stack trace. ---- FTL stack trace ("~" means nesting-related): - Failed at: #assign article = journalArticleServi... [in template "20155#20195#3224350" at line 14, column 17] ----
1<#if themeDisplay??>
2<#else>
3 <#assign serviceContext = staticUtil["com.liferay.portal.kernel.service.ServiceContextThreadLocal"].getServiceContext() />
4 <#assign themeDisplay = serviceContext.getThemeDisplay() />
5</#if>
6<#assign schedeProdotto = {}>
7<#assign numProdotti = 0>
8<#if TitleCard.getSiblings()?has_content>
9 <#list TitleCard.getSiblings() as cur_TitleCard>
10 <#if cur_TitleCard.LabelLink.LabelType.getData() == "scheda">
11 <#assign journalArticleServiceUtil = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService") />
12 <#assign jsonPolizza = jsonFactoryUtil.createJSONObject(cur_TitleCard.LabelLink.SchedaProdotto.getData()) />
13 <#if journalArticleServiceUtil?? && jsonPolizza.get('title')??>
14 <#assign article = journalArticleServiceUtil.getArticleByUrlTitle(themeDisplay.getScopeGroupId(), jsonPolizza.get('title')) />
15 <#assign codiceProdotto = article.getExpandoBridge().getAttribute("product_code")/>
16 <#assign polizzaProdotto = tplToolUtil.getPolizzaByCodProdotto(request, codiceProdotto)!false />
17
18 <#assign isVisible = !(polizzaProdotto?is_boolean && !polizzaProdotto)>
19 <#if !cur_TitleCard.LabelLink.SchedaProdotto.NascondiSenzaConvenzione?? || !getterUtil.getBoolean(cur_TitleCard.LabelLink.SchedaProdotto.NascondiSenzaConvenzione.getData())>
20 <#assign isVisible = true>
21 </#if>
22 <#if isVisible>
23 <#assign schedeProdotto = schedeProdotto + {cur_TitleCard.getData() : polizzaProdotto}>
24 <#assign numProdotti = numProdotti + 1>
25 </#if>
26 </#if>
27 <#else>
28 <#assign numProdotti = numProdotti + 1>
29 </#if>
30 </#list>
31</#if>
32
33<#assign cssClassGrid = "col-md-12" />
34<#assign sectionClassGrid = "" />
35<#assign containerClass = "" />
36<#if numProdotti%2 == 0>
37 <#assign cssClassGrid = "mb-3x mb-md-4x col-md-6" />
38 <#assign sectionClassGrid = "AF-Page_sectionWithBox-small mb-12x mb-md-20x"/>
39<#elseif numProdotti%3 == 0>
40 <#assign cssClassGrid = "mb-3x mb-md-4x col-md-4" />
41 <#assign containerClass = "mb-13x mb-md-20x" />
42<#elseif numProdotti == 1>
43 <#assign cssClassGrid = "col-md-12" />
44 <#assign sectionClassGrid = "AF-Page_sectionWithBox-bottom mb-12x mb-md-20x"/>
45</#if>
46
47<section class="${sectionClassGrid}">
48 <div class="container ${containerClass}">
49 <div class="row">
50 <#if TitleCard.getSiblings()?has_content>
51 <div class="col-xs-12 offset-xs-0 col-lg-10 offset-lg-1">
52 <section class="row" style="grid-row-gap: 30px;">
53 <#assign cssClassCardWrap = "" />
54 <#assign cssClassCardImage = "" />
55 <#assign cssClassCardTitle = "" />
56 <#assign cssClassCard = ""/>
57 <#assign cssClassCardContent = ""/>
58 <#assign cssClassCardBtn = "" />
59 <#if AlignText.getData()?? && AlignText.getData() == "left">
60 <#assign cssClassCardWrap = "AF-Card_wrap-secondary" />
61 <#assign cssClassCardImage = "AF-Card_image-secondary mb-md-3x" />
62 <#assign cssClassCardTitle = "AF-Card_title-secondary" />
63 <#elseif AlignText.getData()?? && AlignText.getData() == "center">
64 <#assign cssClassCard = "AF-Card-full" />
65 <#assign cssClassCardContent = "AF-Card_content" />
66 <#assign cssClassCardBtn = "AF-Card_btn" />
67 </#if>
68 <#if cssClassGrid = "mb-3x mb-md-4x col-md-4">
69 <#assign cssClassCardWrap = "AF-Card_contacts" />
70 </#if>
71 <#if cssClassGrid = "col-md-12">
72 <#assign cssClassCardBtn = "" />
73 </#if>
74
75
76 <#list TitleCard.getSiblings() as cur_TitleCard>
77 <#assign isVisible = true>
78 <#if cur_TitleCard.LabelLink.LabelType.getData() == "scheda">
79 <#if schedeProdotto[cur_TitleCard.getData()]??>
80 <#assign polizzaProdotto = schedeProdotto[cur_TitleCard.getData()] />
81 <#assign isVisible = true>
82 <#else>
83 <#assign isVisible = false>
84 </#if>
85 </#if>
86 <#if isVisible>
87 <div class="${cssClassGrid}">
88 <div class="AF-Card AF-Card-secondary ${cssClassCard}" style="margin-bottom: 40px;">
89 <div class="AF-Card_wrap AF-Card-medium ${cssClassCardWrap}">
90 <div class="${cssClassCardContent}">
91 <div class="AF-Card_header">
92 <div class="AF-Card_image ${cssClassCardImage}">
93 <svg xmlns="http://www.w3.org/2000/svg">
94 <use xlink:href="#${cur_TitleCard.Icon.getData()}"></use>
95 </svg>
96 </div>
97 <#if cssClassGrid = "mb-3x mb-md-0x col-md-4">
98 <h4 class="AF-Card_title ${cssClassCardTitle}">${cur_TitleCard.getData()}</h4>
99 <#else>
100 <h3 class="AF-Card_title ${cssClassCardTitle}">${cur_TitleCard.getData()}</h3>
101 </#if>
102 <div class="AF-Card_text">${cur_TitleCard.Description.getData()}</div>
103 </div>
104 <div class="${cssClassCardBtn}">
105 <#if cur_TitleCard.LabelLink.LabelType.getData() == "link">
106 <a href="${cur_TitleCard.LabelLink.LinkToPage.getFriendlyUrl()}" class="AF-Btn AF-Btn-outline-primary AF-link-card">
107 <span class="AF-Btn_label AF-Btn_label-link">
108 ${cur_TitleCard.LabelLink.getData()}
109 </span>
110 <svg xmlns="http://www.w3.org/2000/svg" fill="red">
111 <use xlink:href="#icon-arrow-red-right"></use>
112 </svg>
113 </a>
114 <#elseif cur_TitleCard.LabelLink.LabelType.getData() == "linkesterno">
115 <a href="${cur_TitleCard.LabelLink.LinkEsterno.getData()}" class="AF-Btn AF-Btn-outline-primary AF-link-card" target="_blank">
116 <span class="AF-Btn_label AF-Btn_label-link">
117 ${cur_TitleCard.LabelLink.getData()}
118 </span>
119 <svg xmlns="http://www.w3.org/2000/svg" fill="red">
120 <use xlink:href="#icon-arrow-red-right"></use>
121 </svg>
122 </a>
123 <#elseif cur_TitleCard.LabelLink.LabelType.getData() == "telephone">
124 <a href="tel:${cur_TitleCard.LabelLink.NumTelephone.getData()}" class="AF-Card_telephone">
125 <h4><b>${cur_TitleCard.LabelLink.NumTelephone.getData()}</b></h4>
126 </a>
127 <#elseif cur_TitleCard.LabelLink.LabelType.getData() == "mailto">
128 <a href="mailto:${cur_TitleCard.LabelLink.Mailto.getData()}" class="AF-Btn AF-Btn-outline-primary">
129 <span class="AF-Btn_label AF-Btn_label-link">
130 ${cur_TitleCard.LabelLink.getData()}
131 </span>
132 <svg xmlns="http://www.w3.org/2000/svg" fill="red">
133 <use xlink:href="#icon-arrow-red-right"></use>
134 </svg>
135 </a>
136 <#elseif cur_TitleCard.LabelLink.LabelType.getData() == "scheda">
137 <#if polizzaProdotto?is_boolean && !polizzaProdotto>
138 <#if themeDisplay.isSignedIn() && user?? && user.getExpandoBridge()?? && user.getExpandoBridge().getAttribute("user_tipoUtente")??>
139 <#assign userType = user.getExpandoBridge().getAttribute("user_tipoUtente") />
140 </#if>
141 <#assign serviceContext = staticUtil["com.liferay.portal.kernel.service.ServiceContextThreadLocal"].getServiceContext()>
142 <#assign httpServletRequest = serviceContext.getRequest()>
143
144 <#if userType?? >
145 <#if (userType == "5" || userType == "6" || httpServletRequest.getParameter('agenteImpersonificatore')??)>
146 <p style="font-size: 16px;color: rgba(0,0,0,0.6);line-height: 1.2; text-decoration: underline;">Gentile agente, il tuo gruppo non possiede la convenzione adatta a questo prodotto.</p>
147 <#else>
148 <#if cur_TitleCard.LabelLink.SchedaProdotto.ErroreConvenzioneMancante?? && cur_TitleCard.LabelLink.SchedaProdotto.ErroreConvenzioneMancante.getData()?has_content>
149 <p style="font-size: 16px;color: rgba(0,0,0,0.6);line-height: 1.2; text-decoration: underline;">${cur_TitleCard.LabelLink.SchedaProdotto.ErroreConvenzioneMancante.getData()}</p>
150 <#else>
151 <p style="font-size: 16px;color: rgba(0,0,0,0.6);line-height: 1.2; text-decoration: underline;">Gentile cliente, non possiede la convenzione adatta a questo prodotto.</p>
152 </#if>
153 </#if>
154 </#if>
155 <#else>
156 <a href="${polizzaProdotto.getFriendlyUrlContent()}" class="AF-Btn AF-Btn-outline-primary AF-link-card">
157 <span class="AF-Btn_label AF-Btn_label-link">
158 ${cur_TitleCard.LabelLink.getData()}
159 </span>
160 <svg xmlns="http://www.w3.org/2000/svg" fill="red">
161 <use xlink:href="#icon-arrow-red-right"></use>
162 </svg>
163 </a>
164 </#if>
165 </#if>
166 </div>
167 </div>
168 </div>
169 </div>
170 </div>
171 </#if>
172 </#list>
173 </section>
174 </div>
175 </#if>
176 </div>
177 </div>
178</section>
179
180<style>
181
182 .row{
183 margin-right: -12px;
184 margin-left: -12px;
185 }
186</style>
187
188<script type="text/javascript">
189 $(document).ready(function() {
190 $(document).on('click', '.AF-link-card', function(e) {
191 let urlNew = $(this).attr("href");
192 let url = window.location.href;
193 let impers;
194 let param;
195
196 if (url.indexOf("doAsUserId") >= 0) {
197 param = "doAsUserId";
198 } else if (url.indexOf("cliente") >= 0) {
199 param = "cliente";
200 }
201
202 if (param) {
203 impers = url.substring(url.indexOf(param));
204 if (!urlNew.includes(param)) {
205 if (urlNew.includes("?")) {
206 urlNew = urlNew + "&" + impers;
207 } else {
208 urlNew = urlNew + "?" + impers;
209 }
210 }
211 }
212 $(this).attr("href", urlNew);
213 });
214 });
215
216
217</script>
Si è verificato un errore nell'elaborarazione del modello.
Java method "com.sun.proxy.$Proxy733.getArticleByUrlTitle(long, String)" threw an exception when invoked on com.sun.proxy.$Proxy733 object "com.liferay.journal.service.impl.JournalArticleLocalServiceImpl@d64e756"; see cause exception in the Java stack trace. ---- FTL stack trace ("~" means nesting-related): - Failed at: #assign article = journalArticleServi... [in template "20155#20195#3295440" at line 8, column 13] ----
1<#if LinkLabel.getData() ?? && LinkLabel.getData()?has_content>
2 <#assign isVisible = true>
3 <#if LinkLabel.SchedaProdotto.getData()?has_content>
4 <#assign journalArticleServiceUtil = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService") />
5 <#assign jsonPolizza = jsonFactoryUtil.createJSONObject(LinkLabel.SchedaProdotto.getData()) />
6 <#if journalArticleServiceUtil?? && jsonPolizza.get('title')??>
7
8 <#assign article = journalArticleServiceUtil.getArticleByUrlTitle(themeDisplay.getScopeGroupId(), jsonPolizza.get('title')) />
9 <#assign codiceProdotto = article.getExpandoBridge().getAttribute("product_code")/>
10 <#assign polizzaProdotto = tplToolUtil.getPolizzaByCodProdotto(request, codiceProdotto)!false />
11 <#assign isVisible = !(polizzaProdotto?is_boolean && !polizzaProdotto)>
12 <#if !LinkLabel.SchedaProdotto.NascondiSenzaConvenzione?? || !getterUtil.getBoolean(LinkLabel.SchedaProdotto.NascondiSenzaConvenzione.getData())>
13 <#assign isVisible = true>
14 </#if>
15 </#if>
16 </#if>
17 <#if isVisible>
18 <section class="container">
19 <div class="row">
20 <div class="col-xs-12 offset-xs-0 col-lg-10 offset-lg-1">
21 <div class="container mb-12x mb-md-27x">
22 <div class="row">
23 <#if Image.getData() ?? && Image.getData()?has_content>
24 <div class="AF-Subsection_imageContainer col-xs-12 col-md-6 ">
25 <picture>
26 <source srcset="${Image.getData()}" media="(min-width: 576px)">
27 <img class="AF-Subsection_image fit-cover" src="${Image.getData()}"
28 alt="image-section">
29 </picture>
30 </div>
31 <div class="AF-Subsection_text col-xs-12 col-md-6">
32 <h2 class="mb-1x">${Section.getData()}</h2>
33 <div>${Content.getData()}</div>
34 <div class="AF-Subsection_button">
35 <#if LinkLabel.LinkToPage.getData()?has_content>
36 <a href="${LinkLabel.LinkToPage.getFriendlyUrl()}"
37 class="AF-Btn AF-Btn-outline-primary AF-link-sezione">
38 <span class="AF-Btn_label AF-Btn_label-link">${LinkLabel.getData()}</span>
39 <svg id="arrow-red-right" xmlns="http://www.w3.org/2000/svg" fill="red">
40 <use xlink:href="#icon-arrow-red-right"></use>
41 </svg>
42 </a>
43 <#else>
44 <#if polizzaProdotto?is_boolean && !polizzaProdotto>
45 <#if user?? && user.getExpandoBridge()?? && user.getExpandoBridge().getAttribute("user_tipoUtente")??>
46 <#assign userType = user.getExpandoBridge().getAttribute("user_tipoUtente") />
47 </#if>
48 <#assign serviceContext = staticUtil["com.liferay.portal.kernel.service.ServiceContextThreadLocal"].getServiceContext()>
49 <#assign httpServletRequest = serviceContext.getRequest()>
50
51 <#if userType?? >
52 <#if (userType == "5" || userType == "6" || httpServletRequest.getParameter('agenteImpersonificatore')??)>
53 <p style="font-size: 16px;color: rgba(0,0,0,0.6);line-height: 1.2; text-decoration: underline;">Gentile agente, il tuo gruppo non possiede la convenzione adatta a questo prodotto.</p>
54 <#else>
55 <#if LinkLabel.SchedaProdotto.ErroreConvenzioneMancante?? && LinkLabel.SchedaProdotto.ErroreConvenzioneMancante.getData()?has_content>
56 <p style="font-size: 16px;color: rgba(0,0,0,0.6);line-height: 1.2; text-decoration: underline;">${LinkLabel.SchedaProdotto.ErroreConvenzioneMancante.getData()}</p>
57 <#else>
58 <p style="font-size: 16px;color: rgba(0,0,0,0.6);line-height: 1.2; text-decoration: underline;">Gentile cliente, non possiede la convenzione adatta a questo prodotto.</p>
59 </#if>
60 </#if>
61 </#if>
62 <#else>
63<#-- <#assign urlSchedaProdotto = "/web" + themeDisplay.getScopeGroup().getFriendlyURL() + "/-/" + article.getUrlTitle() + "?" + "codiceProdotto=" + codiceProdotto + "&versioneProdotto=" + polizzaProdotto.getVersion() + "&codiceConvenzione=" + polizzaProdotto.getCodeConvenzione() />-->
64 <a href="${polizzaProdotto.getFriendlyUrlContent()}"
65 class="AF-Btn AF-Btn-outline-primary AF-link-sezione">
66 <span class="AF-Btn_label AF-Btn_label-link">${LinkLabel.getData()}</span>
67 <svg id="arrow-red-right" xmlns="http://www.w3.org/2000/svg" fill="red">
68 <use xlink:href="#icon-arrow-red-right"></use>
69 </svg>
70 </a>
71 </#if>
72 </#if>
73 </div>
74 </div>
75 </#if>
76 </div>
77 </div>
78 </div>
79 </div>
80 </section>
81 </#if>
82<#else>
83
84 <div class="container">
85 <div class="row">
86 <div class="col-xs-12 offset-xs-0 col-lg-10 offset-lg-1">
87 <section class="row mb-16x mb-md-26x">
88 <#if Image.getData() ?? && Image.getData()?has_content>
89 <div class="AF-About_imgContainer col-md-6">
90 <picture>
91 <source srcset="${Image.getData()}" media="(min-width: 576px)">
92 <img class="AF-About_imgBanner fit-cover" src="${Image.getData()}" alt="image-section">
93 </picture>
94 </div>
95 <div class="col-md-6">
96 <h2 class="mb-3x">${Section.getData()}</h2>
97 <div>${Content.getData()}</div>
98 </div>
99 </#if>
100 </section>
101 </div>
102 </div>
103 </div>
104</#if>
105
106<script type="text/javascript">
107
108 $(document).ready(function() {
109 $(document).on('click', '.AF-link-sezione', function(e) {
110 let urlNew = $(this).attr("href");
111 let url = window.location.href;
112 let impers;
113 let param;
114
115 if (url.indexOf("doAsUserId") >= 0) {
116 param = "doAsUserId";
117 } else if (url.indexOf("cliente") >= 0) {
118 param = "cliente";
119 }
120
121 if (param) {
122 impers = url.substring(url.indexOf(param));
123 if (urlNew.includes("?")) {
124 urlNew = urlNew + "&" + impers;
125 } else {
126 urlNew = urlNew + "?" + impers;
127 }
128 }
129 $(this).attr("href", urlNew);
130 });
131 });
132
133</script>