The following has evaluated to null or missing: ==> entry [in template "44029#44070#2210661" at line 5, column 23] ---- 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 categories = entry.getCategor... [in template "44029#44070#2210661" at line 5, column 1] ----
1<#assign dlAppService = serviceLocator.findService("com.liferay.document.library.kernel.service.DLAppService")>
2<#assign ddmFieldLocalService = serviceLocator.findService("com.liferay.dynamic.data.mapping.service.DDMFieldLocalService")/>
3<div class="accordion-container bod">
4<h6 class="accordion-header" tabindex="0" role="link" aria-expanded="true">
5<#assign categories = entry.getCategories() />
6 <#if categories?has_content>
7 <#list categories as category>
8 ${category.getName()}
9 <#assign accId = category.getName()?replace('&[a-zA-Z]+;', '', 'r')?replace('[^a-zA-Z0-9. ]', '', 'r') >
10 </#list>
11 </#if>
12</h6>
13
14<#if entries?has_content>
15 <div class="accordion-content">
16 <ul class="list-group list-group-flush oa">
17 <#list entries as entry>
18 <#if entry.getClassName() == "com.liferay.journal.model.JournalArticle" >
19 <#assign assetRenderer = entry.getAssetRenderer()/>
20 <#assign journalArticle = assetRenderer.getAssetObject() />
21 <#assign ddmStructure = journalArticle.getDDMStructure() />
22 <#assign ddmForm = ddmStructure.getDDMForm()/>
23 <#assign ddmFormValues = ddmFieldLocalService.getDDMFormValues(ddmForm, journalArticle.getId()) />
24 <#assign ddmFormFieldValues = ddmFormValues.getDDMFormFieldValues() />
25 <#assign viewDetailURL = "/web/eng/detail?assetEntry="+entry.getEntryId()+"&assetClassPK="+entry.getClassPK() />
26 <li class="list-group-item">
27 <#list ddmFormFieldValues as fieldName>
28 <#if fieldName.getFieldReference() == 'Upload90001913'>
29 <#assign jsonFactoryUtil = staticUtil["com.liferay.portal.kernel.json.JSONFactoryUtil"]>
30 <#assign customFieldJson = jsonFactoryUtil.createJSONObject(fieldName.getValue().getString(locale)) />
31 <#assign fileEntryId = getterUtil.getInteger(customFieldJson.get('fileEntryId'))>
32 <#if fileEntryId?? && fileEntryId!=0>
33 <#assign fileEntry = dlAppService.getFileEntry(fileEntryId) />
34 <#list ddmFormFieldValues as fieldName>
35 <#if fieldName.getFieldReference() == 'Title'>
36 <#assign contentTitle =fieldName.getValue().getString(locale)>
37 <a class="pdf-link" href=${viewDetailURL}><span class="list-group-title">${contentTitle}</span></a>
38 </#if>
39 </#list>
40 <#else>
41 <#assign urlImage = "#">
42 <#list ddmFormFieldValues as fieldName>
43 <#if fieldName.getFieldReference() == 'Title'>
44 <#assign contentTitle =fieldName.getValue().getString(locale)>
45 <a href="${viewDetailURL}" title="Text"><p class="list-group-title">${contentTitle}</p></a>
46 </#if>
47 </#list>
48 </#if>
49 </#if>
50 </#list>
51 <p class="list-group-subtitle text-muted">${journalArticle.displayDate?date} <#--${journalArticle.displayDate?time}--></p>
52 </li>
53 </#if>
54 </#list>
55 </ul>
56 </div>
57</#if>
58
59
60</div>
61<style>
62.taglib-page-iterator{display: none;}
63</style>
64<script>
65function movePagination(){
66 $(".taglib-page-iterator").each(function(){
67 var taglibThis = $(this);
68 if(taglibThis.attr('data-moved') != "moved"){
69 taglibThis.show();
70 var appendIn = taglibThis.parent().find('.accordion-content');
71 taglibThis.appendTo(appendIn);
72 taglibThis.attr('data-moved', 'moved');
73 }
74 });
75
76 var accId = localStorage.getItem('accId');
77 var scrollpos = localStorage.getItem('scrollpos');
78 if (scrollpos){window.scrollTo(0, scrollpos);}
79 if(accId){document.getElementById(accId).style.display = 'block';}
80}
81
82
83
84setTimeout(movePagination, 1000)
85
86$('.accordion-header').click(function(){
87 var accId = $(this).parent().find('.accordion-content').attr('id');
88 localStorage.setItem('accId', accId);
89});
90
91window.onbeforeunload = function(e) {
92 localStorage.setItem('scrollpos', window.scrollY);
93};
94</script>
Top Stories - 11122020 Swachhta Pakhwada - 2020
New Updates Swachhta Pakhwada - 2019
-
Swachhta Pakhwada 15 July 2019 (Day Fifteen)
17 Jul, 2019
-
Swachhta Pakhwada 14 July 2019 (Day Fourteen)
17 Jul, 2019
-
Swachhta Pakhwada: ONGC’s leap towards a cleaner, better India
15 Jul, 2019
-
Swachhta Pakhwada 13 July 2019 (Day Thirteen)
15 Jul, 2019
-
Swachhta Pakhwada 12 July 2019 (Day Twelve)
15 Jul, 2019
-
Swachhta Pakhwada 11 July 2019 (Day Eleven)
12 Jul, 2019
-
Swachhta Pakhwada 10 July 2019 (Day Ten)
11 Jul, 2019
-
Audio-visual on Cleanliness-related ONGC projects during Swachhta Pakhwada
10 Jul, 2019
-
Swachhta Pakhwada 09 July 2019 (Day Nine)
10 Jul, 2019
-
Energy Maharatna ONGC fuels noteworthy Swachhta projects during the Pakhwada
9 Jul, 2019
-
Swachhta Pakhwada 08 July 2019 (Day Eight)
9 Jul, 2019
-
Swachhta Pakhwada 07 July 2019 (Day Seven)
8 Jul, 2019
-
Swachhta Pakhwada 06 July 2019 (Day Six)
8 Jul, 2019
-
Swachhta Pakhwada 05 July 2019 (Day Five)
6 Jul, 2019
-
Swachhta Pakhwada 04 July 2019 (Day Four)
5 Jul, 2019
-
Swachhta Pakhwada 03 July 2019 (Day Three)
4 Jul, 2019
-
Swachhta Pakhwada 01 July 2019 (Day One)
3 Jul, 2019
-
Swachhta Pakhwada 02 July 2019 (Day Two)
3 Jul, 2019
-
ONGC’s Commitment towards the Swachh Bharat Mission
1 Jul, 2019