
المستندات الأساسية للصندوق
حصل خطأ عند معالجة القالب.
The following has evaluated to null or missing:
==> currentDocument [in template "43374391993194#529290#402835" at line 114, column 50]
----
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: ${currentDocument.fileName} [in template "43374391993194#529290#402835" at line 114, column 48]
----
1<style>
2 .has-edit-mode-menu [data-aos^=fade][data-aos^=fade] {
3 opacity: 1;
4 transform: translateY(0)
5 }
6
7 .fileDownloadVarient3 {
8 width: 100%;
9 height: 100%;
10 position: relative;
11 background-color: var(--light10);
12 }
13
14 .fileDownloadVarient3 .fileWrapper {
15 width: 100%;
16 position: relative;
17 }
18
19 .fileDownloadVarient3 .fileWrapper .fileCardBox {
20 width: 100%;
21 display: flex;
22 flex-wrap: wrap;
23 gap: 25px;
24 margin-top: 65px;
25 }
26
27 .fileDownloadVarient3 .fileWrapper .fileCardBox .fileCard {
28 flex: 0 1 calc(25% - 18.75px);
29 background-color: var(--white);
30 border-radius: var(--br16);
31 padding: var(--p24);
32 box-sizing: border-box;
33 display: flex;
34 justify-content: space-between;
35 flex-direction: column;
36 }
37
38 @media (max-width: 991px) {
39 .fileDownloadVarient3 .fileWrapper .fileCardBox .fileCard {
40 flex: 0 1 calc(50% - 12.5px);
41 }
42 }
43
44 @media (max-width: 420px) {
45 .fileDownloadVarient3 .fileWrapper .fileCardBox .fileCard {
46 flex: 0 1 100%;
47 }
48 }
49
50 [data-theme="dark"] {
51 .fileDownloadVarient3 {
52 background-color: var(--dark03);
53
54 .fileWrapper {
55 .fileCardBox {
56 .fileCard {
57 background-color: var(--dark04);
58
59 .fileCardInner {
60 .textBox {
61 h2 {
62 color: var(--white);
63 }
64
65 p {
66 color: var(--white);
67 }
68 }
69 }
70
71 p {
72 color: var(--white);
73 }
74
75 .fileIconList {
76 ul {
77 li {
78 a {
79 color: var(--white);
80 }
81 }
82 }
83 }
84 }
85 }
86 }
87 }
88 }
89</style>
90
91
92<div class="fileDownloadVarient3">
93 <div class="container">
94 <div class="fileWrapper">
95 <div class="fileCardBox">
96 <#if files.getSiblings()?has_content>
97 <#list files.getSiblings() as cur_fileUpload>
98 <#assign currentDocumentData=cur_fileUpload.file.getData() />
99 <#list currentDocumentData?split("/") as x>
100 <#if x?counter==3>
101 <#assign fileGroupId=x?number>
102 </#if>
103 <#if x?counter==6>
104 <#assign uuId=x?keep_before("?")>
105 </#if>
106 </#list>
107 <#if (uuId??) && (fileGroupId??)>
108 <#assign
109 currentDocument=restClient.get('/headless-delivery/v1.0/sites/${fileGroupId}/documents/by-external-reference-code/${uuId}') />
110 </#if>
111 <div class="fileCard" data-aos="fade-up" data-aos-delay="100">
112 <div class="fileCardInner">
113 <div class="textBox">
114 <h2 title="${currentDocument.fileName}">
115 <#if cur_fileUpload.fileName.getData()?has_content>
116 ${cur_fileUpload.fileName.getData()}
117 <#else>
118 ${currentDocument.fileName}
119 </#if>
120 </h2>
121 <p>
122 <#assign fileSizeMB=(currentDocument.sizeInBytes / 1048576)?string("0.00") />
123 ${fileSizeMB} MB
124 </p>
125 </div>
126 </div>
127 <div class="fileIconList">
128 <ul>
129 <li>
130 <a href="${cur_fileUpload.file.getData()}">
131 ${languageUtil.get(locale, "view")}
132 <@clay["icon"] symbol="arrow-circle-broken-up-right" />
133 </a>
134 </li>
135 <li>
136 <a href="${cur_fileUpload.file.getData()}" download>
137 ${languageUtil.get(locale, "download")}
138 <@clay["icon"] symbol="download" />
139 </a>
140 </li>
141 </ul>
142 </div>
143 </div>
144 </#list>
145 </#if>
146
147 <#if URL.URLName.getData()?has_content && URL.URLlink.getData()?has_content>
148 <div class="fileCard" data-aos="fade-up" data-aos-delay="500">
149 <div class="fileCardInner">
150 <div class="textBox">
151 <h2 title='${URL.URLName.getData()}'>
152 ${URL.URLName.getData()}
153 </h2>
154 </div>
155 </div>
156 <div class="fileIconList">
157 <ul>
158 <li>
159 <a href="${URL.URLlink.getData()}">
160 ${languageUtil.get(locale, "view")}
161 <@clay["icon"] symbol="arrow-circle-broken-up-right" />
162 </a>
163 </li>
164 </ul>
165 </div>
166 </div>
167 </#if>
168
169 </div>
170 </div>
171 </div>
172</div>
