حصل خطأ عند معالجة القالب.
Can't convert this string to number: "" The blamed expression: ==> currentUrl?keep_after("media-id=")?keep_before("&")?number [in template "26504038443872#31764#61182" at line 16, column 15] ---- FTL stack trace ("~" means nesting-related): - Failed at: #assign id = currentUrl?keep_after("m... [in template "26504038443872#31764#61182" at line 16, 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 imgJson=jsonFactoryUtil.createJSONObject(img)>
15<#assign imgUrl="/documents/" + imgJson.groupId +"/" +imgJson.fileEntryId +"/"+ imgJson.name +"/"+imgJson.uuid>
16<#assign id = currentUrl?keep_after("media-id=")?keep_before("&")?number>
17<#assign dateXPathSelector=saxReaderUtil.createXPath( "dynamic-element[@name='Date' ]" ) />
18<#assign date=dateXPathSelector.selectSingleNode(rootElement).getStringValue() />
19<#assign descriptionXPathSelector=saxReaderUtil.createXPath( "dynamic-element[@name='Description' ]"
20 ) />
21<#assign description=descriptionXPathSelector.selectSingleNode(rootElement).getStringValue() />
22<#if curEntry.entryId == id >
23<div class="container mt-5 mx-0">
24 <div class="row justify-content-center">
25 <div class="col-12" style="max-width: 80%; margin: 0 auto;">
26 <div class="row">
27 <div class="col-lg-5 mx-3">
28 <h1 class="font-size-h2 primary-1-base-color my-5">${title}</h1>
29 <p class="text-muted">${date}</p>
30 </div>
31 <div class="col-lg-5 my-5">
32 <img src="${imgUrl}" class="imgWH" style="max-width:200%;height: -webkit-fill-available;"/>
33 </div>
34 </div>
35 </div>
36 </div>
37</div>
38
39<div class="row mt-5 w-100 m-0">
40 <div class="col-12 d-flex justify-content-center">
41 <div class="detailsDec text-center" style="max-width: 80%;">
42 ${description}
43 </div>
44 </div>
45</div>
46</#if>
47</#list>
48</#if>
49
50<style>
51 @media (max-width: 768px) {
52 .imgMargin{
53 margin-left:0%;
54 max-width: 100%;
55 height: auto;
56 }
57 .imgWH{
58 max-width: 100%;
59 height: auto;
60 }
61 }
62
63 .categoryStyleClass{
64 color: rgba(66, 86, 107, 1);
65 background-color: rgba(243, 245, 248, 1);
66 padding: 6px;
67 border-radius: 7px;
68 font-weight: 400;
69 font-size: 11px;
70 border-color: rgba(197, 207, 218, 1);
71 border-width: 1.6px !important;
72 font-family: 'ReadexPro';
73 }
74 .tagsStyleClassGreen{
75 font-weight: 400;
76 font-size: 11px;
77 font-family: 'ReadexPro';
78 color: rgba(0, 90, 48, 1);
79 background-color: rgba(232, 244, 237, 1);
80 padding: 7px;
81 border-radius: 20px;
82 text-transform: capitalize;
83 }
84 .tagsStyleClassBlue{
85 font-weight: 400;
86 font-size: 11px;
87 font-family: 'ReadexPro';
88 color:rgba(22, 62, 184, 1);
89 background-color:rgba(225, 243, 249, 1);
90 padding: 7px;
91 border-radius: 20px;
92 text-transform: capitalize;
93 }
94 .cardBorderStyle{
95 border-radius:16px;
96 box-shadow: 0px 3px 8px 2px rgba(242, 244, 247, 1);
97 border-width:0px;
98 margin-bottom:0px !important
99 }
100 .detailsDec{
101 font-weight: 400;
102 font-size: 16px;
103 line-height: 25px;
104 color: rgba(71, 84, 103, 1);
105 text-align: justify;
106 }
107 </style>