An error occurred while processing the template.
The following has evaluated to null or missing:
==> publicationNote [in template "20098#20124#330422" at line 65, column 14]
----
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: #if publicationNote.getData()?has_con... [in template "20098#20124#330422" at line 65, column 9]
----
1<#assign
2JournalArticleLocalService=serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService")>
3<#assign
4 dlFileEntryService=serviceLocator.findService('com.liferay.document.library.kernel.service.DLFileEntryService')>
5 <#assign
6 assetVocabularyLocalService=serviceLocator.findService("com.liferay.asset.kernel.service.AssetVocabularyLocalService") />
7<#assign journalArticleResourceLocalServiceUtil=serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService") />
8 <#assign
9 assetCategoryLocalServiceUtil=staticUtil["com.liferay.asset.kernel.service.AssetCategoryLocalServiceUtil"]>
10 <#assign
11 dlAppLocalServiceUtil=staticUtil["com.liferay.document.library.kernel.service.DLAppLocalServiceUtil"] />
12 <#assign dlUtil=staticUtil["com.liferay.document.library.kernel.util.DLUtil"]>
13 <#assign
14 serviceContext=staticUtil["com.liferay.portal.kernel.service.ServiceContextThreadLocal"].getServiceContext()>
15 <#assign themeDisplay=serviceContext.getThemeDisplay() />
16 <#assign
17 journalarticleLocalService=serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService") />
18
19 <#assign
20 statisticVocabulary=assetVocabularyLocalService.getGroupVocabulary(groupId?long,"statistics") />
21 <#assign journalArticleId=.vars['reserved-article-id'].data />
22 <#assign stat=journalarticleLocalService.getArticle(themeDisplay.getScopeGroupId()
23 ,journalArticleId) />
24 <#assign
25 assetCategoryPropService=serviceLocator.findService("com.liferay.asset.category.property.service.AssetCategoryPropertyLocalService") />
26 <#assign journalArticleTitle=.vars['reserved-article-title'].data />
27 <#assign journalArticleDisplayDate=stat.getDisplayDate()?date />
28 <#assign
29 articleResourcePK=stat.resourcePrimKey?long />
30 <#assign
31 categoryList=assetCategoryLocalServiceUtil.getCategories("com.liferay.journal.model.JournalArticle",articleResourcePK)>
32 <#assign themeColor="d29c4b"
33 imgUrl="${themeDisplay.getPathThemeImages()}/publications/005.jpg"
34 categoryDisplay="Economic" />
35 <#list categoryList as category>
36 <#if category.parentCategoryId==0>
37 <#if category.getVocabularyId()==statisticVocabulary.getVocabularyId()>
38 <#assign assetThemeCategoryId=category.categoryId?long />
39 <#assign
40 themePoster=assetCategoryPropService.getCategoryProperty(assetThemeCategoryId,"theme-poster").getValue()
41 themeColor=assetCategoryPropService.getCategoryProperty(assetThemeCategoryId,"theme_color").getValue()
42 themeIconId=assetCategoryPropService.getCategoryProperty(assetThemeCategoryId,"theme_icon_id").getValue()
43 themeImgId=assetCategoryPropService.getCategoryProperty(assetThemeCategoryId,"portfolio-image").getValue() />
44
45 <#if themeImgId!="0">
46 <#assign imgDlFile=dlAppLocalServiceUtil.getFileEntry(themeImgId?number)
47 imgUrl=dlUtil.getPreviewURL(imgDlFile, imgDlFile.getFileVersion(),
48 themeDisplay, '' ) />
49 </#if>
50 <#list category.name?split(" ") as catWords>
51 <#assign categoryDisplay = catWords/>
52 <#break>
53 </#list>
54 <#assign categoryDisplay = category.titleCurrentValue/>
55 </#if>
56</#if>
57</#list>
58
59
60
61<div class="col-md-3 dl-card latest-publications-card dl-rounded d-flex flex-column align-items-start justify-content-between text-white p-3"
62style="background: linear-gradient(transparent,#000000d4 ),url(/documents/d/guest/${themePoster}) no-repeat center/cover;">
63<div class="d-flex justify-content-start">
64<#assign articleId = .vars["reserved-article-id"].data?number>
65 <#if publicationNote.getData()?has_content >
66 <div class="dates_inside_wrapper p-1">
67 <img src="https://scad.gov.ae/documents/d/guest/information-circle-svgrepo-com" height="20" width="20">
68 ${publicationNote.getData()}
69 </div>
70</#if>
71<div class="button-wrapper d-inline-block p-1"><button class="hover-button btn dl-share-btn mb-0"><img
72 src="/documents/d/guest/share" height="20"></button>
73<ul class="hidden-buttons list-unstyled">
74 <li><a target="_blank"
75 href="https://www.facebook.com/sharer.php?u=https://uat.scad.gov.ae/w/${.vars['reserved-article-url-title'].data}"><i
76 class="icon-facebook"></i></a></li>
77 <li><a target="_blank"
78 href="https://twitter.com/intent/tweet?url=https://uat.scad.gov.ae/w/${.vars['reserved-article-url-title'].data}"><i
79 class="icon-twitter"></i></a></li>
80</ul>
81</div>
82</div>
83<div class="w-100">
84<h5><a class="text-white" href="/w/${.vars['reserved-article-url-title'].data}">${journalArticleTitle}</a></h5><span
85 class="theme-category p-2 badge" style="background: #${themeColor}">${categoryDisplay}</span>
86<ul class="d-flex justify-content-end attachments-list px-0 mb-0 mt-3 w-100">
87 <#if file_upload.getSiblings()?has_content>
88 <#list file_upload.getSiblings() as media>
89 <#if media?has_content>
90 <#assign counter=0>
91 <#list "${media.getData()}" ?split("/") as
92 mediaDataSplit>
93 <#if counter==5>
94 <#list mediaDataSplit?split("?") as
95 uuId>
96 <#assign uuid=uuId />
97 <#break>
98 </#list>
99 </#if>
100 <#assign counter=counter+1>
101 </#list>
102 <#if uuid?? && groupId??>
103 <#assign
104 file=dlFileEntryService.getFileEntryByUuidAndGroupId(uuid,groupId)>
105 <#assign
106 fileExtension=file.extension>
107 <#if fileExtension=="">
108 <#list "${file.fileName}"
109 ?split(".") as
110 extention>
111 <#if extention?is_last>
112 <#assign
113 fileExtension=extention>
114 <#break>
115 </#if>
116 </#list>
117 </#if>
118 <#if
119 media.getData()?has_content>
120 <a class="dl-attachment-circle mr-2"
121 href="${media.getData()}"
122 target="blank">
123 <#if fileExtension=="pdf"
124 ||
125 fileExtension=="PDF">
126 <li
127 class="list-item list-inline-item d-flex">
128 <img src=${themeDisplay.getPathThemeImages()}/publications/pdf-svgrepo-com.svg
129 height="20" style="max-width:unset !important" />
130 </li>
131 </#if>
132 <#if fileExtension=="xls"
133 ||
134 fileExtension=="XLS"
135 ||
136 fileExtension=="xlsx"
137 ||
138 fileExtension=="XLSX">
139 <li
140 class="list-item list-inline-item d-flex">
141 <img src=${themeDisplay.getPathThemeImages()}/publications/excel-svgrepo-com.svg
142 height="20" style="max-width:unset !important" />
143 </li>
144 </#if>
145 </a>
146 </#if>
147 </#if>
148 </#if>
149 </#list>
150</#if>
151
152 </ul>
153</div>
154</div>
Did you find this content useful?
Share your feedback with us so we can improve your experience.