Tenders
Select
Select
टेम्पलेट के प्रोसेसिंग के समय त्रुटि हुई है.
The following has evaluated to null or missing: ==> root.selectSingleNode("//dynamic-element[@field-reference='redirectionType']/dynamic-content") [in template "57581103840604#20120#184292" at line 18, column 44] ---- 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 redirectionType = root.select... [in template "57581103840604#20120#184292" at line 18, column 17] ----
1<#assign layoutLocalService = serviceLocator.findService("com.liferay.portal.kernel.service.LayoutLocalService") />
2<#assign journalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService") />
3<#assign assetTagLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetTagLocalService") />
4<div id="accordionListing">
5<#list entries as entry>
6 <#assign referenceNumber = "" />
7
8 <#assign viewURL = entry.getViewURL() />
9 <#assign className = entry.getClassName() />
10 <#assign classPK = entry.getClassPK()?number />
11 <#assign assetTags = assetTagLocalService.getTags(className, classPK) />
12
13 <#if className == "com.liferay.journal.model.JournalArticle">
14 <#assign article = journalArticleLocalService.getLatestArticle(classPK) />
15 <#assign docXml = saxReaderUtil.read(article.getContentByLocale(locale)) />
16 <#assign root = docXml.getRootElement() />
17 <#assign referenceNumber = root.selectSingleNode("dynamic-element[@field-reference='AccordianItemReferenceNumber']/dynamic-content").getData() />
18 <#assign redirectionType = root.selectSingleNode("//dynamic-element[@field-reference='redirectionType']/dynamic-content").getText() />
19
20 <#if redirectionType == "Option86576408">
21
22 <#assign redirectionPage = root.selectSingleNode("//dynamic-element[@field-reference='redirectionPage']/dynamic-content").getText() />
23
24
25 <#if redirectionPage?has_content>
26 <#if redirectionPage?is_string >
27 <#assign jsonString = redirectionPage?string />
28 <#assign layoutIdKey = '"id":"' />
29 <#assign startIndex = jsonString?index_of(layoutIdKey) + layoutIdKey?length />
30 <#assign endIndex = jsonString?index_of('"', startIndex) />
31 <#assign layoutId = jsonString?substring(startIndex, endIndex) />
32
33 <#assign layout = layoutLocalService.getLayoutByUuidAndGroupId(layoutId, themeDisplay.getScopeGroupId(), false) />
34 <#assign viewURL = portalUtil.getLayoutFriendlyURL(layout, themeDisplay) />
35
36</#if>
37 </#if>
38 </#if>
39 </#if>
40
41 <#assign inputDate = root.selectSingleNode("dynamic-element[@field-reference='displayDate']/dynamic-content").getData() />
42 <#if inputDate?has_content>
43 <#assign dateObj = dateUtil.parseDate("yyyy-MM-dd", inputDate, locale) />
44 <#assign displayDate = dateUtil.getDate(dateObj, "dd-MM-yyyy", locale) />
45 <#else>
46 <#assign displayDate = inputDate />
47 </#if>
48
49 <div class="accordianCard">
50 <a class="text-decoration-none" href="${viewURL}">
51 <div class="card-header accordian-header d-flex justify-content-between align-items-center row">
52 <div class="col-11">
53 <div class="d-flex">
54 <h2 class="accordian-title">${entry.getTitle()}</h2>
55 <div>
56
57 <#if assetTags?has_content>
58 <#list assetTags as tag>
59 <span class="tag">${tag.getName()}</span>
60 </#list>
61 </#if>
62 </div>
63 </div>
64 <div class="accordian-dateReference date-display">
65 <div><#if referenceNumber?has_content>Reference Number: ${referenceNumber}<br></#if></div>
66
67 <div><#if displayDate?has_content>Issue Date: ${displayDate}</#if></div>
68 </div>
69 </div>
70 <div class="arrow-icon col-1 d-flex justify-content-end">
71 <i class="fa-solid fa-circle-chevron-right"></i>
72 </div>
73 </div>
74 </a>
75 </div>
76 </#list>
77 </div>
78
79
80
81<style>
82 .tag {
83 background: #EFE8FD;
84 color: #3E3E94;
85 padding: 3px 10px;
86 font-size: 13px;
87 /*text-transform: uppercase;*/
88 font-weight: 600;
89 border-radius: 24px;
90 margin-left: 6px;
91 white-space:nowrap;
92 }
93
94 .titleHeader{
95 font-size: 18px;
96 }
97 .date {
98 font-size: 14px;
99 color: #666666;
100 }
101 .list_object_view {
102 margin-left: 10px;
103 }
104 .no-style-link {
105 display: inline-block;
106 color: inherit;
107 text-decoration: none;
108 margin-bottom: 8px;
109 }
110 .no-style-link:hover {
111 color: inherit;
112 text-decoration: none;
113 }
114
115</style>
अंतिम बार अद्यतन किया गया 18-06-2025
जानिए
अनुपालन
सहायता और समर्थन
संबंधित लिंक