News Details - anbcapital
An error occurred while processing the template.
Can't convert this string to number: ""
The blamed expression:
==> currentUrl?keep_after("news-id=")?keep_before("&")?number [in template "20097#20123#255673" at line 23, column 15]
----
FTL stack trace ("~" means nesting-related):
- Failed at: #assign id = currentUrl?keep_after("n... [in template "20097#20123#255673" at line 23, column 1]
----
1<#if entries?has_content>
2<#list entries as curEntry>
3<#assign currentUrl = themeDisplay.getURLCurrent() />
4<#assign assetRenderer=curEntry.getAssetRenderer() />
5<#assign className=assetRenderer.getClassName() />
6<#assign journalArticle=assetRenderer.getAssetObject() />
7<#assign article=assetRenderer.getArticle() />
8<#assign document=saxReaderUtil.read(journalArticle.getContentByLocale(locale)) />
9<#assign rootElement=document.getRootElement() />
10<#assign imgXPathSelector=saxReaderUtil.createXPath("dynamic-element[@name='Image' ]") />
11<#assign img=imgXPathSelector.selectSingleNode(rootElement).getStringValue() />
12<#assign titleXPathSelector=saxReaderUtil.createXPath("dynamic-element[@name='Title' ]") />
13<#assign title=titleXPathSelector.selectSingleNode(rootElement).getStringValue() />
14<#assign descriptionXPathSelector=saxReaderUtil.createXPath("dynamic-element[@name='Description' ]") />
15<#assign description=descriptionXPathSelector.selectSingleNode(rootElement).getStringValue() />
16<#attempt>
17<#assign imgJson=jsonFactoryUtil.createJSONObject(img)>
18<#assign imgUrl="/documents/" + imgJson.groupId +"/" +imgJson.fileEntryId +"/"+ imgJson.name +"/"+imgJson.uuid>
19<#recover>
20<#assign imgUrl= ''/>
21</#attempt>
22
23<#assign id = currentUrl?keep_after("news-id=")?keep_before("&")?number>
24<#if curEntry.entryId == id >
25<div class="anb-bg-light-background-1">
26 <div class="container">
27 <div class="news-details py-5">
28 <div class="img-container pb-5">
29 <img src="${imgUrl}" />
30 </div>
31 <div class="date font-weight-semi-bold mb-3">${curEntry.publishDate?string('dd MMM, yyyy')}</div>
32 <div class="text-container d-flex">
33 <div class="title h1 font-weight-bold">
34 <div class="sticky-top pt-4">${title}</div>
35 </div>
36 <div class="description">${description}</div>
37 </div>
38 </div>
39 </div>
40</div>
41</#if>
42</#list>
43</#if>
You might be also interested in...
Who we are
About us
Vision and Mission
Leadership
Our awards
What we offer
Securities Brokerage
Asset Management
Investment Banking
Alternative Investments
Custody Services
Digital channels
Local Brokerage
International Brokerage
Interactive Voice Response (IVR)
Investor Awareness
Portfolio Diversification
Mutual Funds News
Investor Awareness Guidebook
Knowledge Center
Reach Us
anb capital Company (CJS) is authorized by the Capital Market Authority Number 07072-37 Unified number 7001548267. P.O. Box: 220009 Riyadh 11311 Kingdom of Saudi Arabia.

© anb capital 2024. All rights reserved.
Disclaimer
Terms & Conditions
Privacy Policy
