Keresési eredmények

Hiba jelentkezett a sablon feldolgozása során.
The following has evaluated to null or missing:
==> assetCategoryLocalService.getAssetEntryAssetCategories  [in template "10132#10165#4489501" at line 108, column 28]

----
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 assetCategories = assetCatego...  [in template "10132#10165#4489501" at line 108, column 1]
----
1<#assign dlFileEntryLocalService = serviceLocator.findService("com.liferay.document.library.kernel.service.DLFileEntryLocalService")> 
2 
3<div class="c-mb-4 c-mt-4 search-total-label"> 
4    <#if searchContainer.getTotal() == 1> 
5        ${languageUtil.format(locale, "x-result-for-x", [searchContainer.getTotal(), "<strong>" + htmlUtil.escape(searchResultsPortletDisplayContext.getKeywords()) + "</strong>"], false)} 
6    <#else> 
7        ${languageUtil.format(locale, "x-results-for-x", [searchContainer.getTotal(), "<strong>" + htmlUtil.escape(searchResultsPortletDisplayContext.getKeywords()) + "</strong>"], false)} 
8    </#if> 
9</div> 
10 
11<div class="display-list"> 
12    <ul class="list-group" id="search-results-display-list"> 
13        <#if entries?has_content> 
14        <#list entries as entry> 
15        <#if entry.getClassName() == "com.liferay.document.library.kernel.model.DLFileEntry"> 
16        <#assign dlFileEntry = dlFileEntryLocalService.getDLFileEntry(entry.getClassPK())> 
17        <a href="${themeDisplay.getPortalURL()}/documents/${themeDisplay.getScopeGroupId()}/${dlFileEntry.getFolderId()}/${dlFileEntry.getTitle()?url('UTF-8')}/${dlFileEntry.getUuid()}" 
18           target="_blank"> 
19            <#else> 
20            <a href="${entry.getViewURL()}"> 
21                </#if> 
22                <li class="list-group-item list-group-item-flex"> 
23                    <div class="autofit-col autofit-col-expand"> 
24                        <section class="autofit-section"> 
25                            <div class="c-mt-0 list-group-title"> 
26                                ${entry.getHighlightedTitle()} 
27                            </div> 
28 
29                            <div class="search-results-metadata"> 
30                                <p class="list-group-subtext"> 
31                                    <#if entry.isLocaleReminderVisible()> 
32                                        <span class="lfr-portal-tooltip" title="${entry.getLocaleReminder()}"> 
33											<@clay["icon"] symbol="${entry.getLocaleLanguageId()?lower_case?replace('_', '-')}" /> 
34										</span> 
35                                    </#if> 
36                                </p> 
37 
38                                <#if entry.isContentVisible()> 
39                                    <p class="list-group-subtext"> 
40										<span class="subtext-item"> 
41											${entry.getContent()} 
42										</span> 
43                                    </p> 
44                                </#if> 
45 
46                                <#if entry.isFieldsVisible()> 
47                                    <p class="list-group-subtext"> 
48                                        <#assign separate = false> 
49                                        <#list entry.getFieldDisplayContexts() as fieldDisplayContext> 
50                                            <#if separate>&#183;</#if> 
51                                            <span class="badge">${fieldDisplayContext.getName()}</span> 
52                                            <span>${fieldDisplayContext.getValuesToString()}</span> 
53                                            <#assign separate = true> 
54                                        </#list> 
55                                    </p> 
56                                </#if> 
57 
58                                <#if entry.isDocumentFormVisible()> 
59                                    <div class="expand-details text-default"> 
60                                      <span class="list-group-text text-2"> 
61                                        <a class="shadow-none" href="javascript:void(0);"> 
62                                          <@liferay.language key="details" />... 
63                                        </a> 
64                                      </span> 
65                                    </div> 
66 
67                                    <div class="hide search-results-list table-details table-responsive"> 
68                                        <table class="table table-sm"> 
69                                            <thead> 
70                                            <tr> 
71                                                <th class="table-cell-expand-smaller table-cell-text-end"> 
72                                                    <@liferay.language key="key" /> 
73                                                </th> 
74                                                <th class="table-cell-expand"> 
75                                                    <@liferay.language key="value" /> 
76                                                </th> 
77                                            </tr> 
78                                            </thead> 
79                                            <tbody> 
80                                            <#list entry.getDocumentFormFieldDisplayContexts() as fieldDisplayContext> 
81                                                <tr> 
82                                                    <td class="table-cell-expand-smaller table-cell-text-end table-details-content"> 
83                                                        <strong>${htmlUtil.escape(fieldDisplayContext.getName())}</strong> 
84                                                    </td> 
85                                                    <td class="table-cell-expand table-details-content"> 
86                                                        <code> 
87                                                            ${fieldDisplayContext.getValuesToString()} 
88                                                        </code> 
89                                                    </td> 
90                                                </tr> 
91                                            </#list> 
92                                            </tbody> 
93                                        </table> 
94                                    </div> 
95                                </#if> 
96																			 
97                            <#if entry?has_content> 
98                                <p class="list-group-subtext" style="margin-top:10px"> 
99                                    <span class="subtext-item"> 
100	                                      ${entry.getPublishedDateString()?substring(0, 10)} 
101                                    </span> 
102                                </p> 
103                            </#if> 
104																			 
105																			<#assign assetEntryLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetEntryLocalService")> 
106<#assign assetCategoryLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetCategoryLocalService")> 
107<#assign assetEntry = assetEntryLocalService.getEntry(entry.getClassName(), entry.getClassPK())> 
108<#assign assetCategories = assetCategoryLocalService.getAssetEntryAssetCategories(assetEntry.getEntryId())> 
109 
110<#if assetCategories?has_content> 
111    <p class="list-group-subtext"> 
112        <#list assetCategories as category> 
113            <span class="badge">${category.getTitle(locale)}</span> 
114        </#list> 
115    </p> 
116</#if> 
117																			 
118                            </div> 
119                        </section> 
120                    </div> 
121                </li> 
122            </a> 
123            </#list> 
124            </#if> 
125    </ul> 
126</div> 
127 
128<@liferay_aui.script use="aui-base"> 
129    A.one('#search-results-display-list').delegate( 
130    'click', 
131    function(event) { 
132    var currentTarget = event.currentTarget; 
133    currentTarget.siblings('.search-results-list').toggleClass('hide'); 
134    }, 
135    '.expand-details' 
136    ); 
137</@liferay_aui.script> 
138					 
139					<style> 
140.rbhu-search-container { 
141	display:flex; justify-content:center; width:100%; 
142
143						#main-content .portlet-search-results, .rbhu-search-container > div { 
144							padding:0 !important; 
145
146					</style> 

Rendezés