در حین انجام عملیات خطایی رخ داده است.
The following has evaluated to null or missing: ==> Anchor_Link [in template "10155#10193#2626585" at line 18, column 12] ---- 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: ${Anchor_Link.getData()} [in template "10155#10193#2626585" at line 18, column 10] ----
1<#assign journalArticleService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService") />
2<#assign assetService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetEntryService") />
3<#assign assetLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetEntryLocalService") />
4<#assign assetLinkService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetLinkLocalService") />
5<#assign article = journalArticleService.getLatestArticle(groupId, .vars['reserved-article-id'].data) />
6<#assign asset = assetLocalService.getEntry("com.liferay.journal.model.JournalArticle", article.getResourcePrimKey()) />
7<#assign relatedItems = assetLinkService.getDirectLinks(asset.getPrimaryKey()) />
8<#assign uuid = .vars['reserved-article-id'].data />
9<#assign relatedAssets = [] />
10
11<#list relatedItems as item >
12 <#if assetService.getEntry(item.getEntryId2()).getClassPK() != 0>
13 <#assign relatedAssetEntry=assetService.getEntry(item.getEntryId2())>
14 <#assign relatedAssets = relatedAssets + [relatedAssetEntry]>
15 </#if>
16</#list>
17
18<a name="${Anchor_Link.getData()}" style="position:absolute; margin-top:-100px"> </a>
19
20<div id="${uuid}_multi_row_horizontal_tile_aggregator_template" class="multi_row_horizontal_tile_aggregator_template offering-tile-placeholder-wrapper">
21
22 <#if validator.isNotNull(Main_Title.getData())>
23 <div class="display-title" >${Main_Title.getData()}</div>
24 </#if>
25
26 <#if relatedAssets?size gt 0>
27
28 <div class="header-tile-placeholder-wrapper"></div>
29 <div class="tile-placeholder-body">
30 <#list relatedAssets as relatedAsset>
31 <#if relatedAsset.getClassName() == "com.liferay.journal.model.JournalArticle">
32 <#assign relatedArticle = journalArticleService.getLatestArticle(relatedAsset.getClassPK()) />
33 <#assign uuid = relatedArticle.getUuid() />
34
35 <#if relatedArticle?hasContent && relatedArticle.isTemplateDriven() >
36 <div class="product-information-flip-wrapper" >
37 ${journalArticleService.getArticleContent( relatedArticle,relatedArticle.getTemplateId(),null,locale.toString(),portletRequestModelFactory.getPortletRequestModel(),themeDisplay )}
38 </div>
39 </#if>
40
41
42 </#if>
43 </#list>
44 </div>
45 <#else>
46 <div class="invalid-number-of-related-assets">Please select at least one tile</div>
47 </#if>
48
49</div>