KAZ Minerals жыл сайын өзінің қызметкерлеріне арналған көптеген жобаларды іске асырады.
Во время обработки запрошенного шаблона произошла ошибка...
The following has evaluated to null or missing:
==> curEntry.getTitle(locale)  [in template "20099#20135#160699" at line 33, column 52]

----
Tip: If the failing expression is known to be 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: ${curEntry.getTitle(locale)}  [in template "20099#20135#160699" at line 33, column 50]
----
1<#assign assetEntryLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetEntryLocalService")> 
2<#assign dlFileEntryLocalService = serviceLocator.findService("com.liferay.document.library.kernel.service.DLFileEntryLocalService")> 
3<#function getArticleDLEntryUrl xmlValue> 
4  <#local docUrl = "" /> 
5  <#if xmlValue?has_content> 
6    <#local jsonObject = xmlValue?eval /> 
7    <#local entryUuid = jsonObject.uuid /> 
8    <#local entryGroupId = getterUtil.getLong(jsonObject.groupId) /> 
9    <#local dlFileEntry = dlFileEntryLocalService.getDLFileEntryByUuidAndGroupId(entryUuid, entryGroupId) /> 
10    <#local assetEntry = assetEntryLocalService.getEntry("com.liferay.document.library.kernel.model.DLFileEntry", dlFileEntry.fileEntryId) /> 
11    <#local assetRenderer = assetEntry.assetRenderer /> 
12    <#local docUrl = assetRenderer.getURLDownload(themeDisplay) /> 
13  </#if> 
14  <#return docUrl /> 
15</#function> 
16<div class="content-cards"> 
17    <#if entries?has_content> 
18        <#list entries as curEntry> 
19                <#assign assetRenderer = curEntry.getAssetRenderer() /> 
20                <#assign viewUrl = assetPublisherHelper.getAssetViewURL(renderRequest, renderResponse, assetRenderer, curEntry, true) /> 
21                <#assign docXmlLocalized = saxReaderUtil.read(curEntry.getAssetRenderer().getArticle().getContentByLocale(locale)) /> 
22                <#assign fieldValImage=docXmlLocalized.valueOf( "//dynamic-element[@name='image']/dynamic-content/text()") /> 
23                <#assign fieldValImageURL = getArticleDLEntryUrl(fieldValImage)> 
24                <#assign fieldValText=docXmlLocalized.valueOf( "//dynamic-element[@name='fulltext']/dynamic-content/text()") /> 
25            	<#assign fieldValText = fieldValText?replace("<[^>]*>", "", "r")> 
26                <div class="content-cards__item"> 
27                    <#if fieldValImage?has_content> 
28                        <a class="content-cards__image" style="background-image:url('${fieldValImageURL}')" href="${viewUrl}"> 
29                            &nbsp; 
30                        </a> 
31                    </#if> 
32                    <div class="content-cards__desc"> 
33                        <h3><a href="${viewUrl}">${curEntry.getTitle(locale)}</a></h3> 
34                        <div class="content-cards__date">${curEntry.getPublishDate()?string("dd.MM.yyyy")}</div> 
35                        <p>${curEntry.getDescription(locale)}</p> 
36                    </div> 
37                </div> 
38        </#list> 
39    </#if> 
40</div> 

САЙТТАҒЫ ТАНЫМАЛ ТАҚЫРЫПТАР

ҚАЗІР ТАЛҚЫЛАНЫП ЖАТЫР