Australia Content
The following has evaluated to null or missing:
==> ja.getTemplateId [in template "20115#20151#196928" at line 136, column 105]
----
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: #assign jad = journalArticleLocalServ... [in template "20115#20151#196928" at line 136, column 41]
----
1<@leonardo.articleInfo .vars "(V) Generic Web Content"/>
2<#assign rndNamespace = randomNamespace>
3
4<#macro downloadIcon>
5 <svg xmlns="http://www.w3.org/2000/svg" width="14" height="18" viewBox="0 0 14 18">
6 <path fill="#000" fill-rule="nonzero" d="M6.61 12.763l-2.145-2.24a.58.58 0 0 1 0-.796c.211-.22.551-.22.762 0l1.235 1.29V6.75c0-.31.24-.563.538-.563.297 0 .538.252.538.563v4.267l1.235-1.29c.21-.22.551-.22.762 0a.58.58 0 0 1 0 .796l-2.145 2.24a.526.526 0 0 1-.78 0zM12.62 18H1.383C.62 18 0 17.368 0 16.592V5.037c0-.49.19-.968.52-1.314L3.565.544A1.728 1.728 0 0 1 4.82 0h7.797C13.38 0 14 .631 14 1.407v15.186C14 17.37 13.38 18 12.619 18zM4.82 1.125a.682.682 0 0 0-.496.214L1.282 4.52a.755.755 0 0 0-.205.518v11.555c0 .156.137.283.306.283h11.235c.168 0 .305-.127.305-.282V1.407c0-.155-.137-.282-.305-.282H4.821zm-.783 4.5H2.154a.551.551 0 0 1-.539-.563c0-.31.242-.562.539-.562h1.884c.15 0 .27-.126.27-.281V2.25c0-.31.24-.563.538-.563.297 0 .539.252.539.563v1.969c0 .775-.605 1.406-1.347 1.406zm6.193 9.563H3.769a.55.55 0 0 1-.538-.563.55.55 0 0 1 .538-.563h6.462a.55.55 0 0 1 .538.563.55.55 0 0 1-.538.563z"/>
7 </svg>
8</#macro>
9
10<#assign journalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService")>
11<#assign languageId = languageUtil.getLanguageId(locale) />
12
13<#assign ShareLinkFound = (ShareLink.data)?has_content && getterUtil.getBoolean(ShareLink.getData())>
14<#assign isShareVisible = false>
15<#if FreeArea?? && FreeArea?has_content>
16 <#list FreeArea.getSiblings() as currentArea>
17 <#assign HTMLAreaFound = ((currentArea.HTMLArea.getData())?has_content) >
18 <#assign SectionTitleFound = ((currentArea.SectionTitle.getData())?has_content) >
19 <#assign LinksFound = (leonardo.getTargetUrl((currentArea.Links.getSiblings()[0]).ExternalTargetURL, (currentArea.Links.getSiblings()[0]).LinkTargetPage)?has_content) >
20 <#assign AttachFound = (currentArea.Attach?? && (((currentArea.Attach.getSiblings()[0]).AttachFile).getData()) != "") >
21 <#assign WebContentFound = (currentArea.WebContentArea?? && currentArea.WebContentArea.getData() != "") >
22 <#if (HTMLAreaFound || SectionTitleFound || LinksFound || AttachFound || WebContentFound) >
23 <#break>
24 </#if>
25 </#list>
26</#if>
27
28<style>
29 @media all and (min-width: 1024px) { .share-tp-m { display: none; } }
30 @media all and (max-width: 1023px) { .share-d-tl { display: none; } }
31</style>
32<#if Header.getData() != "" || Description.getData() != "">
33 <div class="section-container section-container--fixed">
34 <div class="internal-header">
35 <#if Header.getData() != "">
36 <#if Header.isH1?? && getterUtil.getBoolean(Header.isH1.getData())>
37 <h1 class="internal-header--header"><@leonardo.escapeTitle title=Header.getData()/></h1>
38 <#else>
39 <div class="internal-header--header"><@leonardo.escapeTitle title=Header.getData()/></div>
40 </#if>
41 </#if>
42 <#if Description.getData() != "">
43 <div class="internal-header--description"><@leonardo.escapeTitle title=Description.getData()/></div>
44 </#if>
45 <#if (!(HTMLAreaFound || SectionTitleFound || LinksFound || AttachFound || WebContentFound) && (ShareLinkFound)) >
46 <style>.leo18 .share-${rndNamespace}1 .section-content--share.social-share-trigger{bottom:0;top: auto;}</style>
47 <div class="sharelink-1 share-d-tl share-${rndNamespace}1">
48 <@leonardo.shareLink/>
49 <#assign isShareVisible = true>
50 </div>
51 </#if>
52 </div>
53 </div>
54</#if>
55<#if FreeArea?? && FreeArea?has_content>
56 <#list FreeArea.getSiblings() as currentArea>
57 <#assign currentHTMLAreaFound = ((currentArea.HTMLArea.getData())?has_content) >
58 <#assign currentSectionTitleFound = ((currentArea.SectionTitle.getData())?has_content) >
59 <#assign currentLinksFound = ( (currentArea.Links)?has_content && leonardo.getTargetUrl((currentArea.Links.getSiblings()[0]).ExternalTargetURL, (currentArea.Links.getSiblings()[0]).LinkTargetPage)?has_content) >
60 <#assign currentAttachFound = (currentArea.Attach?? && (((currentArea.Attach.getSiblings()[0]).AttachFile).getData()) != "") >
61 <#assign currentWebContentFound = (currentArea.WebContentArea?? && currentArea.WebContentArea.getData() != "") >
62
63 <#if (currentHTMLAreaFound || currentSectionTitleFound || currentLinksFound || currentAttachFound) ||
64 (ShareLinkFound && !isShareVisible) >
65 <div class="section-container section-container--fixed generic-content-body">
66 <div class="section-content">
67 <#if currentSectionTitleFound>
68 <div class="section-heading title-freearea tl-wider-side-padding">${currentArea.SectionTitle.getData()!}</div>
69 <#elseif ShareLinkFound && !isShareVisible>
70 <style>div.leonardocompany .share-${rndNamespace}2 .social-share-trigger { top: -65px; }</style>
71 </#if>
72 <#if ShareLinkFound && !isShareVisible>
73 <div class="sharelink-2 share-d-tl share-${rndNamespace}2">
74 <@leonardo.shareLink/>
75 <#assign isShareVisible = true>
76 </div>
77 </#if>
78 <#if currentHTMLAreaFound>
79 <div class="section-content--content">
80 <#assign htmlFormatted = leonardo.expandElementsInPage(currentArea.HTMLArea.getData())>
81 <div class="check-html-content">${htmlFormatted}</div>
82 </div>
83 </#if>
84 <#if currentLinksFound || currentAttachFound >
85 <div class="section-content--action-items">
86 <#if currentArea.Attach?? && currentArea.Attach?has_content >
87 <#list currentArea.Attach.getSiblings() as cur_Attach>
88 <#if cur_Attach.AttachFile?? && cur_Attach.AttachFile.getData() != "" && cur_Attach.Name.getData() != "">
89 <div class="section-content--action-items--download">
90 <#assign file_info = leonardo.findFileEntryInfo(cur_Attach.AttachFile.getData()) >
91 <a class="section-content--action-items--download--link"
92 href="${file_info.downloadUrl}"
93 target="_blank"
94 title="${(file_info.title)!cur_Attach.Name.getData()!}">
95 <@downloadIcon />
96 <span class="section-content--action-items--download--link--filename">
97 ${cur_Attach.Name.getData()!(file_info.title)!}
98 <#if (file_info.fileSize)?has_content>
99 (${file_info.mimeType!}, ${file_info.fileSize!} KB)
100 </#if>
101 </span>
102 </a>
103 </div>
104 </#if>
105 </#list>
106 </#if>
107 <#if currentArea.Links?? && currentArea.Links?has_content >
108 <#list currentArea.Links.getSiblings() as cur_Link>
109 <#assign targetUrl=leonardo.getTargetUrl(cur_Link.ExternalTargetURL, cur_Link.LinkTargetPage)!>
110 <#if targetUrl?has_content>
111 <#assign target=leonardo.getTarget(cur_Link.LinkTargetOpenIn!)!>
112 <div class="section-content--action-items--navigate">
113 <a class="section-content--action-items--navigate--link"
114 href="${targetUrl}"
115 target = "${target}"
116 title="${cur_Link.LinkText.data!}">
117 ${cur_Link.LinkText.data!}
118 <span class="icon--navigate"></span>
119 </a>
120 </div>
121 </#if>
122 </#list>
123 </#if>
124 </div>
125 </#if>
126 </div>
127 </div>
128 </#if>
129 <div class="section-container section-container--fixed">
130 <#if currentWebContentFound>
131 <#assign data = currentArea.WebContentArea.getData()/>
132 <#assign json = jsonFactoryUtil.createJSONObject(data) />
133 <#assign classPK = json.getLong("classPK") />
134 <#if (classPK >0) >
135 <#assign ja = journalArticleLocalService.getLatestArticle(classPK) />
136 <#assign jad = journalArticleLocalService.getArticleDisplay(ja, ja.getTemplateId(), "", languageId, 1, null, themeDisplay) />
137 ${jad.getContent()}
138 </#if>
139 </#if>
140 </div>
141 </#list>
142 <#if ShareLinkFound>
143 <div class="share-tp-m">
144 <div class="section-container section-container--fixed generic-content-body">
145 <div class="sharelink-3 section-content">
146 <@leonardo.shareLink/>
147 </div>
148 </div>
149 </div>
150 </#if>
151 <#if ShareLinkFound>
152 <!-- Social Sharing -->
153 <#assign shareTitle = (Header.getData())!"">
154 <#assign shareDescription = (Description.getData())!"">
155 <@leonardo.socialShareMetaAndLinks shareTitle=shareTitle shareDescription=shareDescription />
156 </#if>
157</#if>
Anchor Bar
where-we-are Portlet
Where we are
Port Melbourne
The Port Melbourne facility hosts a significant Project Management Office, System Integration and Test Facility and Support Services. It also contains an Integrated engineering hub and Integrated Logistic Support capability with the ability to design, deliver and support naval, security and land programmes.
Contacts
Leonardo Australia - Head Office and MRO
130-188 Todd Road, Port Melbourne, VIC 3207
Leonardo Australia - Electronics LoB
19 Rocklea Drive, Port Melbourne VIC 3207
info@leonardocompany.com.au
+61 3 9698 0400
Rockingham
The Rockingham facility, located South of Perth, is the regional hub for engineering, integration, installation and through life support and plays a key role in Leonardo's execution of Naval programmes in Western Australia.
Contacts
Leonardo Australia Pty Ltd
42 Tesla Rd, Rockingham WA 6168
Contact Person: Adam Baskett
info@leonardocompany.com.au
+61 3 9698 0400
Yerriyong
Partech Systems, now part of the Leonardo Group, is Australia’s leader in providing avionics test solutions. Partech is developing a Maintenance Repair Overhaul – Avionics Centre of Excellence for important ADF platforms across Air, Sea and Land with the acquisition of an LM-STAR. Working on key components of the F-35, continuing to support the MRH-90 helicopter and solving mission critical problems for the Australian Defence Force on the S-70B-2 Seahawk and F/A-18 Hornets.
Contacts
Partech Systems Pty Ltd (a Leonardo Company)
1 Garadi St, Yerriyong NSW 2540
Contact Person: John McKelvie
mail@partechsys.com
+61 2 4422 2700
Essendon Fields
Leonardo Helicopters is based at Essendon Fields and is a full-service operation centre undertaking aircraft assembly and maintenance, logistics management and other related support functions. Engineering activities include scheduled and unscheduled maintenance, aircraft modifications, deployed support to customer maintenance activities and aircraft assembly and disassembly for transport by air and sea. Typical customers for the business are emergency services, offshore operators, government and private customers.
Contacts
Leonardo Australia Pty Ltd
Hangar 19, Challenger Court, Essendon Fields VIC 3041
Contact Person: Marco Cardinotti
info@leonardocompany.com.au
+61 3 9227 3700
highlight-web Portlet
Australia Press Releases
Australia Info Wall
Our capabilities and solutions
Helicopters
Leonardo has a range of rotary wing solutions including conventional, tiltrotor and UAS systems, operating in the most demanding environments, and offers a complete range of maintenance, engineering, training and logistic support services to ensure the finest customer support experience. Leonardo is also a major partner in Australia’s most advanced medium-lift helicopter: the MRH-90.
Land and Naval Systems
Leonardo is currently executing a New Generation Communications Modernisation Programme for the Navy, featuring a state-of-the-art System Integration & Test Facility, Training Centre and full through life support. New product innovation has been realised in Australia by Leonardo in support of major naval projects and to help Australian Defence achieving future Network Centric Integration.
Security & Information Systems
Leonardo supplies Automatic Number Plate Recognition systems in Australia and contributed to a safer and secured Commonwealth Games in 2018. In March 2018 Leonardo was awarded a contract by the Bureau of Meteorology to deliver state-of-the-art meteorological radars in Australia, using radar systems manufactured by Leonardo in Germany.
Australia Info Wall 2
Airborne and Space Systems
Leonardo has been supplying Defence Electronics in Australia for over 50 years by providing it with leading-edge radar systems, sensors and technologies to support territory and maritime surveillance. Leonardo has further contributed to the protection of Australian Defence Forces through the supply of sophisticated Counter Measure Systems.
Aircraft
In the ’60s we provided the RAAF with 97 Aermacchi MB.326 jet trainers which were assembled by the Commonwealth Aircraft Corp, and more recently we delivered 10 C-27J Spartans: Leonardo’s medium tactical airlifter. Within the ATR joint venture we have a significant supply base of ATR-72 aircraft operating for both Virgin Australia and Air New Zealand airlines.
Lancio job opportunuties Australia
Job opportunities in Australia
Land forces video launch
List Content Viewer
News & Stories
Land forces video
Leonardo Australia at Land Forces
On the first week of June Leonardo Australia attended the Land Forces expo in Brisbane with the intent to broaden its scope of influence within the Australian market in the land domain and to bring forth its wide range of products
Our offer
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-->
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>
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-->
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-->
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-->
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-->
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-->