news-description
حصل خطأ عند معالجة القالب.
The following has evaluated to null or missing:
==> request.getParameter("assetEntry") [in template "10112#17493303#146452025" at line 17, column 28]
----
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 assetEntryQuery = request.get... [in template "10112#17493303#146452025" at line 17, column 1]
----
1<style>
2p{
3color:#1d3e6c;
4font-size:20px;
5}
6p img{
7 width: 100%;
8 height: auto;
9
10}
11
12h4{
13color:#cda20d;
14}
15
16</style>
17<#assign assetEntryQuery = request.getParameter("assetEntry")?eval />
18<#assign assetEntryLocalServiceUtil = staticUtil['com.liferay.asset.kernel.service.AssetEntryLocalServiceUtil'] />
19<#assign entry=assetEntryLocalServiceUtil.fetchAssetEntry(assetEntryQuery) />
20<#assign entryTitle = htmlUtil.escape(entry.getTitle(locale)) />
21<#assign docXml=saxReaderUtil.read(entry.getAssetRenderer().getArticle().getContent()) />
22<#assign title=docXml.valueOf("//dynamic-element[@name='NewsTitel']/dynamic-content/text()") />
23<#assign description=docXml.valueOf("//dynamic-element[@name='NewsDescription']/dynamic-content/text()") />
24
25<div class="container">
26
27 <h4>${title}</h4>
28 <hr>
29 <p>${description}</p>
30
31</div>