All Products Banner Hero
We are what we do:
our business, our products.
Catalogo
Missioni
Air Defence
Air Transport
Airport and Ports
Border Control
Combat
Digital Transformation
Disaster relief
Executive and Private Transport
ISR/ISTAR
Infrastructure and event protection
Law Enforcement
Maritime Domain Awareness
Medical and Rescue
Naval
Operazioni sul campo di battaglia
Self Protection
Services
Space Systems
Special Forces
Training and Simulation
Utility Support
Si è verificato un errore nell'elaborarazione del modello.
The following has evaluated to null or missing:
==> SeparatorOverview [in template "20115#20151#197212" at line 35, column 35]
----
Tip: If the failing expression is known to legally refer to something that's sometimes null or missing, either specify a default value like myOptionalVar!myDefault, or use <#if myOptionalVar??>when-present<#else>when-missing</#if>. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)??
----
----
FTL stack trace ("~" means nesting-related):
- Failed at: #assign scalingDetails = {"desktop": ... [in template "20115#20151#197212" at line 33, column 1]
----
1<@leonardo.articleInfo .vars "SP-Product-complete-listing"/>
2<#assign currentGroupExpandoBridge = themeDisplay.getScopeGroup().getExpandoBridge()>
3<#assign isDarkTheme = false>
4<#if currentGroupExpandoBridge.hasAttribute("dark-theme")>
5 <#assign isDarkTheme = currentGroupExpandoBridge.getAttribute("dark-theme", false)>
6</#if>
7
8<#assign
9 journalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService")
10 articleId = .vars['reserved-article-id'].data
11 article = journalArticleLocalService.getArticle(groupId, articleId)
12 productLayout = (article.getLayout()!)
13 isProductPage = false
14 target = ((layout.getGroup().getGroupId()) != (article.getGroupId()))?then("_blank","_self")
15 productDetailURL = ''
16>
17
18<#attempt>
19 <#assign productDetailURL = portalUtil.getLayoutFriendlyURL(productLayout, themeDisplay) >
20 <#recover>
21</#attempt>
22
23<#if (layout.getGroup().getGroupId()) != (article.getGroupId())>
24 <#assign productDetailURL = portalUtil.getVirtualHostname (productLayout.getLayoutSet())>
25 <#if (productDetailURL)?has_content && (productDetailURL?lower_case != 'localhost')>
26 <#assign productDetailURL = 'https://' + productDetailURL >
27 <#else>
28 <#assign productDetailURL = ''>
29 </#if>
30 <#assign productDetailURL = productDetailURL + productLayout.getFriendlyURL()>
31</#if>
32
33<#assign scalingDetails = {
34 "desktop": {"alternateImage": {}, "key": "w_317"},
35 "tl": {"alternateImage": SeparatorOverview.OverviewImage.ImageTl!, "key": "w_317"},
36 "tp": {"alternateImage": SeparatorOverview.OverviewImage.ImageTp!, "key": "w_317"},
37 "mobile": {"alternateImage": SeparatorOverview.OverviewImage.ImageM!, "key": "w_317"}
38}>
39<#assign dataImg = leonardo.adaptImage(SeparatorOverview.OverviewImage!, scalingDetails )>
40
41<#if (layout.layoutPrototypeUuid)?has_content>
42 <#assign
43 layoutPrototypeLocalService = serviceLocator.findService("com.liferay.portal.kernel.service.LayoutPrototypeLocalService")
44 layoutPrototype = layoutPrototypeLocalService.fetchLayoutPrototypeByUuidAndCompanyId(layout.layoutPrototypeUuid, themeDisplay.getCompanyId())
45 >
46 <#if ((layoutPrototype)?has_content) && (layoutPrototype.getName(locale) == "Sheet Product (SP)")>
47 <#assign isProductPage = true>
48 </#if>
49</#if>
50<#if (productLayout)?has_content>
51 <#assign url = productDetailURL>
52</#if>
53
54<!--Start Module: Product Card-->
55<div class="product-card invisible">
56 <#if isDarkTheme>
57
58
59 <#if url?has_content>
60 <a class="product-card--wrap" href="${url!}" target="${target}" title="${SeparatorOverview.ProductName.getData()!}">
61 </#if>
62 <div class="product-card--graphic-container">
63 <img class="product-card--graphic" alt="${SeparatorOverview.ProductName.getData()!}" src="${themeDisplay.pathThemeImages}/blank.png"
64 data-lazy-src-url-d="${dataImg.desktop!}"
65 data-lazy-src-url-tl="${dataImg.tablet_landscape!}"
66 data-lazy-src-url-tp="${dataImg.tablet_portrait!}"
67 data-lazy-src-url-m="${dataImg.mobile!}"/>
68 </div>
69 <div class="product-card--desc">
70 <#assign summary = .vars['reserved-article-description'].data!>
71
72 <#assign maxlength = 160 >
73 <#assign nameLength = SeparatorOverview.ProductName.getData()?length >
74 <#assign maxlength = maxlength - nameLength >
75
76 <#if summary?length gt 1>
77 <h3 class="title">${SeparatorOverview.ProductName.getData()!}</h3>
78 <span class="product-card--desc--link summary" >
79 ${leonardo.stringEllipsis(htmlUtil.extractText(summary!), maxlength)}
80 </span>
81 <#elseif summary?length == 1>
82 <h3 class="title">${SeparatorOverview.ProductName.getData()!}</h3>
83 <#else>
84 <#if maxlength gte 0>
85 <h3 class="title">${SeparatorOverview.ProductName.getData()!}</h3>
86 <span href="${url!}" target="${target}" class="product-card--desc--link summary" >
87 ${leonardo.stringEllipsis(htmlUtil.extractText(SeparatorOverview.OverviewText.getData()!), maxlength)}
88 </span>
89 <#else>
90 <h3 class="title">${SeparatorOverview.ProductName.getData()!}</h3>
91 </#if>
92 </#if>
93 </div>
94 <#if url?has_content>
95 </a>
96 </#if>
97 <#else>
98 <#if url?has_content>
99 <a class="product-card--wrap" href="${url!}" target="${target}" title="${SeparatorOverview.ProductName.getData()!}">
100 </#if>
101 <div class="product-card--graphic-container">
102 <img class="product-card--graphic" alt="${SeparatorOverview.ProductName.getData()!}" src="${themeDisplay.pathThemeImages}/blank.png"
103 data-lazy-src-url-d="${dataImg.desktop!}"
104 data-lazy-src-url-tl="${dataImg.tablet_landscape!}"
105 data-lazy-src-url-tp="${dataImg.tablet_portrait!}"
106 data-lazy-src-url-m="${dataImg.mobile!}"/>
107 </div>
108 <div class="product-card--desc">
109 <#assign summary = .vars['reserved-article-description'].data!>
110 <#if summary?length gt 1>
111 <span class="title">${SeparatorOverview.ProductName.getData()!}</span> ${summary!}
112 <#elseif summary?length == 1>
113 <h3 class="title">${SeparatorOverview.ProductName.getData()!}</h3>
114 <#else>
115 <#assign maxlength = 150 >
116 <#assign nameLength = SeparatorOverview.ProductName.getData()?length >
117 <#assign maxlength = maxlength - nameLength >
118 <#if maxlength gte 0>
119 <span class="title">${SeparatorOverview.ProductName.getData()!}</span>
120 ${leonardo.stringEllipsis(htmlUtil.extractText(SeparatorOverview.OverviewText.getData()!), maxlength)}
121 <#else>
122 <span class="title">${SeparatorOverview.ProductName.getData()!}</span>
123 </#if>
124 </#if>
125 </div>
126 <#if url?has_content>
127 </a>
128 </#if>
129 </#if>
130
131 <#if isDarkTheme>
132 <#if hasDetailPage?? && getterUtil.getBoolean(hasDetailPage.getData()) >
133 <span class="js-link-product" style="display:none">
134 <a class="link-arrow" href="${url!}" target="${target}" title="${SeparatorOverview.ProductName.getData()!}">
135
136 <@liferay.language key="link-to-product-page"/>
137 </a>
138 </span>
139 </#if>
140 <span class="js-textModal" style="display:none">
141 ${SeparatorOverview.OverviewText.getData()!}
142 </span>
143 <#if SeparatorOverview.OverviewFileUrl??>
144 <#assign docsDownloadURL = ''>
145 <#if (layout.getGroup().getGroupId()) != (article.getGroupId())>
146 <#assign docsDownloadURL = portalUtil.getVirtualHostname (productLayout.getLayoutSet())>
147 <#if (docsDownloadURL)?has_content && (docsDownloadURL?lower_case != 'localhost')>
148 <#assign docsDownloadURL = 'https://' + docsDownloadURL >
149 <#else>
150 <#assign docsDownloadURL = ''>
151 </#if>
152 </#if>
153 <ul class="js-ul-overview" style="display:none">
154 <#list SeparatorOverview.OverviewFileUrl.getSiblings() as itemList>
155 <#assign file_info = leonardo.findFileEntryInfo(itemList.getData()) >
156 <#if itemList.OverviewFileLabel.getData()!= '' && file_info.downloadUrl != ''>
157 <li class="list-item">
158 <a href="${docsDownloadURL}${file_info.downloadUrl}" target="_blank">
159 ${itemList.OverviewFileLabel.getData()!}
160 </a>
161 </li>
162 </#if>
163 </#list>
164 </ul>
165 </#if>
166 <#if SeparatorDownloads.DownloadFileURL.getSiblings()?has_content>
167 <ul class="js-ul-download" style="display:none">
168 <#list SeparatorDownloads.DownloadFileURL.getSiblings() as cur_SeparatorDownloads_DownloadFileURL>
169 <#if cur_SeparatorDownloads_DownloadFileURL.DownloadFileLabel.getData()!= '' && cur_SeparatorDownloads_DownloadFileURL.getData() != ''>
170 <li class="list-item">
171 <a href="${cur_SeparatorDownloads_DownloadFileURL.getData()}" target="_blank">
172 ${languageUtil.format(locale, "download-x", cur_SeparatorDownloads_DownloadFileURL.DownloadFileLabel.getData(), false)}
173 </a>
174 </li>
175 </#if>
176 </#list>
177 </ul>
178 </#if>
179 </#if>
180</div>
181<!--End Module: Product Card-->
Si è verificato un errore nell'elaborarazione del modello.
The following has evaluated to null or missing:
==> SeparatorOverview [in template "20115#20151#197212" at line 35, column 35]
----
Tip: If the failing expression is known to legally refer to something that's sometimes null or missing, either specify a default value like myOptionalVar!myDefault, or use <#if myOptionalVar??>when-present<#else>when-missing</#if>. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)??
----
----
FTL stack trace ("~" means nesting-related):
- Failed at: #assign scalingDetails = {"desktop": ... [in template "20115#20151#197212" at line 33, column 1]
----
1<@leonardo.articleInfo .vars "SP-Product-complete-listing"/>
2<#assign currentGroupExpandoBridge = themeDisplay.getScopeGroup().getExpandoBridge()>
3<#assign isDarkTheme = false>
4<#if currentGroupExpandoBridge.hasAttribute("dark-theme")>
5 <#assign isDarkTheme = currentGroupExpandoBridge.getAttribute("dark-theme", false)>
6</#if>
7
8<#assign
9 journalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService")
10 articleId = .vars['reserved-article-id'].data
11 article = journalArticleLocalService.getArticle(groupId, articleId)
12 productLayout = (article.getLayout()!)
13 isProductPage = false
14 target = ((layout.getGroup().getGroupId()) != (article.getGroupId()))?then("_blank","_self")
15 productDetailURL = ''
16>
17
18<#attempt>
19 <#assign productDetailURL = portalUtil.getLayoutFriendlyURL(productLayout, themeDisplay) >
20 <#recover>
21</#attempt>
22
23<#if (layout.getGroup().getGroupId()) != (article.getGroupId())>
24 <#assign productDetailURL = portalUtil.getVirtualHostname (productLayout.getLayoutSet())>
25 <#if (productDetailURL)?has_content && (productDetailURL?lower_case != 'localhost')>
26 <#assign productDetailURL = 'https://' + productDetailURL >
27 <#else>
28 <#assign productDetailURL = ''>
29 </#if>
30 <#assign productDetailURL = productDetailURL + productLayout.getFriendlyURL()>
31</#if>
32
33<#assign scalingDetails = {
34 "desktop": {"alternateImage": {}, "key": "w_317"},
35 "tl": {"alternateImage": SeparatorOverview.OverviewImage.ImageTl!, "key": "w_317"},
36 "tp": {"alternateImage": SeparatorOverview.OverviewImage.ImageTp!, "key": "w_317"},
37 "mobile": {"alternateImage": SeparatorOverview.OverviewImage.ImageM!, "key": "w_317"}
38}>
39<#assign dataImg = leonardo.adaptImage(SeparatorOverview.OverviewImage!, scalingDetails )>
40
41<#if (layout.layoutPrototypeUuid)?has_content>
42 <#assign
43 layoutPrototypeLocalService = serviceLocator.findService("com.liferay.portal.kernel.service.LayoutPrototypeLocalService")
44 layoutPrototype = layoutPrototypeLocalService.fetchLayoutPrototypeByUuidAndCompanyId(layout.layoutPrototypeUuid, themeDisplay.getCompanyId())
45 >
46 <#if ((layoutPrototype)?has_content) && (layoutPrototype.getName(locale) == "Sheet Product (SP)")>
47 <#assign isProductPage = true>
48 </#if>
49</#if>
50<#if (productLayout)?has_content>
51 <#assign url = productDetailURL>
52</#if>
53
54<!--Start Module: Product Card-->
55<div class="product-card invisible">
56 <#if isDarkTheme>
57
58
59 <#if url?has_content>
60 <a class="product-card--wrap" href="${url!}" target="${target}" title="${SeparatorOverview.ProductName.getData()!}">
61 </#if>
62 <div class="product-card--graphic-container">
63 <img class="product-card--graphic" alt="${SeparatorOverview.ProductName.getData()!}" src="${themeDisplay.pathThemeImages}/blank.png"
64 data-lazy-src-url-d="${dataImg.desktop!}"
65 data-lazy-src-url-tl="${dataImg.tablet_landscape!}"
66 data-lazy-src-url-tp="${dataImg.tablet_portrait!}"
67 data-lazy-src-url-m="${dataImg.mobile!}"/>
68 </div>
69 <div class="product-card--desc">
70 <#assign summary = .vars['reserved-article-description'].data!>
71
72 <#assign maxlength = 160 >
73 <#assign nameLength = SeparatorOverview.ProductName.getData()?length >
74 <#assign maxlength = maxlength - nameLength >
75
76 <#if summary?length gt 1>
77 <h3 class="title">${SeparatorOverview.ProductName.getData()!}</h3>
78 <span class="product-card--desc--link summary" >
79 ${leonardo.stringEllipsis(htmlUtil.extractText(summary!), maxlength)}
80 </span>
81 <#elseif summary?length == 1>
82 <h3 class="title">${SeparatorOverview.ProductName.getData()!}</h3>
83 <#else>
84 <#if maxlength gte 0>
85 <h3 class="title">${SeparatorOverview.ProductName.getData()!}</h3>
86 <span href="${url!}" target="${target}" class="product-card--desc--link summary" >
87 ${leonardo.stringEllipsis(htmlUtil.extractText(SeparatorOverview.OverviewText.getData()!), maxlength)}
88 </span>
89 <#else>
90 <h3 class="title">${SeparatorOverview.ProductName.getData()!}</h3>
91 </#if>
92 </#if>
93 </div>
94 <#if url?has_content>
95 </a>
96 </#if>
97 <#else>
98 <#if url?has_content>
99 <a class="product-card--wrap" href="${url!}" target="${target}" title="${SeparatorOverview.ProductName.getData()!}">
100 </#if>
101 <div class="product-card--graphic-container">
102 <img class="product-card--graphic" alt="${SeparatorOverview.ProductName.getData()!}" src="${themeDisplay.pathThemeImages}/blank.png"
103 data-lazy-src-url-d="${dataImg.desktop!}"
104 data-lazy-src-url-tl="${dataImg.tablet_landscape!}"
105 data-lazy-src-url-tp="${dataImg.tablet_portrait!}"
106 data-lazy-src-url-m="${dataImg.mobile!}"/>
107 </div>
108 <div class="product-card--desc">
109 <#assign summary = .vars['reserved-article-description'].data!>
110 <#if summary?length gt 1>
111 <span class="title">${SeparatorOverview.ProductName.getData()!}</span> ${summary!}
112 <#elseif summary?length == 1>
113 <h3 class="title">${SeparatorOverview.ProductName.getData()!}</h3>
114 <#else>
115 <#assign maxlength = 150 >
116 <#assign nameLength = SeparatorOverview.ProductName.getData()?length >
117 <#assign maxlength = maxlength - nameLength >
118 <#if maxlength gte 0>
119 <span class="title">${SeparatorOverview.ProductName.getData()!}</span>
120 ${leonardo.stringEllipsis(htmlUtil.extractText(SeparatorOverview.OverviewText.getData()!), maxlength)}
121 <#else>
122 <span class="title">${SeparatorOverview.ProductName.getData()!}</span>
123 </#if>
124 </#if>
125 </div>
126 <#if url?has_content>
127 </a>
128 </#if>
129 </#if>
130
131 <#if isDarkTheme>
132 <#if hasDetailPage?? && getterUtil.getBoolean(hasDetailPage.getData()) >
133 <span class="js-link-product" style="display:none">
134 <a class="link-arrow" href="${url!}" target="${target}" title="${SeparatorOverview.ProductName.getData()!}">
135
136 <@liferay.language key="link-to-product-page"/>
137 </a>
138 </span>
139 </#if>
140 <span class="js-textModal" style="display:none">
141 ${SeparatorOverview.OverviewText.getData()!}
142 </span>
143 <#if SeparatorOverview.OverviewFileUrl??>
144 <#assign docsDownloadURL = ''>
145 <#if (layout.getGroup().getGroupId()) != (article.getGroupId())>
146 <#assign docsDownloadURL = portalUtil.getVirtualHostname (productLayout.getLayoutSet())>
147 <#if (docsDownloadURL)?has_content && (docsDownloadURL?lower_case != 'localhost')>
148 <#assign docsDownloadURL = 'https://' + docsDownloadURL >
149 <#else>
150 <#assign docsDownloadURL = ''>
151 </#if>
152 </#if>
153 <ul class="js-ul-overview" style="display:none">
154 <#list SeparatorOverview.OverviewFileUrl.getSiblings() as itemList>
155 <#assign file_info = leonardo.findFileEntryInfo(itemList.getData()) >
156 <#if itemList.OverviewFileLabel.getData()!= '' && file_info.downloadUrl != ''>
157 <li class="list-item">
158 <a href="${docsDownloadURL}${file_info.downloadUrl}" target="_blank">
159 ${itemList.OverviewFileLabel.getData()!}
160 </a>
161 </li>
162 </#if>
163 </#list>
164 </ul>
165 </#if>
166 <#if SeparatorDownloads.DownloadFileURL.getSiblings()?has_content>
167 <ul class="js-ul-download" style="display:none">
168 <#list SeparatorDownloads.DownloadFileURL.getSiblings() as cur_SeparatorDownloads_DownloadFileURL>
169 <#if cur_SeparatorDownloads_DownloadFileURL.DownloadFileLabel.getData()!= '' && cur_SeparatorDownloads_DownloadFileURL.getData() != ''>
170 <li class="list-item">
171 <a href="${cur_SeparatorDownloads_DownloadFileURL.getData()}" target="_blank">
172 ${languageUtil.format(locale, "download-x", cur_SeparatorDownloads_DownloadFileURL.DownloadFileLabel.getData(), false)}
173 </a>
174 </li>
175 </#if>
176 </#list>
177 </ul>
178 </#if>
179 </#if>
180</div>
181<!--End Module: Product Card-->
Si è verificato un errore nell'elaborarazione del modello.
The following has evaluated to null or missing:
==> SeparatorOverview [in template "20115#20151#197212" at line 35, column 35]
----
Tip: If the failing expression is known to legally refer to something that's sometimes null or missing, either specify a default value like myOptionalVar!myDefault, or use <#if myOptionalVar??>when-present<#else>when-missing</#if>. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)??
----
----
FTL stack trace ("~" means nesting-related):
- Failed at: #assign scalingDetails = {"desktop": ... [in template "20115#20151#197212" at line 33, column 1]
----
1<@leonardo.articleInfo .vars "SP-Product-complete-listing"/>
2<#assign currentGroupExpandoBridge = themeDisplay.getScopeGroup().getExpandoBridge()>
3<#assign isDarkTheme = false>
4<#if currentGroupExpandoBridge.hasAttribute("dark-theme")>
5 <#assign isDarkTheme = currentGroupExpandoBridge.getAttribute("dark-theme", false)>
6</#if>
7
8<#assign
9 journalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService")
10 articleId = .vars['reserved-article-id'].data
11 article = journalArticleLocalService.getArticle(groupId, articleId)
12 productLayout = (article.getLayout()!)
13 isProductPage = false
14 target = ((layout.getGroup().getGroupId()) != (article.getGroupId()))?then("_blank","_self")
15 productDetailURL = ''
16>
17
18<#attempt>
19 <#assign productDetailURL = portalUtil.getLayoutFriendlyURL(productLayout, themeDisplay) >
20 <#recover>
21</#attempt>
22
23<#if (layout.getGroup().getGroupId()) != (article.getGroupId())>
24 <#assign productDetailURL = portalUtil.getVirtualHostname (productLayout.getLayoutSet())>
25 <#if (productDetailURL)?has_content && (productDetailURL?lower_case != 'localhost')>
26 <#assign productDetailURL = 'https://' + productDetailURL >
27 <#else>
28 <#assign productDetailURL = ''>
29 </#if>
30 <#assign productDetailURL = productDetailURL + productLayout.getFriendlyURL()>
31</#if>
32
33<#assign scalingDetails = {
34 "desktop": {"alternateImage": {}, "key": "w_317"},
35 "tl": {"alternateImage": SeparatorOverview.OverviewImage.ImageTl!, "key": "w_317"},
36 "tp": {"alternateImage": SeparatorOverview.OverviewImage.ImageTp!, "key": "w_317"},
37 "mobile": {"alternateImage": SeparatorOverview.OverviewImage.ImageM!, "key": "w_317"}
38}>
39<#assign dataImg = leonardo.adaptImage(SeparatorOverview.OverviewImage!, scalingDetails )>
40
41<#if (layout.layoutPrototypeUuid)?has_content>
42 <#assign
43 layoutPrototypeLocalService = serviceLocator.findService("com.liferay.portal.kernel.service.LayoutPrototypeLocalService")
44 layoutPrototype = layoutPrototypeLocalService.fetchLayoutPrototypeByUuidAndCompanyId(layout.layoutPrototypeUuid, themeDisplay.getCompanyId())
45 >
46 <#if ((layoutPrototype)?has_content) && (layoutPrototype.getName(locale) == "Sheet Product (SP)")>
47 <#assign isProductPage = true>
48 </#if>
49</#if>
50<#if (productLayout)?has_content>
51 <#assign url = productDetailURL>
52</#if>
53
54<!--Start Module: Product Card-->
55<div class="product-card invisible">
56 <#if isDarkTheme>
57
58
59 <#if url?has_content>
60 <a class="product-card--wrap" href="${url!}" target="${target}" title="${SeparatorOverview.ProductName.getData()!}">
61 </#if>
62 <div class="product-card--graphic-container">
63 <img class="product-card--graphic" alt="${SeparatorOverview.ProductName.getData()!}" src="${themeDisplay.pathThemeImages}/blank.png"
64 data-lazy-src-url-d="${dataImg.desktop!}"
65 data-lazy-src-url-tl="${dataImg.tablet_landscape!}"
66 data-lazy-src-url-tp="${dataImg.tablet_portrait!}"
67 data-lazy-src-url-m="${dataImg.mobile!}"/>
68 </div>
69 <div class="product-card--desc">
70 <#assign summary = .vars['reserved-article-description'].data!>
71
72 <#assign maxlength = 160 >
73 <#assign nameLength = SeparatorOverview.ProductName.getData()?length >
74 <#assign maxlength = maxlength - nameLength >
75
76 <#if summary?length gt 1>
77 <h3 class="title">${SeparatorOverview.ProductName.getData()!}</h3>
78 <span class="product-card--desc--link summary" >
79 ${leonardo.stringEllipsis(htmlUtil.extractText(summary!), maxlength)}
80 </span>
81 <#elseif summary?length == 1>
82 <h3 class="title">${SeparatorOverview.ProductName.getData()!}</h3>
83 <#else>
84 <#if maxlength gte 0>
85 <h3 class="title">${SeparatorOverview.ProductName.getData()!}</h3>
86 <span href="${url!}" target="${target}" class="product-card--desc--link summary" >
87 ${leonardo.stringEllipsis(htmlUtil.extractText(SeparatorOverview.OverviewText.getData()!), maxlength)}
88 </span>
89 <#else>
90 <h3 class="title">${SeparatorOverview.ProductName.getData()!}</h3>
91 </#if>
92 </#if>
93 </div>
94 <#if url?has_content>
95 </a>
96 </#if>
97 <#else>
98 <#if url?has_content>
99 <a class="product-card--wrap" href="${url!}" target="${target}" title="${SeparatorOverview.ProductName.getData()!}">
100 </#if>
101 <div class="product-card--graphic-container">
102 <img class="product-card--graphic" alt="${SeparatorOverview.ProductName.getData()!}" src="${themeDisplay.pathThemeImages}/blank.png"
103 data-lazy-src-url-d="${dataImg.desktop!}"
104 data-lazy-src-url-tl="${dataImg.tablet_landscape!}"
105 data-lazy-src-url-tp="${dataImg.tablet_portrait!}"
106 data-lazy-src-url-m="${dataImg.mobile!}"/>
107 </div>
108 <div class="product-card--desc">
109 <#assign summary = .vars['reserved-article-description'].data!>
110 <#if summary?length gt 1>
111 <span class="title">${SeparatorOverview.ProductName.getData()!}</span> ${summary!}
112 <#elseif summary?length == 1>
113 <h3 class="title">${SeparatorOverview.ProductName.getData()!}</h3>
114 <#else>
115 <#assign maxlength = 150 >
116 <#assign nameLength = SeparatorOverview.ProductName.getData()?length >
117 <#assign maxlength = maxlength - nameLength >
118 <#if maxlength gte 0>
119 <span class="title">${SeparatorOverview.ProductName.getData()!}</span>
120 ${leonardo.stringEllipsis(htmlUtil.extractText(SeparatorOverview.OverviewText.getData()!), maxlength)}
121 <#else>
122 <span class="title">${SeparatorOverview.ProductName.getData()!}</span>
123 </#if>
124 </#if>
125 </div>
126 <#if url?has_content>
127 </a>
128 </#if>
129 </#if>
130
131 <#if isDarkTheme>
132 <#if hasDetailPage?? && getterUtil.getBoolean(hasDetailPage.getData()) >
133 <span class="js-link-product" style="display:none">
134 <a class="link-arrow" href="${url!}" target="${target}" title="${SeparatorOverview.ProductName.getData()!}">
135
136 <@liferay.language key="link-to-product-page"/>
137 </a>
138 </span>
139 </#if>
140 <span class="js-textModal" style="display:none">
141 ${SeparatorOverview.OverviewText.getData()!}
142 </span>
143 <#if SeparatorOverview.OverviewFileUrl??>
144 <#assign docsDownloadURL = ''>
145 <#if (layout.getGroup().getGroupId()) != (article.getGroupId())>
146 <#assign docsDownloadURL = portalUtil.getVirtualHostname (productLayout.getLayoutSet())>
147 <#if (docsDownloadURL)?has_content && (docsDownloadURL?lower_case != 'localhost')>
148 <#assign docsDownloadURL = 'https://' + docsDownloadURL >
149 <#else>
150 <#assign docsDownloadURL = ''>
151 </#if>
152 </#if>
153 <ul class="js-ul-overview" style="display:none">
154 <#list SeparatorOverview.OverviewFileUrl.getSiblings() as itemList>
155 <#assign file_info = leonardo.findFileEntryInfo(itemList.getData()) >
156 <#if itemList.OverviewFileLabel.getData()!= '' && file_info.downloadUrl != ''>
157 <li class="list-item">
158 <a href="${docsDownloadURL}${file_info.downloadUrl}" target="_blank">
159 ${itemList.OverviewFileLabel.getData()!}
160 </a>
161 </li>
162 </#if>
163 </#list>
164 </ul>
165 </#if>
166 <#if SeparatorDownloads.DownloadFileURL.getSiblings()?has_content>
167 <ul class="js-ul-download" style="display:none">
168 <#list SeparatorDownloads.DownloadFileURL.getSiblings() as cur_SeparatorDownloads_DownloadFileURL>
169 <#if cur_SeparatorDownloads_DownloadFileURL.DownloadFileLabel.getData()!= '' && cur_SeparatorDownloads_DownloadFileURL.getData() != ''>
170 <li class="list-item">
171 <a href="${cur_SeparatorDownloads_DownloadFileURL.getData()}" target="_blank">
172 ${languageUtil.format(locale, "download-x", cur_SeparatorDownloads_DownloadFileURL.DownloadFileLabel.getData(), false)}
173 </a>
174 </li>
175 </#if>
176 </#list>
177 </ul>
178 </#if>
179 </#if>
180</div>
181<!--End Module: Product Card-->
Si è verificato un errore nell'elaborarazione del modello.
The following has evaluated to null or missing:
==> SeparatorOverview [in template "20115#20151#197212" at line 35, column 35]
----
Tip: If the failing expression is known to legally refer to something that's sometimes null or missing, either specify a default value like myOptionalVar!myDefault, or use <#if myOptionalVar??>when-present<#else>when-missing</#if>. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)??
----
----
FTL stack trace ("~" means nesting-related):
- Failed at: #assign scalingDetails = {"desktop": ... [in template "20115#20151#197212" at line 33, column 1]
----
1<@leonardo.articleInfo .vars "SP-Product-complete-listing"/>
2<#assign currentGroupExpandoBridge = themeDisplay.getScopeGroup().getExpandoBridge()>
3<#assign isDarkTheme = false>
4<#if currentGroupExpandoBridge.hasAttribute("dark-theme")>
5 <#assign isDarkTheme = currentGroupExpandoBridge.getAttribute("dark-theme", false)>
6</#if>
7
8<#assign
9 journalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService")
10 articleId = .vars['reserved-article-id'].data
11 article = journalArticleLocalService.getArticle(groupId, articleId)
12 productLayout = (article.getLayout()!)
13 isProductPage = false
14 target = ((layout.getGroup().getGroupId()) != (article.getGroupId()))?then("_blank","_self")
15 productDetailURL = ''
16>
17
18<#attempt>
19 <#assign productDetailURL = portalUtil.getLayoutFriendlyURL(productLayout, themeDisplay) >
20 <#recover>
21</#attempt>
22
23<#if (layout.getGroup().getGroupId()) != (article.getGroupId())>
24 <#assign productDetailURL = portalUtil.getVirtualHostname (productLayout.getLayoutSet())>
25 <#if (productDetailURL)?has_content && (productDetailURL?lower_case != 'localhost')>
26 <#assign productDetailURL = 'https://' + productDetailURL >
27 <#else>
28 <#assign productDetailURL = ''>
29 </#if>
30 <#assign productDetailURL = productDetailURL + productLayout.getFriendlyURL()>
31</#if>
32
33<#assign scalingDetails = {
34 "desktop": {"alternateImage": {}, "key": "w_317"},
35 "tl": {"alternateImage": SeparatorOverview.OverviewImage.ImageTl!, "key": "w_317"},
36 "tp": {"alternateImage": SeparatorOverview.OverviewImage.ImageTp!, "key": "w_317"},
37 "mobile": {"alternateImage": SeparatorOverview.OverviewImage.ImageM!, "key": "w_317"}
38}>
39<#assign dataImg = leonardo.adaptImage(SeparatorOverview.OverviewImage!, scalingDetails )>
40
41<#if (layout.layoutPrototypeUuid)?has_content>
42 <#assign
43 layoutPrototypeLocalService = serviceLocator.findService("com.liferay.portal.kernel.service.LayoutPrototypeLocalService")
44 layoutPrototype = layoutPrototypeLocalService.fetchLayoutPrototypeByUuidAndCompanyId(layout.layoutPrototypeUuid, themeDisplay.getCompanyId())
45 >
46 <#if ((layoutPrototype)?has_content) && (layoutPrototype.getName(locale) == "Sheet Product (SP)")>
47 <#assign isProductPage = true>
48 </#if>
49</#if>
50<#if (productLayout)?has_content>
51 <#assign url = productDetailURL>
52</#if>
53
54<!--Start Module: Product Card-->
55<div class="product-card invisible">
56 <#if isDarkTheme>
57
58
59 <#if url?has_content>
60 <a class="product-card--wrap" href="${url!}" target="${target}" title="${SeparatorOverview.ProductName.getData()!}">
61 </#if>
62 <div class="product-card--graphic-container">
63 <img class="product-card--graphic" alt="${SeparatorOverview.ProductName.getData()!}" src="${themeDisplay.pathThemeImages}/blank.png"
64 data-lazy-src-url-d="${dataImg.desktop!}"
65 data-lazy-src-url-tl="${dataImg.tablet_landscape!}"
66 data-lazy-src-url-tp="${dataImg.tablet_portrait!}"
67 data-lazy-src-url-m="${dataImg.mobile!}"/>
68 </div>
69 <div class="product-card--desc">
70 <#assign summary = .vars['reserved-article-description'].data!>
71
72 <#assign maxlength = 160 >
73 <#assign nameLength = SeparatorOverview.ProductName.getData()?length >
74 <#assign maxlength = maxlength - nameLength >
75
76 <#if summary?length gt 1>
77 <h3 class="title">${SeparatorOverview.ProductName.getData()!}</h3>
78 <span class="product-card--desc--link summary" >
79 ${leonardo.stringEllipsis(htmlUtil.extractText(summary!), maxlength)}
80 </span>
81 <#elseif summary?length == 1>
82 <h3 class="title">${SeparatorOverview.ProductName.getData()!}</h3>
83 <#else>
84 <#if maxlength gte 0>
85 <h3 class="title">${SeparatorOverview.ProductName.getData()!}</h3>
86 <span href="${url!}" target="${target}" class="product-card--desc--link summary" >
87 ${leonardo.stringEllipsis(htmlUtil.extractText(SeparatorOverview.OverviewText.getData()!), maxlength)}
88 </span>
89 <#else>
90 <h3 class="title">${SeparatorOverview.ProductName.getData()!}</h3>
91 </#if>
92 </#if>
93 </div>
94 <#if url?has_content>
95 </a>
96 </#if>
97 <#else>
98 <#if url?has_content>
99 <a class="product-card--wrap" href="${url!}" target="${target}" title="${SeparatorOverview.ProductName.getData()!}">
100 </#if>
101 <div class="product-card--graphic-container">
102 <img class="product-card--graphic" alt="${SeparatorOverview.ProductName.getData()!}" src="${themeDisplay.pathThemeImages}/blank.png"
103 data-lazy-src-url-d="${dataImg.desktop!}"
104 data-lazy-src-url-tl="${dataImg.tablet_landscape!}"
105 data-lazy-src-url-tp="${dataImg.tablet_portrait!}"
106 data-lazy-src-url-m="${dataImg.mobile!}"/>
107 </div>
108 <div class="product-card--desc">
109 <#assign summary = .vars['reserved-article-description'].data!>
110 <#if summary?length gt 1>
111 <span class="title">${SeparatorOverview.ProductName.getData()!}</span> ${summary!}
112 <#elseif summary?length == 1>
113 <h3 class="title">${SeparatorOverview.ProductName.getData()!}</h3>
114 <#else>
115 <#assign maxlength = 150 >
116 <#assign nameLength = SeparatorOverview.ProductName.getData()?length >
117 <#assign maxlength = maxlength - nameLength >
118 <#if maxlength gte 0>
119 <span class="title">${SeparatorOverview.ProductName.getData()!}</span>
120 ${leonardo.stringEllipsis(htmlUtil.extractText(SeparatorOverview.OverviewText.getData()!), maxlength)}
121 <#else>
122 <span class="title">${SeparatorOverview.ProductName.getData()!}</span>
123 </#if>
124 </#if>
125 </div>
126 <#if url?has_content>
127 </a>
128 </#if>
129 </#if>
130
131 <#if isDarkTheme>
132 <#if hasDetailPage?? && getterUtil.getBoolean(hasDetailPage.getData()) >
133 <span class="js-link-product" style="display:none">
134 <a class="link-arrow" href="${url!}" target="${target}" title="${SeparatorOverview.ProductName.getData()!}">
135
136 <@liferay.language key="link-to-product-page"/>
137 </a>
138 </span>
139 </#if>
140 <span class="js-textModal" style="display:none">
141 ${SeparatorOverview.OverviewText.getData()!}
142 </span>
143 <#if SeparatorOverview.OverviewFileUrl??>
144 <#assign docsDownloadURL = ''>
145 <#if (layout.getGroup().getGroupId()) != (article.getGroupId())>
146 <#assign docsDownloadURL = portalUtil.getVirtualHostname (productLayout.getLayoutSet())>
147 <#if (docsDownloadURL)?has_content && (docsDownloadURL?lower_case != 'localhost')>
148 <#assign docsDownloadURL = 'https://' + docsDownloadURL >
149 <#else>
150 <#assign docsDownloadURL = ''>
151 </#if>
152 </#if>
153 <ul class="js-ul-overview" style="display:none">
154 <#list SeparatorOverview.OverviewFileUrl.getSiblings() as itemList>
155 <#assign file_info = leonardo.findFileEntryInfo(itemList.getData()) >
156 <#if itemList.OverviewFileLabel.getData()!= '' && file_info.downloadUrl != ''>
157 <li class="list-item">
158 <a href="${docsDownloadURL}${file_info.downloadUrl}" target="_blank">
159 ${itemList.OverviewFileLabel.getData()!}
160 </a>
161 </li>
162 </#if>
163 </#list>
164 </ul>
165 </#if>
166 <#if SeparatorDownloads.DownloadFileURL.getSiblings()?has_content>
167 <ul class="js-ul-download" style="display:none">
168 <#list SeparatorDownloads.DownloadFileURL.getSiblings() as cur_SeparatorDownloads_DownloadFileURL>
169 <#if cur_SeparatorDownloads_DownloadFileURL.DownloadFileLabel.getData()!= '' && cur_SeparatorDownloads_DownloadFileURL.getData() != ''>
170 <li class="list-item">
171 <a href="${cur_SeparatorDownloads_DownloadFileURL.getData()}" target="_blank">
172 ${languageUtil.format(locale, "download-x", cur_SeparatorDownloads_DownloadFileURL.DownloadFileLabel.getData(), false)}
173 </a>
174 </li>
175 </#if>
176 </#list>
177 </ul>
178 </#if>
179 </#if>
180</div>
181<!--End Module: Product Card-->
Si è verificato un errore nell'elaborarazione del modello.
The following has evaluated to null or missing:
==> SeparatorOverview [in template "20115#20151#197212" at line 35, column 35]
----
Tip: If the failing expression is known to legally refer to something that's sometimes null or missing, either specify a default value like myOptionalVar!myDefault, or use <#if myOptionalVar??>when-present<#else>when-missing</#if>. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)??
----
----
FTL stack trace ("~" means nesting-related):
- Failed at: #assign scalingDetails = {"desktop": ... [in template "20115#20151#197212" at line 33, column 1]
----
1<@leonardo.articleInfo .vars "SP-Product-complete-listing"/>
2<#assign currentGroupExpandoBridge = themeDisplay.getScopeGroup().getExpandoBridge()>
3<#assign isDarkTheme = false>
4<#if currentGroupExpandoBridge.hasAttribute("dark-theme")>
5 <#assign isDarkTheme = currentGroupExpandoBridge.getAttribute("dark-theme", false)>
6</#if>
7
8<#assign
9 journalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService")
10 articleId = .vars['reserved-article-id'].data
11 article = journalArticleLocalService.getArticle(groupId, articleId)
12 productLayout = (article.getLayout()!)
13 isProductPage = false
14 target = ((layout.getGroup().getGroupId()) != (article.getGroupId()))?then("_blank","_self")
15 productDetailURL = ''
16>
17
18<#attempt>
19 <#assign productDetailURL = portalUtil.getLayoutFriendlyURL(productLayout, themeDisplay) >
20 <#recover>
21</#attempt>
22
23<#if (layout.getGroup().getGroupId()) != (article.getGroupId())>
24 <#assign productDetailURL = portalUtil.getVirtualHostname (productLayout.getLayoutSet())>
25 <#if (productDetailURL)?has_content && (productDetailURL?lower_case != 'localhost')>
26 <#assign productDetailURL = 'https://' + productDetailURL >
27 <#else>
28 <#assign productDetailURL = ''>
29 </#if>
30 <#assign productDetailURL = productDetailURL + productLayout.getFriendlyURL()>
31</#if>
32
33<#assign scalingDetails = {
34 "desktop": {"alternateImage": {}, "key": "w_317"},
35 "tl": {"alternateImage": SeparatorOverview.OverviewImage.ImageTl!, "key": "w_317"},
36 "tp": {"alternateImage": SeparatorOverview.OverviewImage.ImageTp!, "key": "w_317"},
37 "mobile": {"alternateImage": SeparatorOverview.OverviewImage.ImageM!, "key": "w_317"}
38}>
39<#assign dataImg = leonardo.adaptImage(SeparatorOverview.OverviewImage!, scalingDetails )>
40
41<#if (layout.layoutPrototypeUuid)?has_content>
42 <#assign
43 layoutPrototypeLocalService = serviceLocator.findService("com.liferay.portal.kernel.service.LayoutPrototypeLocalService")
44 layoutPrototype = layoutPrototypeLocalService.fetchLayoutPrototypeByUuidAndCompanyId(layout.layoutPrototypeUuid, themeDisplay.getCompanyId())
45 >
46 <#if ((layoutPrototype)?has_content) && (layoutPrototype.getName(locale) == "Sheet Product (SP)")>
47 <#assign isProductPage = true>
48 </#if>
49</#if>
50<#if (productLayout)?has_content>
51 <#assign url = productDetailURL>
52</#if>
53
54<!--Start Module: Product Card-->
55<div class="product-card invisible">
56 <#if isDarkTheme>
57
58
59 <#if url?has_content>
60 <a class="product-card--wrap" href="${url!}" target="${target}" title="${SeparatorOverview.ProductName.getData()!}">
61 </#if>
62 <div class="product-card--graphic-container">
63 <img class="product-card--graphic" alt="${SeparatorOverview.ProductName.getData()!}" src="${themeDisplay.pathThemeImages}/blank.png"
64 data-lazy-src-url-d="${dataImg.desktop!}"
65 data-lazy-src-url-tl="${dataImg.tablet_landscape!}"
66 data-lazy-src-url-tp="${dataImg.tablet_portrait!}"
67 data-lazy-src-url-m="${dataImg.mobile!}"/>
68 </div>
69 <div class="product-card--desc">
70 <#assign summary = .vars['reserved-article-description'].data!>
71
72 <#assign maxlength = 160 >
73 <#assign nameLength = SeparatorOverview.ProductName.getData()?length >
74 <#assign maxlength = maxlength - nameLength >
75
76 <#if summary?length gt 1>
77 <h3 class="title">${SeparatorOverview.ProductName.getData()!}</h3>
78 <span class="product-card--desc--link summary" >
79 ${leonardo.stringEllipsis(htmlUtil.extractText(summary!), maxlength)}
80 </span>
81 <#elseif summary?length == 1>
82 <h3 class="title">${SeparatorOverview.ProductName.getData()!}</h3>
83 <#else>
84 <#if maxlength gte 0>
85 <h3 class="title">${SeparatorOverview.ProductName.getData()!}</h3>
86 <span href="${url!}" target="${target}" class="product-card--desc--link summary" >
87 ${leonardo.stringEllipsis(htmlUtil.extractText(SeparatorOverview.OverviewText.getData()!), maxlength)}
88 </span>
89 <#else>
90 <h3 class="title">${SeparatorOverview.ProductName.getData()!}</h3>
91 </#if>
92 </#if>
93 </div>
94 <#if url?has_content>
95 </a>
96 </#if>
97 <#else>
98 <#if url?has_content>
99 <a class="product-card--wrap" href="${url!}" target="${target}" title="${SeparatorOverview.ProductName.getData()!}">
100 </#if>
101 <div class="product-card--graphic-container">
102 <img class="product-card--graphic" alt="${SeparatorOverview.ProductName.getData()!}" src="${themeDisplay.pathThemeImages}/blank.png"
103 data-lazy-src-url-d="${dataImg.desktop!}"
104 data-lazy-src-url-tl="${dataImg.tablet_landscape!}"
105 data-lazy-src-url-tp="${dataImg.tablet_portrait!}"
106 data-lazy-src-url-m="${dataImg.mobile!}"/>
107 </div>
108 <div class="product-card--desc">
109 <#assign summary = .vars['reserved-article-description'].data!>
110 <#if summary?length gt 1>
111 <span class="title">${SeparatorOverview.ProductName.getData()!}</span> ${summary!}
112 <#elseif summary?length == 1>
113 <h3 class="title">${SeparatorOverview.ProductName.getData()!}</h3>
114 <#else>
115 <#assign maxlength = 150 >
116 <#assign nameLength = SeparatorOverview.ProductName.getData()?length >
117 <#assign maxlength = maxlength - nameLength >
118 <#if maxlength gte 0>
119 <span class="title">${SeparatorOverview.ProductName.getData()!}</span>
120 ${leonardo.stringEllipsis(htmlUtil.extractText(SeparatorOverview.OverviewText.getData()!), maxlength)}
121 <#else>
122 <span class="title">${SeparatorOverview.ProductName.getData()!}</span>
123 </#if>
124 </#if>
125 </div>
126 <#if url?has_content>
127 </a>
128 </#if>
129 </#if>
130
131 <#if isDarkTheme>
132 <#if hasDetailPage?? && getterUtil.getBoolean(hasDetailPage.getData()) >
133 <span class="js-link-product" style="display:none">
134 <a class="link-arrow" href="${url!}" target="${target}" title="${SeparatorOverview.ProductName.getData()!}">
135
136 <@liferay.language key="link-to-product-page"/>
137 </a>
138 </span>
139 </#if>
140 <span class="js-textModal" style="display:none">
141 ${SeparatorOverview.OverviewText.getData()!}
142 </span>
143 <#if SeparatorOverview.OverviewFileUrl??>
144 <#assign docsDownloadURL = ''>
145 <#if (layout.getGroup().getGroupId()) != (article.getGroupId())>
146 <#assign docsDownloadURL = portalUtil.getVirtualHostname (productLayout.getLayoutSet())>
147 <#if (docsDownloadURL)?has_content && (docsDownloadURL?lower_case != 'localhost')>
148 <#assign docsDownloadURL = 'https://' + docsDownloadURL >
149 <#else>
150 <#assign docsDownloadURL = ''>
151 </#if>
152 </#if>
153 <ul class="js-ul-overview" style="display:none">
154 <#list SeparatorOverview.OverviewFileUrl.getSiblings() as itemList>
155 <#assign file_info = leonardo.findFileEntryInfo(itemList.getData()) >
156 <#if itemList.OverviewFileLabel.getData()!= '' && file_info.downloadUrl != ''>
157 <li class="list-item">
158 <a href="${docsDownloadURL}${file_info.downloadUrl}" target="_blank">
159 ${itemList.OverviewFileLabel.getData()!}
160 </a>
161 </li>
162 </#if>
163 </#list>
164 </ul>
165 </#if>
166 <#if SeparatorDownloads.DownloadFileURL.getSiblings()?has_content>
167 <ul class="js-ul-download" style="display:none">
168 <#list SeparatorDownloads.DownloadFileURL.getSiblings() as cur_SeparatorDownloads_DownloadFileURL>
169 <#if cur_SeparatorDownloads_DownloadFileURL.DownloadFileLabel.getData()!= '' && cur_SeparatorDownloads_DownloadFileURL.getData() != ''>
170 <li class="list-item">
171 <a href="${cur_SeparatorDownloads_DownloadFileURL.getData()}" target="_blank">
172 ${languageUtil.format(locale, "download-x", cur_SeparatorDownloads_DownloadFileURL.DownloadFileLabel.getData(), false)}
173 </a>
174 </li>
175 </#if>
176 </#list>
177 </ul>
178 </#if>
179 </#if>
180</div>
181<!--End Module: Product Card-->
Si è verificato un errore nell'elaborarazione del modello.
The following has evaluated to null or missing:
==> SeparatorOverview [in template "20115#20151#197212" at line 35, column 35]
----
Tip: If the failing expression is known to legally refer to something that's sometimes null or missing, either specify a default value like myOptionalVar!myDefault, or use <#if myOptionalVar??>when-present<#else>when-missing</#if>. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)??
----
----
FTL stack trace ("~" means nesting-related):
- Failed at: #assign scalingDetails = {"desktop": ... [in template "20115#20151#197212" at line 33, column 1]
----
1<@leonardo.articleInfo .vars "SP-Product-complete-listing"/>
2<#assign currentGroupExpandoBridge = themeDisplay.getScopeGroup().getExpandoBridge()>
3<#assign isDarkTheme = false>
4<#if currentGroupExpandoBridge.hasAttribute("dark-theme")>
5 <#assign isDarkTheme = currentGroupExpandoBridge.getAttribute("dark-theme", false)>
6</#if>
7
8<#assign
9 journalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService")
10 articleId = .vars['reserved-article-id'].data
11 article = journalArticleLocalService.getArticle(groupId, articleId)
12 productLayout = (article.getLayout()!)
13 isProductPage = false
14 target = ((layout.getGroup().getGroupId()) != (article.getGroupId()))?then("_blank","_self")
15 productDetailURL = ''
16>
17
18<#attempt>
19 <#assign productDetailURL = portalUtil.getLayoutFriendlyURL(productLayout, themeDisplay) >
20 <#recover>
21</#attempt>
22
23<#if (layout.getGroup().getGroupId()) != (article.getGroupId())>
24 <#assign productDetailURL = portalUtil.getVirtualHostname (productLayout.getLayoutSet())>
25 <#if (productDetailURL)?has_content && (productDetailURL?lower_case != 'localhost')>
26 <#assign productDetailURL = 'https://' + productDetailURL >
27 <#else>
28 <#assign productDetailURL = ''>
29 </#if>
30 <#assign productDetailURL = productDetailURL + productLayout.getFriendlyURL()>
31</#if>
32
33<#assign scalingDetails = {
34 "desktop": {"alternateImage": {}, "key": "w_317"},
35 "tl": {"alternateImage": SeparatorOverview.OverviewImage.ImageTl!, "key": "w_317"},
36 "tp": {"alternateImage": SeparatorOverview.OverviewImage.ImageTp!, "key": "w_317"},
37 "mobile": {"alternateImage": SeparatorOverview.OverviewImage.ImageM!, "key": "w_317"}
38}>
39<#assign dataImg = leonardo.adaptImage(SeparatorOverview.OverviewImage!, scalingDetails )>
40
41<#if (layout.layoutPrototypeUuid)?has_content>
42 <#assign
43 layoutPrototypeLocalService = serviceLocator.findService("com.liferay.portal.kernel.service.LayoutPrototypeLocalService")
44 layoutPrototype = layoutPrototypeLocalService.fetchLayoutPrototypeByUuidAndCompanyId(layout.layoutPrototypeUuid, themeDisplay.getCompanyId())
45 >
46 <#if ((layoutPrototype)?has_content) && (layoutPrototype.getName(locale) == "Sheet Product (SP)")>
47 <#assign isProductPage = true>
48 </#if>
49</#if>
50<#if (productLayout)?has_content>
51 <#assign url = productDetailURL>
52</#if>
53
54<!--Start Module: Product Card-->
55<div class="product-card invisible">
56 <#if isDarkTheme>
57
58
59 <#if url?has_content>
60 <a class="product-card--wrap" href="${url!}" target="${target}" title="${SeparatorOverview.ProductName.getData()!}">
61 </#if>
62 <div class="product-card--graphic-container">
63 <img class="product-card--graphic" alt="${SeparatorOverview.ProductName.getData()!}" src="${themeDisplay.pathThemeImages}/blank.png"
64 data-lazy-src-url-d="${dataImg.desktop!}"
65 data-lazy-src-url-tl="${dataImg.tablet_landscape!}"
66 data-lazy-src-url-tp="${dataImg.tablet_portrait!}"
67 data-lazy-src-url-m="${dataImg.mobile!}"/>
68 </div>
69 <div class="product-card--desc">
70 <#assign summary = .vars['reserved-article-description'].data!>
71
72 <#assign maxlength = 160 >
73 <#assign nameLength = SeparatorOverview.ProductName.getData()?length >
74 <#assign maxlength = maxlength - nameLength >
75
76 <#if summary?length gt 1>
77 <h3 class="title">${SeparatorOverview.ProductName.getData()!}</h3>
78 <span class="product-card--desc--link summary" >
79 ${leonardo.stringEllipsis(htmlUtil.extractText(summary!), maxlength)}
80 </span>
81 <#elseif summary?length == 1>
82 <h3 class="title">${SeparatorOverview.ProductName.getData()!}</h3>
83 <#else>
84 <#if maxlength gte 0>
85 <h3 class="title">${SeparatorOverview.ProductName.getData()!}</h3>
86 <span href="${url!}" target="${target}" class="product-card--desc--link summary" >
87 ${leonardo.stringEllipsis(htmlUtil.extractText(SeparatorOverview.OverviewText.getData()!), maxlength)}
88 </span>
89 <#else>
90 <h3 class="title">${SeparatorOverview.ProductName.getData()!}</h3>
91 </#if>
92 </#if>
93 </div>
94 <#if url?has_content>
95 </a>
96 </#if>
97 <#else>
98 <#if url?has_content>
99 <a class="product-card--wrap" href="${url!}" target="${target}" title="${SeparatorOverview.ProductName.getData()!}">
100 </#if>
101 <div class="product-card--graphic-container">
102 <img class="product-card--graphic" alt="${SeparatorOverview.ProductName.getData()!}" src="${themeDisplay.pathThemeImages}/blank.png"
103 data-lazy-src-url-d="${dataImg.desktop!}"
104 data-lazy-src-url-tl="${dataImg.tablet_landscape!}"
105 data-lazy-src-url-tp="${dataImg.tablet_portrait!}"
106 data-lazy-src-url-m="${dataImg.mobile!}"/>
107 </div>
108 <div class="product-card--desc">
109 <#assign summary = .vars['reserved-article-description'].data!>
110 <#if summary?length gt 1>
111 <span class="title">${SeparatorOverview.ProductName.getData()!}</span> ${summary!}
112 <#elseif summary?length == 1>
113 <h3 class="title">${SeparatorOverview.ProductName.getData()!}</h3>
114 <#else>
115 <#assign maxlength = 150 >
116 <#assign nameLength = SeparatorOverview.ProductName.getData()?length >
117 <#assign maxlength = maxlength - nameLength >
118 <#if maxlength gte 0>
119 <span class="title">${SeparatorOverview.ProductName.getData()!}</span>
120 ${leonardo.stringEllipsis(htmlUtil.extractText(SeparatorOverview.OverviewText.getData()!), maxlength)}
121 <#else>
122 <span class="title">${SeparatorOverview.ProductName.getData()!}</span>
123 </#if>
124 </#if>
125 </div>
126 <#if url?has_content>
127 </a>
128 </#if>
129 </#if>
130
131 <#if isDarkTheme>
132 <#if hasDetailPage?? && getterUtil.getBoolean(hasDetailPage.getData()) >
133 <span class="js-link-product" style="display:none">
134 <a class="link-arrow" href="${url!}" target="${target}" title="${SeparatorOverview.ProductName.getData()!}">
135
136 <@liferay.language key="link-to-product-page"/>
137 </a>
138 </span>
139 </#if>
140 <span class="js-textModal" style="display:none">
141 ${SeparatorOverview.OverviewText.getData()!}
142 </span>
143 <#if SeparatorOverview.OverviewFileUrl??>
144 <#assign docsDownloadURL = ''>
145 <#if (layout.getGroup().getGroupId()) != (article.getGroupId())>
146 <#assign docsDownloadURL = portalUtil.getVirtualHostname (productLayout.getLayoutSet())>
147 <#if (docsDownloadURL)?has_content && (docsDownloadURL?lower_case != 'localhost')>
148 <#assign docsDownloadURL = 'https://' + docsDownloadURL >
149 <#else>
150 <#assign docsDownloadURL = ''>
151 </#if>
152 </#if>
153 <ul class="js-ul-overview" style="display:none">
154 <#list SeparatorOverview.OverviewFileUrl.getSiblings() as itemList>
155 <#assign file_info = leonardo.findFileEntryInfo(itemList.getData()) >
156 <#if itemList.OverviewFileLabel.getData()!= '' && file_info.downloadUrl != ''>
157 <li class="list-item">
158 <a href="${docsDownloadURL}${file_info.downloadUrl}" target="_blank">
159 ${itemList.OverviewFileLabel.getData()!}
160 </a>
161 </li>
162 </#if>
163 </#list>
164 </ul>
165 </#if>
166 <#if SeparatorDownloads.DownloadFileURL.getSiblings()?has_content>
167 <ul class="js-ul-download" style="display:none">
168 <#list SeparatorDownloads.DownloadFileURL.getSiblings() as cur_SeparatorDownloads_DownloadFileURL>
169 <#if cur_SeparatorDownloads_DownloadFileURL.DownloadFileLabel.getData()!= '' && cur_SeparatorDownloads_DownloadFileURL.getData() != ''>
170 <li class="list-item">
171 <a href="${cur_SeparatorDownloads_DownloadFileURL.getData()}" target="_blank">
172 ${languageUtil.format(locale, "download-x", cur_SeparatorDownloads_DownloadFileURL.DownloadFileLabel.getData(), false)}
173 </a>
174 </li>
175 </#if>
176 </#list>
177 </ul>
178 </#if>
179 </#if>
180</div>
181<!--End Module: Product Card-->
Si è verificato un errore nell'elaborarazione del modello.
The following has evaluated to null or missing:
==> htmlUtil.extractText [in template "20115#20151#1358170" at line 120, column 138]
----
Tip: It's the step after the last dot that caused this error, not those before it.
----
Tip: If the failing expression is known to legally refer to something that's sometimes null or missing, either specify a default value like myOptionalVar!myDefault, or use <#if myOptionalVar??>when-present<#else>when-missing</#if>. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)??
----
----
FTL stack trace ("~" means nesting-related):
- Failed at: ${leonardo.stringEllipsis(htmlUtil.ex... [in template "20115#20151#1358170" at line 120, column 112]
----
1<#-- init declare -->
2<@leonardo.articleInfo .vars "SP-Product-base-Listing-catalogo"/>
3<#assign currentGroupExpandoBridge = themeDisplay.getScopeGroup().getExpandoBridge()>
4<#assign isDarkTheme = false>
5<#if currentGroupExpandoBridge.hasAttribute("dark-theme")>
6 <#assign isDarkTheme = currentGroupExpandoBridge.getAttribute("dark-theme", false)>
7</#if>
8
9<#assign
10 journalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService")
11 articleId = .vars['reserved-article-id'].data
12 article = journalArticleLocalService.getArticle(groupId, articleId)
13 productLayout = (article.getLayout()!)
14 isProductPage = false
15 target = ((layout.getGroup().getGroupId()) != (article.getGroupId()))?then("_blank","_self")
16 productDetailURL = ''
17>
18
19<#attempt>
20 <#assign productDetailURL = portalUtil.getLayoutFriendlyURL(productLayout, themeDisplay) >
21<#recover>
22</#attempt>
23
24<#if (layout.getGroup().getGroupId()) != (article.getGroupId())>
25 <#assign productDetailURL = portalUtil.getVirtualHostname (productLayout.getLayoutSet())>
26
27 <#if (productDetailURL)?has_content && (productDetailURL?lower_case != 'localhost')>
28 <#assign productDetailURL = 'https://' + productDetailURL >
29 <#else>
30 <#assign productDetailURL = ''>
31 </#if>
32 <#assign productDetailURL = productDetailURL + productLayout.getFriendlyURL()>
33</#if>
34
35<#if (layout.layoutPrototypeUuid)?has_content>
36 <#assign
37 layoutPrototypeLocalService = serviceLocator.findService("com.liferay.portal.kernel.service.LayoutPrototypeLocalService")
38 layoutPrototype = layoutPrototypeLocalService.fetchLayoutPrototypeByUuidAndCompanyId(layout.layoutPrototypeUuid, themeDisplay.getCompanyId())
39 >
40 <#if ((layoutPrototype)?has_content) && (layoutPrototype.getName(locale) == "Sheet Product (SP)")>
41 <#assign isProductPage = true>
42 </#if>
43</#if>
44<#if (SeparatorOverview.OverviewImage)?has_content >
45
46 <#assign scalingDetails = {
47 "desktop": {"alternateImage": {}, "key": "w_317"},
48 "tl": {"alternateImage": SeparatorOverview.OverviewImage.ImageTl!, "key": "w_317"},
49 "tp": {"alternateImage": SeparatorOverview.OverviewImage.ImageTp!, "key": "w_317"},
50 "mobile": {"alternateImage": SeparatorOverview.OverviewImage.ImageM!, "key": "w_317"}
51 }>
52 <#assign dataImg = leonardo.adaptImage(SeparatorOverview.OverviewImage!, scalingDetails )>
53 <#if (productLayout)?has_content>
54 <#assign url = productDetailURL>
55 </#if>
56 <!--Start Module: Product Card-->
57 <div class="product-card invisible">
58 <#if isDarkTheme>
59
60 <#if url?has_content>
61 <a class="product-card--wrap" href="${url!}" target="${target}" title="${SeparatorOverview.ProductName.getData()!}">
62 </#if>
63 <div class="product-card--graphic-container">
64 <img class="product-card--graphic" alt="${SeparatorOverview.ProductName.getData()!}" src="${themeDisplay.pathThemeImages}/blank.png"
65 data-lazy-src-url-d="${dataImg.desktop!}"
66 data-lazy-src-url-tl="${dataImg.tablet_landscape!}"
67 data-lazy-src-url-tp="${dataImg.tablet_portrait!}"
68 data-lazy-src-url-m="${dataImg.mobile!}"/>
69 </div>
70 <div class="product-card--desc">
71 <#assign summary = .vars['reserved-article-description'].data!>
72 <#assign maxlength = 160 >
73 <#assign nameLength = SeparatorOverview.ProductName.getData()?length >
74 <#assign maxlength = maxlength - nameLength >
75
76 <#if summary?length gt 1>
77 <h3 class="title">${SeparatorOverview.ProductName.getData()!}</h3>
78 <span class="product-card--desc--link summary" >
79 ${leonardo.stringEllipsis(htmlUtil.extractText(summary!), maxlength)}
80 </span>
81 <#elseif summary?length == 1>
82 <h3 class="title">${SeparatorOverview.ProductName.getData()!}</h3>
83 <#else>
84 <#if maxlength gte 0>
85 <h3 class="title">${SeparatorOverview.ProductName.getData()!}</h3>
86 <span href="${url!}" target="${target}" class="product-card--desc--link summary">
87 ${leonardo.stringEllipsis(htmlUtil.extractText(SeparatorOverview.OverviewText.getData()!), maxlength)}
88 </span>
89
90 <#else>
91 <h3 class="title">${SeparatorOverview.ProductName.getData()!}</h3>
92 </#if>
93 </#if>
94 </div>
95 <#if url?has_content>
96 </a>
97 </#if>
98 <#else>
99 <#if url?has_content>
100 <a class="product-card--wrap" href="${url!}" target="${target}" title="${SeparatorOverview.ProductName.getData()!}">
101 </#if>
102 <div class="product-card--graphic-container">
103 <img class="product-card--graphic" alt="${SeparatorOverview.ProductName.getData()!}" src="${themeDisplay.pathThemeImages}/blank.png"
104 data-lazy-src-url-d="${dataImg.desktop!}"
105 data-lazy-src-url-tl="${dataImg.tablet_landscape!}"
106 data-lazy-src-url-tp="${dataImg.tablet_portrait!}"
107 data-lazy-src-url-m="${dataImg.mobile!}"/>
108 </div>
109 <div class="product-card--desc">
110 <#assign summary = .vars['reserved-article-description'].data!>
111 <#if summary?length gt 1>
112 <span class="title">${SeparatorOverview.ProductName.getData()!}</span> ${summary!}
113 <#elseif summary?length == 1>
114 <span class="title">${SeparatorOverview.ProductName.getData()!}</span>
115 <#else>
116 <#assign maxlength = 150 >
117 <#assign nameLength = SeparatorOverview.ProductName.getData()?length >
118 <#assign maxlength = maxlength - nameLength >
119 <#if maxlength gte 0>
120 <span class="title">${SeparatorOverview.ProductName.getData()!}</span> ${leonardo.stringEllipsis(htmlUtil.extractText(SeparatorOverview.OverviewText.getData()!), maxlength)}
121 <#else>
122 <span class="title">${SeparatorOverview.ProductName.getData()!}</span>
123 </#if>
124 </#if>
125 </div>
126 <#if url?has_content>
127 </a>
128 </#if>
129 </#if>
130 <#if isDarkTheme>
131 <#if hasDetailPage?? && getterUtil.getBoolean(hasDetailPage.getData()) >
132 <span class="js-link-product" style="display:none">
133 <a class="link-arrow" href="${url!}" target="${target}" title="${SeparatorOverview.ProductName.getData()!}">
134
135 <@liferay.language key="link-to-product-page"/>
136 </a>
137 </span>
138 </#if>
139 <span class="js-textModal" style="display:none">
140 ${SeparatorOverview.OverviewText.getData()!}
141 </span>
142
143 <#if SeparatorOverview.OverviewFileUrl??>
144 <#assign docsDownloadURL = ''>
145 <#if (layout.getGroup().getGroupId()) != (article.getGroupId())>
146 <#assign docsDownloadURL = portalUtil.getVirtualHostname (productLayout.getLayoutSet())>
147 <#if (docsDownloadURL)?has_content && (docsDownloadURL?lower_case != 'localhost')>
148 <#assign docsDownloadURL = 'https://' + docsDownloadURL >
149 <#else>
150 <#assign docsDownloadURL = ''>
151 </#if>
152 </#if>
153 <ul class="js-ul-overview" style="display:none;">
154 <#list SeparatorOverview.OverviewFileUrl.getSiblings() as itemList>
155 <#assign file_info = leonardo.findFileEntryInfo(itemList.getData()) >
156 <#if itemList.OverviewFileLabel.getData()!= '' && file_info.downloadUrl !=''>
157 <li class="list-item">
158 <a href="${docsDownloadURL}${file_info.downloadUrl}" target="_blank">
159 ${itemList.OverviewFileLabel.getData()!}
160 </a>
161 </li>
162 </#if>
163 </#list>
164 </ul>
165 </#if>
166 </#if>
167 </div>
168
169 <!--End Module: Product Card-->
170
171<#else>
172 <!-- Missing Product Image -->
173</#if>
Si è verificato un errore nell'elaborarazione del modello.
The following has evaluated to null or missing:
==> htmlUtil.extractText [in template "20115#20151#1358170" at line 120, column 138]
----
Tip: It's the step after the last dot that caused this error, not those before it.
----
Tip: If the failing expression is known to legally refer to something that's sometimes null or missing, either specify a default value like myOptionalVar!myDefault, or use <#if myOptionalVar??>when-present<#else>when-missing</#if>. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)??
----
----
FTL stack trace ("~" means nesting-related):
- Failed at: ${leonardo.stringEllipsis(htmlUtil.ex... [in template "20115#20151#1358170" at line 120, column 112]
----
1<#-- init declare -->
2<@leonardo.articleInfo .vars "SP-Product-base-Listing-catalogo"/>
3<#assign currentGroupExpandoBridge = themeDisplay.getScopeGroup().getExpandoBridge()>
4<#assign isDarkTheme = false>
5<#if currentGroupExpandoBridge.hasAttribute("dark-theme")>
6 <#assign isDarkTheme = currentGroupExpandoBridge.getAttribute("dark-theme", false)>
7</#if>
8
9<#assign
10 journalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService")
11 articleId = .vars['reserved-article-id'].data
12 article = journalArticleLocalService.getArticle(groupId, articleId)
13 productLayout = (article.getLayout()!)
14 isProductPage = false
15 target = ((layout.getGroup().getGroupId()) != (article.getGroupId()))?then("_blank","_self")
16 productDetailURL = ''
17>
18
19<#attempt>
20 <#assign productDetailURL = portalUtil.getLayoutFriendlyURL(productLayout, themeDisplay) >
21<#recover>
22</#attempt>
23
24<#if (layout.getGroup().getGroupId()) != (article.getGroupId())>
25 <#assign productDetailURL = portalUtil.getVirtualHostname (productLayout.getLayoutSet())>
26
27 <#if (productDetailURL)?has_content && (productDetailURL?lower_case != 'localhost')>
28 <#assign productDetailURL = 'https://' + productDetailURL >
29 <#else>
30 <#assign productDetailURL = ''>
31 </#if>
32 <#assign productDetailURL = productDetailURL + productLayout.getFriendlyURL()>
33</#if>
34
35<#if (layout.layoutPrototypeUuid)?has_content>
36 <#assign
37 layoutPrototypeLocalService = serviceLocator.findService("com.liferay.portal.kernel.service.LayoutPrototypeLocalService")
38 layoutPrototype = layoutPrototypeLocalService.fetchLayoutPrototypeByUuidAndCompanyId(layout.layoutPrototypeUuid, themeDisplay.getCompanyId())
39 >
40 <#if ((layoutPrototype)?has_content) && (layoutPrototype.getName(locale) == "Sheet Product (SP)")>
41 <#assign isProductPage = true>
42 </#if>
43</#if>
44<#if (SeparatorOverview.OverviewImage)?has_content >
45
46 <#assign scalingDetails = {
47 "desktop": {"alternateImage": {}, "key": "w_317"},
48 "tl": {"alternateImage": SeparatorOverview.OverviewImage.ImageTl!, "key": "w_317"},
49 "tp": {"alternateImage": SeparatorOverview.OverviewImage.ImageTp!, "key": "w_317"},
50 "mobile": {"alternateImage": SeparatorOverview.OverviewImage.ImageM!, "key": "w_317"}
51 }>
52 <#assign dataImg = leonardo.adaptImage(SeparatorOverview.OverviewImage!, scalingDetails )>
53 <#if (productLayout)?has_content>
54 <#assign url = productDetailURL>
55 </#if>
56 <!--Start Module: Product Card-->
57 <div class="product-card invisible">
58 <#if isDarkTheme>
59
60 <#if url?has_content>
61 <a class="product-card--wrap" href="${url!}" target="${target}" title="${SeparatorOverview.ProductName.getData()!}">
62 </#if>
63 <div class="product-card--graphic-container">
64 <img class="product-card--graphic" alt="${SeparatorOverview.ProductName.getData()!}" src="${themeDisplay.pathThemeImages}/blank.png"
65 data-lazy-src-url-d="${dataImg.desktop!}"
66 data-lazy-src-url-tl="${dataImg.tablet_landscape!}"
67 data-lazy-src-url-tp="${dataImg.tablet_portrait!}"
68 data-lazy-src-url-m="${dataImg.mobile!}"/>
69 </div>
70 <div class="product-card--desc">
71 <#assign summary = .vars['reserved-article-description'].data!>
72 <#assign maxlength = 160 >
73 <#assign nameLength = SeparatorOverview.ProductName.getData()?length >
74 <#assign maxlength = maxlength - nameLength >
75
76 <#if summary?length gt 1>
77 <h3 class="title">${SeparatorOverview.ProductName.getData()!}</h3>
78 <span class="product-card--desc--link summary" >
79 ${leonardo.stringEllipsis(htmlUtil.extractText(summary!), maxlength)}
80 </span>
81 <#elseif summary?length == 1>
82 <h3 class="title">${SeparatorOverview.ProductName.getData()!}</h3>
83 <#else>
84 <#if maxlength gte 0>
85 <h3 class="title">${SeparatorOverview.ProductName.getData()!}</h3>
86 <span href="${url!}" target="${target}" class="product-card--desc--link summary">
87 ${leonardo.stringEllipsis(htmlUtil.extractText(SeparatorOverview.OverviewText.getData()!), maxlength)}
88 </span>
89
90 <#else>
91 <h3 class="title">${SeparatorOverview.ProductName.getData()!}</h3>
92 </#if>
93 </#if>
94 </div>
95 <#if url?has_content>
96 </a>
97 </#if>
98 <#else>
99 <#if url?has_content>
100 <a class="product-card--wrap" href="${url!}" target="${target}" title="${SeparatorOverview.ProductName.getData()!}">
101 </#if>
102 <div class="product-card--graphic-container">
103 <img class="product-card--graphic" alt="${SeparatorOverview.ProductName.getData()!}" src="${themeDisplay.pathThemeImages}/blank.png"
104 data-lazy-src-url-d="${dataImg.desktop!}"
105 data-lazy-src-url-tl="${dataImg.tablet_landscape!}"
106 data-lazy-src-url-tp="${dataImg.tablet_portrait!}"
107 data-lazy-src-url-m="${dataImg.mobile!}"/>
108 </div>
109 <div class="product-card--desc">
110 <#assign summary = .vars['reserved-article-description'].data!>
111 <#if summary?length gt 1>
112 <span class="title">${SeparatorOverview.ProductName.getData()!}</span> ${summary!}
113 <#elseif summary?length == 1>
114 <span class="title">${SeparatorOverview.ProductName.getData()!}</span>
115 <#else>
116 <#assign maxlength = 150 >
117 <#assign nameLength = SeparatorOverview.ProductName.getData()?length >
118 <#assign maxlength = maxlength - nameLength >
119 <#if maxlength gte 0>
120 <span class="title">${SeparatorOverview.ProductName.getData()!}</span> ${leonardo.stringEllipsis(htmlUtil.extractText(SeparatorOverview.OverviewText.getData()!), maxlength)}
121 <#else>
122 <span class="title">${SeparatorOverview.ProductName.getData()!}</span>
123 </#if>
124 </#if>
125 </div>
126 <#if url?has_content>
127 </a>
128 </#if>
129 </#if>
130 <#if isDarkTheme>
131 <#if hasDetailPage?? && getterUtil.getBoolean(hasDetailPage.getData()) >
132 <span class="js-link-product" style="display:none">
133 <a class="link-arrow" href="${url!}" target="${target}" title="${SeparatorOverview.ProductName.getData()!}">
134
135 <@liferay.language key="link-to-product-page"/>
136 </a>
137 </span>
138 </#if>
139 <span class="js-textModal" style="display:none">
140 ${SeparatorOverview.OverviewText.getData()!}
141 </span>
142
143 <#if SeparatorOverview.OverviewFileUrl??>
144 <#assign docsDownloadURL = ''>
145 <#if (layout.getGroup().getGroupId()) != (article.getGroupId())>
146 <#assign docsDownloadURL = portalUtil.getVirtualHostname (productLayout.getLayoutSet())>
147 <#if (docsDownloadURL)?has_content && (docsDownloadURL?lower_case != 'localhost')>
148 <#assign docsDownloadURL = 'https://' + docsDownloadURL >
149 <#else>
150 <#assign docsDownloadURL = ''>
151 </#if>
152 </#if>
153 <ul class="js-ul-overview" style="display:none;">
154 <#list SeparatorOverview.OverviewFileUrl.getSiblings() as itemList>
155 <#assign file_info = leonardo.findFileEntryInfo(itemList.getData()) >
156 <#if itemList.OverviewFileLabel.getData()!= '' && file_info.downloadUrl !=''>
157 <li class="list-item">
158 <a href="${docsDownloadURL}${file_info.downloadUrl}" target="_blank">
159 ${itemList.OverviewFileLabel.getData()!}
160 </a>
161 </li>
162 </#if>
163 </#list>
164 </ul>
165 </#if>
166 </#if>
167 </div>
168
169 <!--End Module: Product Card-->
170
171<#else>
172 <!-- Missing Product Image -->
173</#if>
Si è verificato un errore nell'elaborarazione del modello.
The following has evaluated to null or missing:
==> SeparatorOverview [in template "20115#20151#197212" at line 35, column 35]
----
Tip: If the failing expression is known to legally refer to something that's sometimes null or missing, either specify a default value like myOptionalVar!myDefault, or use <#if myOptionalVar??>when-present<#else>when-missing</#if>. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)??
----
----
FTL stack trace ("~" means nesting-related):
- Failed at: #assign scalingDetails = {"desktop": ... [in template "20115#20151#197212" at line 33, column 1]
----
1<@leonardo.articleInfo .vars "SP-Product-complete-listing"/>
2<#assign currentGroupExpandoBridge = themeDisplay.getScopeGroup().getExpandoBridge()>
3<#assign isDarkTheme = false>
4<#if currentGroupExpandoBridge.hasAttribute("dark-theme")>
5 <#assign isDarkTheme = currentGroupExpandoBridge.getAttribute("dark-theme", false)>
6</#if>
7
8<#assign
9 journalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService")
10 articleId = .vars['reserved-article-id'].data
11 article = journalArticleLocalService.getArticle(groupId, articleId)
12 productLayout = (article.getLayout()!)
13 isProductPage = false
14 target = ((layout.getGroup().getGroupId()) != (article.getGroupId()))?then("_blank","_self")
15 productDetailURL = ''
16>
17
18<#attempt>
19 <#assign productDetailURL = portalUtil.getLayoutFriendlyURL(productLayout, themeDisplay) >
20 <#recover>
21</#attempt>
22
23<#if (layout.getGroup().getGroupId()) != (article.getGroupId())>
24 <#assign productDetailURL = portalUtil.getVirtualHostname (productLayout.getLayoutSet())>
25 <#if (productDetailURL)?has_content && (productDetailURL?lower_case != 'localhost')>
26 <#assign productDetailURL = 'https://' + productDetailURL >
27 <#else>
28 <#assign productDetailURL = ''>
29 </#if>
30 <#assign productDetailURL = productDetailURL + productLayout.getFriendlyURL()>
31</#if>
32
33<#assign scalingDetails = {
34 "desktop": {"alternateImage": {}, "key": "w_317"},
35 "tl": {"alternateImage": SeparatorOverview.OverviewImage.ImageTl!, "key": "w_317"},
36 "tp": {"alternateImage": SeparatorOverview.OverviewImage.ImageTp!, "key": "w_317"},
37 "mobile": {"alternateImage": SeparatorOverview.OverviewImage.ImageM!, "key": "w_317"}
38}>
39<#assign dataImg = leonardo.adaptImage(SeparatorOverview.OverviewImage!, scalingDetails )>
40
41<#if (layout.layoutPrototypeUuid)?has_content>
42 <#assign
43 layoutPrototypeLocalService = serviceLocator.findService("com.liferay.portal.kernel.service.LayoutPrototypeLocalService")
44 layoutPrototype = layoutPrototypeLocalService.fetchLayoutPrototypeByUuidAndCompanyId(layout.layoutPrototypeUuid, themeDisplay.getCompanyId())
45 >
46 <#if ((layoutPrototype)?has_content) && (layoutPrototype.getName(locale) == "Sheet Product (SP)")>
47 <#assign isProductPage = true>
48 </#if>
49</#if>
50<#if (productLayout)?has_content>
51 <#assign url = productDetailURL>
52</#if>
53
54<!--Start Module: Product Card-->
55<div class="product-card invisible">
56 <#if isDarkTheme>
57
58
59 <#if url?has_content>
60 <a class="product-card--wrap" href="${url!}" target="${target}" title="${SeparatorOverview.ProductName.getData()!}">
61 </#if>
62 <div class="product-card--graphic-container">
63 <img class="product-card--graphic" alt="${SeparatorOverview.ProductName.getData()!}" src="${themeDisplay.pathThemeImages}/blank.png"
64 data-lazy-src-url-d="${dataImg.desktop!}"
65 data-lazy-src-url-tl="${dataImg.tablet_landscape!}"
66 data-lazy-src-url-tp="${dataImg.tablet_portrait!}"
67 data-lazy-src-url-m="${dataImg.mobile!}"/>
68 </div>
69 <div class="product-card--desc">
70 <#assign summary = .vars['reserved-article-description'].data!>
71
72 <#assign maxlength = 160 >
73 <#assign nameLength = SeparatorOverview.ProductName.getData()?length >
74 <#assign maxlength = maxlength - nameLength >
75
76 <#if summary?length gt 1>
77 <h3 class="title">${SeparatorOverview.ProductName.getData()!}</h3>
78 <span class="product-card--desc--link summary" >
79 ${leonardo.stringEllipsis(htmlUtil.extractText(summary!), maxlength)}
80 </span>
81 <#elseif summary?length == 1>
82 <h3 class="title">${SeparatorOverview.ProductName.getData()!}</h3>
83 <#else>
84 <#if maxlength gte 0>
85 <h3 class="title">${SeparatorOverview.ProductName.getData()!}</h3>
86 <span href="${url!}" target="${target}" class="product-card--desc--link summary" >
87 ${leonardo.stringEllipsis(htmlUtil.extractText(SeparatorOverview.OverviewText.getData()!), maxlength)}
88 </span>
89 <#else>
90 <h3 class="title">${SeparatorOverview.ProductName.getData()!}</h3>
91 </#if>
92 </#if>
93 </div>
94 <#if url?has_content>
95 </a>
96 </#if>
97 <#else>
98 <#if url?has_content>
99 <a class="product-card--wrap" href="${url!}" target="${target}" title="${SeparatorOverview.ProductName.getData()!}">
100 </#if>
101 <div class="product-card--graphic-container">
102 <img class="product-card--graphic" alt="${SeparatorOverview.ProductName.getData()!}" src="${themeDisplay.pathThemeImages}/blank.png"
103 data-lazy-src-url-d="${dataImg.desktop!}"
104 data-lazy-src-url-tl="${dataImg.tablet_landscape!}"
105 data-lazy-src-url-tp="${dataImg.tablet_portrait!}"
106 data-lazy-src-url-m="${dataImg.mobile!}"/>
107 </div>
108 <div class="product-card--desc">
109 <#assign summary = .vars['reserved-article-description'].data!>
110 <#if summary?length gt 1>
111 <span class="title">${SeparatorOverview.ProductName.getData()!}</span> ${summary!}
112 <#elseif summary?length == 1>
113 <h3 class="title">${SeparatorOverview.ProductName.getData()!}</h3>
114 <#else>
115 <#assign maxlength = 150 >
116 <#assign nameLength = SeparatorOverview.ProductName.getData()?length >
117 <#assign maxlength = maxlength - nameLength >
118 <#if maxlength gte 0>
119 <span class="title">${SeparatorOverview.ProductName.getData()!}</span>
120 ${leonardo.stringEllipsis(htmlUtil.extractText(SeparatorOverview.OverviewText.getData()!), maxlength)}
121 <#else>
122 <span class="title">${SeparatorOverview.ProductName.getData()!}</span>
123 </#if>
124 </#if>
125 </div>
126 <#if url?has_content>
127 </a>
128 </#if>
129 </#if>
130
131 <#if isDarkTheme>
132 <#if hasDetailPage?? && getterUtil.getBoolean(hasDetailPage.getData()) >
133 <span class="js-link-product" style="display:none">
134 <a class="link-arrow" href="${url!}" target="${target}" title="${SeparatorOverview.ProductName.getData()!}">
135
136 <@liferay.language key="link-to-product-page"/>
137 </a>
138 </span>
139 </#if>
140 <span class="js-textModal" style="display:none">
141 ${SeparatorOverview.OverviewText.getData()!}
142 </span>
143 <#if SeparatorOverview.OverviewFileUrl??>
144 <#assign docsDownloadURL = ''>
145 <#if (layout.getGroup().getGroupId()) != (article.getGroupId())>
146 <#assign docsDownloadURL = portalUtil.getVirtualHostname (productLayout.getLayoutSet())>
147 <#if (docsDownloadURL)?has_content && (docsDownloadURL?lower_case != 'localhost')>
148 <#assign docsDownloadURL = 'https://' + docsDownloadURL >
149 <#else>
150 <#assign docsDownloadURL = ''>
151 </#if>
152 </#if>
153 <ul class="js-ul-overview" style="display:none">
154 <#list SeparatorOverview.OverviewFileUrl.getSiblings() as itemList>
155 <#assign file_info = leonardo.findFileEntryInfo(itemList.getData()) >
156 <#if itemList.OverviewFileLabel.getData()!= '' && file_info.downloadUrl != ''>
157 <li class="list-item">
158 <a href="${docsDownloadURL}${file_info.downloadUrl}" target="_blank">
159 ${itemList.OverviewFileLabel.getData()!}
160 </a>
161 </li>
162 </#if>
163 </#list>
164 </ul>
165 </#if>
166 <#if SeparatorDownloads.DownloadFileURL.getSiblings()?has_content>
167 <ul class="js-ul-download" style="display:none">
168 <#list SeparatorDownloads.DownloadFileURL.getSiblings() as cur_SeparatorDownloads_DownloadFileURL>
169 <#if cur_SeparatorDownloads_DownloadFileURL.DownloadFileLabel.getData()!= '' && cur_SeparatorDownloads_DownloadFileURL.getData() != ''>
170 <li class="list-item">
171 <a href="${cur_SeparatorDownloads_DownloadFileURL.getData()}" target="_blank">
172 ${languageUtil.format(locale, "download-x", cur_SeparatorDownloads_DownloadFileURL.DownloadFileLabel.getData(), false)}
173 </a>
174 </li>
175 </#if>
176 </#list>
177 </ul>
178 </#if>
179 </#if>
180</div>
181<!--End Module: Product Card-->
Si è verificato un errore nell'elaborarazione del modello.
The following has evaluated to null or missing:
==> htmlUtil.extractText [in template "20115#20151#1358170" at line 120, column 138]
----
Tip: It's the step after the last dot that caused this error, not those before it.
----
Tip: If the failing expression is known to legally refer to something that's sometimes null or missing, either specify a default value like myOptionalVar!myDefault, or use <#if myOptionalVar??>when-present<#else>when-missing</#if>. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)??
----
----
FTL stack trace ("~" means nesting-related):
- Failed at: ${leonardo.stringEllipsis(htmlUtil.ex... [in template "20115#20151#1358170" at line 120, column 112]
----
1<#-- init declare -->
2<@leonardo.articleInfo .vars "SP-Product-base-Listing-catalogo"/>
3<#assign currentGroupExpandoBridge = themeDisplay.getScopeGroup().getExpandoBridge()>
4<#assign isDarkTheme = false>
5<#if currentGroupExpandoBridge.hasAttribute("dark-theme")>
6 <#assign isDarkTheme = currentGroupExpandoBridge.getAttribute("dark-theme", false)>
7</#if>
8
9<#assign
10 journalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService")
11 articleId = .vars['reserved-article-id'].data
12 article = journalArticleLocalService.getArticle(groupId, articleId)
13 productLayout = (article.getLayout()!)
14 isProductPage = false
15 target = ((layout.getGroup().getGroupId()) != (article.getGroupId()))?then("_blank","_self")
16 productDetailURL = ''
17>
18
19<#attempt>
20 <#assign productDetailURL = portalUtil.getLayoutFriendlyURL(productLayout, themeDisplay) >
21<#recover>
22</#attempt>
23
24<#if (layout.getGroup().getGroupId()) != (article.getGroupId())>
25 <#assign productDetailURL = portalUtil.getVirtualHostname (productLayout.getLayoutSet())>
26
27 <#if (productDetailURL)?has_content && (productDetailURL?lower_case != 'localhost')>
28 <#assign productDetailURL = 'https://' + productDetailURL >
29 <#else>
30 <#assign productDetailURL = ''>
31 </#if>
32 <#assign productDetailURL = productDetailURL + productLayout.getFriendlyURL()>
33</#if>
34
35<#if (layout.layoutPrototypeUuid)?has_content>
36 <#assign
37 layoutPrototypeLocalService = serviceLocator.findService("com.liferay.portal.kernel.service.LayoutPrototypeLocalService")
38 layoutPrototype = layoutPrototypeLocalService.fetchLayoutPrototypeByUuidAndCompanyId(layout.layoutPrototypeUuid, themeDisplay.getCompanyId())
39 >
40 <#if ((layoutPrototype)?has_content) && (layoutPrototype.getName(locale) == "Sheet Product (SP)")>
41 <#assign isProductPage = true>
42 </#if>
43</#if>
44<#if (SeparatorOverview.OverviewImage)?has_content >
45
46 <#assign scalingDetails = {
47 "desktop": {"alternateImage": {}, "key": "w_317"},
48 "tl": {"alternateImage": SeparatorOverview.OverviewImage.ImageTl!, "key": "w_317"},
49 "tp": {"alternateImage": SeparatorOverview.OverviewImage.ImageTp!, "key": "w_317"},
50 "mobile": {"alternateImage": SeparatorOverview.OverviewImage.ImageM!, "key": "w_317"}
51 }>
52 <#assign dataImg = leonardo.adaptImage(SeparatorOverview.OverviewImage!, scalingDetails )>
53 <#if (productLayout)?has_content>
54 <#assign url = productDetailURL>
55 </#if>
56 <!--Start Module: Product Card-->
57 <div class="product-card invisible">
58 <#if isDarkTheme>
59
60 <#if url?has_content>
61 <a class="product-card--wrap" href="${url!}" target="${target}" title="${SeparatorOverview.ProductName.getData()!}">
62 </#if>
63 <div class="product-card--graphic-container">
64 <img class="product-card--graphic" alt="${SeparatorOverview.ProductName.getData()!}" src="${themeDisplay.pathThemeImages}/blank.png"
65 data-lazy-src-url-d="${dataImg.desktop!}"
66 data-lazy-src-url-tl="${dataImg.tablet_landscape!}"
67 data-lazy-src-url-tp="${dataImg.tablet_portrait!}"
68 data-lazy-src-url-m="${dataImg.mobile!}"/>
69 </div>
70 <div class="product-card--desc">
71 <#assign summary = .vars['reserved-article-description'].data!>
72 <#assign maxlength = 160 >
73 <#assign nameLength = SeparatorOverview.ProductName.getData()?length >
74 <#assign maxlength = maxlength - nameLength >
75
76 <#if summary?length gt 1>
77 <h3 class="title">${SeparatorOverview.ProductName.getData()!}</h3>
78 <span class="product-card--desc--link summary" >
79 ${leonardo.stringEllipsis(htmlUtil.extractText(summary!), maxlength)}
80 </span>
81 <#elseif summary?length == 1>
82 <h3 class="title">${SeparatorOverview.ProductName.getData()!}</h3>
83 <#else>
84 <#if maxlength gte 0>
85 <h3 class="title">${SeparatorOverview.ProductName.getData()!}</h3>
86 <span href="${url!}" target="${target}" class="product-card--desc--link summary">
87 ${leonardo.stringEllipsis(htmlUtil.extractText(SeparatorOverview.OverviewText.getData()!), maxlength)}
88 </span>
89
90 <#else>
91 <h3 class="title">${SeparatorOverview.ProductName.getData()!}</h3>
92 </#if>
93 </#if>
94 </div>
95 <#if url?has_content>
96 </a>
97 </#if>
98 <#else>
99 <#if url?has_content>
100 <a class="product-card--wrap" href="${url!}" target="${target}" title="${SeparatorOverview.ProductName.getData()!}">
101 </#if>
102 <div class="product-card--graphic-container">
103 <img class="product-card--graphic" alt="${SeparatorOverview.ProductName.getData()!}" src="${themeDisplay.pathThemeImages}/blank.png"
104 data-lazy-src-url-d="${dataImg.desktop!}"
105 data-lazy-src-url-tl="${dataImg.tablet_landscape!}"
106 data-lazy-src-url-tp="${dataImg.tablet_portrait!}"
107 data-lazy-src-url-m="${dataImg.mobile!}"/>
108 </div>
109 <div class="product-card--desc">
110 <#assign summary = .vars['reserved-article-description'].data!>
111 <#if summary?length gt 1>
112 <span class="title">${SeparatorOverview.ProductName.getData()!}</span> ${summary!}
113 <#elseif summary?length == 1>
114 <span class="title">${SeparatorOverview.ProductName.getData()!}</span>
115 <#else>
116 <#assign maxlength = 150 >
117 <#assign nameLength = SeparatorOverview.ProductName.getData()?length >
118 <#assign maxlength = maxlength - nameLength >
119 <#if maxlength gte 0>
120 <span class="title">${SeparatorOverview.ProductName.getData()!}</span> ${leonardo.stringEllipsis(htmlUtil.extractText(SeparatorOverview.OverviewText.getData()!), maxlength)}
121 <#else>
122 <span class="title">${SeparatorOverview.ProductName.getData()!}</span>
123 </#if>
124 </#if>
125 </div>
126 <#if url?has_content>
127 </a>
128 </#if>
129 </#if>
130 <#if isDarkTheme>
131 <#if hasDetailPage?? && getterUtil.getBoolean(hasDetailPage.getData()) >
132 <span class="js-link-product" style="display:none">
133 <a class="link-arrow" href="${url!}" target="${target}" title="${SeparatorOverview.ProductName.getData()!}">
134
135 <@liferay.language key="link-to-product-page"/>
136 </a>
137 </span>
138 </#if>
139 <span class="js-textModal" style="display:none">
140 ${SeparatorOverview.OverviewText.getData()!}
141 </span>
142
143 <#if SeparatorOverview.OverviewFileUrl??>
144 <#assign docsDownloadURL = ''>
145 <#if (layout.getGroup().getGroupId()) != (article.getGroupId())>
146 <#assign docsDownloadURL = portalUtil.getVirtualHostname (productLayout.getLayoutSet())>
147 <#if (docsDownloadURL)?has_content && (docsDownloadURL?lower_case != 'localhost')>
148 <#assign docsDownloadURL = 'https://' + docsDownloadURL >
149 <#else>
150 <#assign docsDownloadURL = ''>
151 </#if>
152 </#if>
153 <ul class="js-ul-overview" style="display:none;">
154 <#list SeparatorOverview.OverviewFileUrl.getSiblings() as itemList>
155 <#assign file_info = leonardo.findFileEntryInfo(itemList.getData()) >
156 <#if itemList.OverviewFileLabel.getData()!= '' && file_info.downloadUrl !=''>
157 <li class="list-item">
158 <a href="${docsDownloadURL}${file_info.downloadUrl}" target="_blank">
159 ${itemList.OverviewFileLabel.getData()!}
160 </a>
161 </li>
162 </#if>
163 </#list>
164 </ul>
165 </#if>
166 </#if>
167 </div>
168
169 <!--End Module: Product Card-->
170
171<#else>
172 <!-- Missing Product Image -->
173</#if>
Si è verificato un errore nell'elaborarazione del modello.
The following has evaluated to null or missing:
==> htmlUtil.extractText [in template "20115#20151#1358170" at line 120, column 138]
----
Tip: It's the step after the last dot that caused this error, not those before it.
----
Tip: If the failing expression is known to legally refer to something that's sometimes null or missing, either specify a default value like myOptionalVar!myDefault, or use <#if myOptionalVar??>when-present<#else>when-missing</#if>. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)??
----
----
FTL stack trace ("~" means nesting-related):
- Failed at: ${leonardo.stringEllipsis(htmlUtil.ex... [in template "20115#20151#1358170" at line 120, column 112]
----
1<#-- init declare -->
2<@leonardo.articleInfo .vars "SP-Product-base-Listing-catalogo"/>
3<#assign currentGroupExpandoBridge = themeDisplay.getScopeGroup().getExpandoBridge()>
4<#assign isDarkTheme = false>
5<#if currentGroupExpandoBridge.hasAttribute("dark-theme")>
6 <#assign isDarkTheme = currentGroupExpandoBridge.getAttribute("dark-theme", false)>
7</#if>
8
9<#assign
10 journalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService")
11 articleId = .vars['reserved-article-id'].data
12 article = journalArticleLocalService.getArticle(groupId, articleId)
13 productLayout = (article.getLayout()!)
14 isProductPage = false
15 target = ((layout.getGroup().getGroupId()) != (article.getGroupId()))?then("_blank","_self")
16 productDetailURL = ''
17>
18
19<#attempt>
20 <#assign productDetailURL = portalUtil.getLayoutFriendlyURL(productLayout, themeDisplay) >
21<#recover>
22</#attempt>
23
24<#if (layout.getGroup().getGroupId()) != (article.getGroupId())>
25 <#assign productDetailURL = portalUtil.getVirtualHostname (productLayout.getLayoutSet())>
26
27 <#if (productDetailURL)?has_content && (productDetailURL?lower_case != 'localhost')>
28 <#assign productDetailURL = 'https://' + productDetailURL >
29 <#else>
30 <#assign productDetailURL = ''>
31 </#if>
32 <#assign productDetailURL = productDetailURL + productLayout.getFriendlyURL()>
33</#if>
34
35<#if (layout.layoutPrototypeUuid)?has_content>
36 <#assign
37 layoutPrototypeLocalService = serviceLocator.findService("com.liferay.portal.kernel.service.LayoutPrototypeLocalService")
38 layoutPrototype = layoutPrototypeLocalService.fetchLayoutPrototypeByUuidAndCompanyId(layout.layoutPrototypeUuid, themeDisplay.getCompanyId())
39 >
40 <#if ((layoutPrototype)?has_content) && (layoutPrototype.getName(locale) == "Sheet Product (SP)")>
41 <#assign isProductPage = true>
42 </#if>
43</#if>
44<#if (SeparatorOverview.OverviewImage)?has_content >
45
46 <#assign scalingDetails = {
47 "desktop": {"alternateImage": {}, "key": "w_317"},
48 "tl": {"alternateImage": SeparatorOverview.OverviewImage.ImageTl!, "key": "w_317"},
49 "tp": {"alternateImage": SeparatorOverview.OverviewImage.ImageTp!, "key": "w_317"},
50 "mobile": {"alternateImage": SeparatorOverview.OverviewImage.ImageM!, "key": "w_317"}
51 }>
52 <#assign dataImg = leonardo.adaptImage(SeparatorOverview.OverviewImage!, scalingDetails )>
53 <#if (productLayout)?has_content>
54 <#assign url = productDetailURL>
55 </#if>
56 <!--Start Module: Product Card-->
57 <div class="product-card invisible">
58 <#if isDarkTheme>
59
60 <#if url?has_content>
61 <a class="product-card--wrap" href="${url!}" target="${target}" title="${SeparatorOverview.ProductName.getData()!}">
62 </#if>
63 <div class="product-card--graphic-container">
64 <img class="product-card--graphic" alt="${SeparatorOverview.ProductName.getData()!}" src="${themeDisplay.pathThemeImages}/blank.png"
65 data-lazy-src-url-d="${dataImg.desktop!}"
66 data-lazy-src-url-tl="${dataImg.tablet_landscape!}"
67 data-lazy-src-url-tp="${dataImg.tablet_portrait!}"
68 data-lazy-src-url-m="${dataImg.mobile!}"/>
69 </div>
70 <div class="product-card--desc">
71 <#assign summary = .vars['reserved-article-description'].data!>
72 <#assign maxlength = 160 >
73 <#assign nameLength = SeparatorOverview.ProductName.getData()?length >
74 <#assign maxlength = maxlength - nameLength >
75
76 <#if summary?length gt 1>
77 <h3 class="title">${SeparatorOverview.ProductName.getData()!}</h3>
78 <span class="product-card--desc--link summary" >
79 ${leonardo.stringEllipsis(htmlUtil.extractText(summary!), maxlength)}
80 </span>
81 <#elseif summary?length == 1>
82 <h3 class="title">${SeparatorOverview.ProductName.getData()!}</h3>
83 <#else>
84 <#if maxlength gte 0>
85 <h3 class="title">${SeparatorOverview.ProductName.getData()!}</h3>
86 <span href="${url!}" target="${target}" class="product-card--desc--link summary">
87 ${leonardo.stringEllipsis(htmlUtil.extractText(SeparatorOverview.OverviewText.getData()!), maxlength)}
88 </span>
89
90 <#else>
91 <h3 class="title">${SeparatorOverview.ProductName.getData()!}</h3>
92 </#if>
93 </#if>
94 </div>
95 <#if url?has_content>
96 </a>
97 </#if>
98 <#else>
99 <#if url?has_content>
100 <a class="product-card--wrap" href="${url!}" target="${target}" title="${SeparatorOverview.ProductName.getData()!}">
101 </#if>
102 <div class="product-card--graphic-container">
103 <img class="product-card--graphic" alt="${SeparatorOverview.ProductName.getData()!}" src="${themeDisplay.pathThemeImages}/blank.png"
104 data-lazy-src-url-d="${dataImg.desktop!}"
105 data-lazy-src-url-tl="${dataImg.tablet_landscape!}"
106 data-lazy-src-url-tp="${dataImg.tablet_portrait!}"
107 data-lazy-src-url-m="${dataImg.mobile!}"/>
108 </div>
109 <div class="product-card--desc">
110 <#assign summary = .vars['reserved-article-description'].data!>
111 <#if summary?length gt 1>
112 <span class="title">${SeparatorOverview.ProductName.getData()!}</span> ${summary!}
113 <#elseif summary?length == 1>
114 <span class="title">${SeparatorOverview.ProductName.getData()!}</span>
115 <#else>
116 <#assign maxlength = 150 >
117 <#assign nameLength = SeparatorOverview.ProductName.getData()?length >
118 <#assign maxlength = maxlength - nameLength >
119 <#if maxlength gte 0>
120 <span class="title">${SeparatorOverview.ProductName.getData()!}</span> ${leonardo.stringEllipsis(htmlUtil.extractText(SeparatorOverview.OverviewText.getData()!), maxlength)}
121 <#else>
122 <span class="title">${SeparatorOverview.ProductName.getData()!}</span>
123 </#if>
124 </#if>
125 </div>
126 <#if url?has_content>
127 </a>
128 </#if>
129 </#if>
130 <#if isDarkTheme>
131 <#if hasDetailPage?? && getterUtil.getBoolean(hasDetailPage.getData()) >
132 <span class="js-link-product" style="display:none">
133 <a class="link-arrow" href="${url!}" target="${target}" title="${SeparatorOverview.ProductName.getData()!}">
134
135 <@liferay.language key="link-to-product-page"/>
136 </a>
137 </span>
138 </#if>
139 <span class="js-textModal" style="display:none">
140 ${SeparatorOverview.OverviewText.getData()!}
141 </span>
142
143 <#if SeparatorOverview.OverviewFileUrl??>
144 <#assign docsDownloadURL = ''>
145 <#if (layout.getGroup().getGroupId()) != (article.getGroupId())>
146 <#assign docsDownloadURL = portalUtil.getVirtualHostname (productLayout.getLayoutSet())>
147 <#if (docsDownloadURL)?has_content && (docsDownloadURL?lower_case != 'localhost')>
148 <#assign docsDownloadURL = 'https://' + docsDownloadURL >
149 <#else>
150 <#assign docsDownloadURL = ''>
151 </#if>
152 </#if>
153 <ul class="js-ul-overview" style="display:none;">
154 <#list SeparatorOverview.OverviewFileUrl.getSiblings() as itemList>
155 <#assign file_info = leonardo.findFileEntryInfo(itemList.getData()) >
156 <#if itemList.OverviewFileLabel.getData()!= '' && file_info.downloadUrl !=''>
157 <li class="list-item">
158 <a href="${docsDownloadURL}${file_info.downloadUrl}" target="_blank">
159 ${itemList.OverviewFileLabel.getData()!}
160 </a>
161 </li>
162 </#if>
163 </#list>
164 </ul>
165 </#if>
166 </#if>
167 </div>
168
169 <!--End Module: Product Card-->
170
171<#else>
172 <!-- Missing Product Image -->
173</#if>