Bilaketaren emaitzak - Coeducación
Errorea gertatu da txantiloia prozesatzerakoan.
The following has evaluated to null or missing:
==> assetCategoryLocalService.getAssetEntryAssetCategories [in template "209613#209652#5377767" at line 58, column 88]
----
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 articleCats = assetCategoryLo... [in template "209613#209652#5377767" at line 58, column 65]
----
1<#assign journalArticleService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService")>
2<#assign assetCategoryLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetCategoryLocalService")>
3<#if entries?has_content>
4 <#list entries as curEntry>
5 <#if curEntry.getAssetRenderer().getClassName() == "com.liferay.journal.model.JournalArticle">
6 <#assign article = journalArticleService.getLatestArticle(getterUtil.getLong(curEntry.getClassPK())) />
7 <#assign rootElement = saxReaderUtil.read(article.getContentByLocale(locale)).getRootElement() />
8 <#assign selectorImage = saxReaderUtil.createXPath("dynamic-element[@name='image']") />
9 <#assign image = "" />
10 <#assign alt = "" />
11 <#if selectorImage.selectSingleNode(rootElement)?has_content>
12 <#assign image = selectorImage.selectSingleNode(rootElement).getStringValue()?trim />
13 <#if image != "">
14 <#assign imageJSON = image?eval />
15 <#assign image = "/documents/${imageJSON.groupId}/${imageJSON.fileEntryId}/${imageJSON.name}/${imageJSON.uuid}" />
16 <#assign alt = imageJSON.alt />
17 </#if>
18 </#if>
19 <#assign selectorContent = saxReaderUtil.createXPath("dynamic-element[@name='content']") />
20
21 <#assign viewURL = portalUtil.getLayoutFriendlyURL(layout, themeDisplay, themeDisplay.getLocale())?replace(layout.getFriendlyURL(themeDisplay.getLocale()), "/-/"+article.getUrlTitle(themeDisplay.getLocale())) />
22
23 <#assign autor = rootElement.valueOf("//dynamic-element[@name='autor']/dynamic-content/text()") />
24 <#assign position = rootElement.valueOf("//dynamic-element[@name='position']/dynamic-content/text()") />
25 <#assign subTitle = rootElement.valueOf("//dynamic-element[@name='subTitle']/dynamic-content/text()") />
26
27 <#assign centro = rootElement.valueOf("//dynamic-element[@name='centro']/dynamic-content/text()") />
28 <#assign responsables = rootElement.valueOf("//dynamic-element[@name='responsables']/dynamic-content/text()") />
29 <div class="search-results__item" id="search-results__item-${curEntry?index}">
30 <a class="skolae-card skolae-card--large" href="${viewURL}">
31 <div class="skolae-card__text-wrapper">
32 <h3 class="skolae-card__text-wrapper__title title-blue-small">${article.getTitle(locale)}</h3>
33 <#if subtitle?has_content>
34 <h4 class="skolae-card__text-wrapper__subtitle">${subtitle}</h4>
35 </#if>
36 <#if article.getDescription()?has_content && !autor?has_content && !position?has_content && !centro?has_content || !responsables?has_content>
37 <div class="skolae-card__text-wrapper__paragraph text-trucante text-trucante--5">${article.getDescription()}</div>
38 </#if>
39 <#if autor?has_content>
40 <h4 class="skolae-card__text-wrapper__subtitle">${autor}</h4>
41 </#if>
42 <#if position?has_content>
43 <p class="skolae-card__text-wrapper__paragraph text-trucante text-trucante--2 gray-neutral-color">${position}</p>
44 <#elseif centro?has_content || responsables?has_content>
45 <p class="skolae-card__text-wrapper__paragraph text-trucante text-trucante--2 gray-neutral-color">${responsables} | ${centro}</p>
46 </#if>
47 </div>
48 <#if image == "">
49 <div class="skolae-card__image-empty"></div>
50 <#else>
51 <div class="skolae-card__image">
52 <#if alt == "">
53 <#assign alt = article.getTitle(locale) />
54 </#if>
55 <img src="${image}" alt="${alt}" />
56 </div>
57 </#if>
58 <#assign articleCats = assetCategoryLocalService.getAssetEntryAssetCategories(curEntry.getEntryId()) />
59 <div class="tags">
60 <#list articleCats as cat>
61 <div class="tags__item">${cat.getTitle(locale)}</div>
62 </#list>
63 </div>
64 </a>
65 </div>
66 </#if>
67 </#list>
68 </#if>
Erakutsi gehiago
49ko 3 elementu erakusten