Si è verificato un errore nell'elaborarazione del modello.
The following has evaluated to null or missing:
==> assetCategoryPropertyLocalService.fetchCategoryProperty(category.getCategoryId(),"class") [in template "35552930#35552971#35791435" at line 28, column 27]
----
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: targetClass = assetCategoryPropertyLo... [in template "35552930#35552971#35791435" at line 28, column 13]
----
1<#if entries?has_content>
2
3<#assign
4journalArticleResourceLocalServiceUtil = serviceLocator.findService("com.liferay.journal.service.JournalArticleResourceLocalService")
5assetCategoryLocalServiceUtil = serviceLocator.findService("com.liferay.asset.kernel.service.AssetCategoryLocalService")
6assetCategoryPropertyLocalService = serviceLocator.findService("com.liferay.asset.category.property.service.AssetCategoryPropertyLocalService")
7SearchResultSummaryDisplayContextBuilderDateFormat = dateFormatFactory.getDateTime(2, 3, themeDisplay.getLocale(), themeDisplay.getTimeZone())
8dateFormat = dateFormatFactory.getDate(2, themeDisplay.getLocale(), themeDisplay.getTimeZone())
9/>
10
11<div class="section-intro intro-commons">
12 <h2>Risultati ricerca</h2>
13</div>
14
15<div class="category-articles pt-3">
16 <div class="row">
17 <#list entries as curEntry>
18
19 <#assign
20
21 articleEntry = journal_template_tool.toMap(journal_template_tool.parseContent(curEntry.getClassPK(), locale))
22 title = curEntry.getTitle()
23 description = curEntry.getContent()
24 image = articleEntry.image
25 url = curEntry.getViewURL()?keep_before("?")
26 categories = assetCategoryLocalServiceUtil.getCategories(curEntry.getClassName(), curEntry.getClassPK())
27 category = categories?first
28 targetClass = assetCategoryPropertyLocalService.fetchCategoryProperty(category.getCategoryId(),"class").value
29 curent_locale = themeDisplay.getLocale()
30 />
31
32 <#assign dateObj = dateUtil.parseDate(SearchResultSummaryDisplayContextBuilderDateFormat.getPattern(), curEntry.getPublishedDateString(), locale) />
33 <#assign date = dateFormat.format(dateObj) />
34
35 <div class="col-sm-6 col-md-4 ${targetClass}">
36 <a class="article-card" href="${url}" title="${title}">
37 <div class="article-card-img">
38 <img data-fileentryid="${articleEntry.image.fileEntryId}" src="${articleEntry.image.url}" alt="${title}">
39 </div>
40 <div class="article-card-content">
41 <div class="article-card-category">${category.getName()} - ${date!""}</div>
42 <div class="article-card-title">${title}</div>
43 <div class="article-card-text">${description}</div>
44 <#if (articleEntry.readingTime)?has_content>
45 <div class="article-reading-time"><span>${articleEntry.readingTime}' di lettura</span></div>
46 </#if>
47 </div>
48 </a>
49 </div>
50
51 </#list>
52 </div>
53</div>
54</#if>
Messaggio pubblicitario con finalità promozionale.
Per tutte le condizioni economiche e contrattuali leggere attentamente i fogli informativi disponibili presso le succursali di Banca Sella S.p.A. e sul presente sito internet.