Er trad een fout op tijdens de verwerking van de sjabloon.
For "#list" list source: Expected a sequence or collection, but this has evaluated to a string (wrapper: f.t.SimpleScalar): ==> .vars["reserved-article-asset-tag-names"].data [in template "31942#31983#NEWS TEMPLATE" at line 51, column 24] ---- FTL stack trace ("~" means nesting-related): - Failed at: #list .vars["reserved-article-asset-t... [in template "31942#31983#NEWS TEMPLATE" at line 51, column 17] ----
1<#assign assetDisplay = liferay_asset["asset-display"] />
2<#setting time_zone = timeZone.ID>
3<#setting locale = "nl_BE">
4<#setting datetime_format = "EEE, d MMM yyyy HH:mm:ss Z">
5<#assign modifiedDate = .vars['reserved-article-modified-date'].data?datetime?string["yyyy-MM-dd"] />
6<#assign langId = themeDisplay.getLocale() />
7
8<#assign dateFormat = "dd MMMM yyyy" />
9
10
11<#assign articleId = .vars['reserved-article-id'].data />
12<#assign articleTitle = .vars['reserved-article-title'].data />
13<#assign articleDisplayDate = .vars['reserved-article-display-date'].data?datetime />
14
15
16<#assign articleKeywords = restClient.get('/headless-delivery/v1.0/sites/${groupId}/structured-contents/by-key/${articleId}?fields=keywords').keywords![]>
17<#assign group = restClient.get("/headless-admin-user/v1.0/sites/${groupId?number}") />
18
19<#assign baseURL = themeDisplay.getSiteGroup().getDisplayURL(themeDisplay) />
20
21<#assign hiddenclass = "" />
22<#list articleKeywords as tag>
23 <#if (
24 (tag?string?starts_with("positie_nl") == true && langId?starts_with("fr"))
25 || (tag?string?starts_with("positie_fr") == true && langId?starts_with("nl")) )>
26 <#assign hiddenclass = "hidden" />
27 </#if>
28</#list>
29
30<!-- update social share image -->
31<#assign socialImage = "" />
32<#if preview?? && preview.getData()?? && preview.getData() != "" >
33 <#assign socialImage = preview.getData() />
34 <sectionSocialImage data-value-social-image="${preview.getData()}" style="display: none">
35 </sectionSocialImage>
36</#if>
37
38
39<section class="news-events uzb-news-detail " data-date="${modifiedDate}">
40 <article>
41 <#if hiddenclass !='hidden'>
42 <h1 style="margin-bottom: 10px">${articleTitle}</h1>
43 <label class="news"><@liferay.language key="news-label" /></label>
44 <span class="date">
45 <i class="fa fa-clock-o" aria-hidden="true"></i>
46 ${dateUtil.getDate(articleDisplayDate, dateFormat, themeDisplay.getLocale())}
47 </span>
48
49 <#if .vars["reserved-article-asset-tag-names"].data?has_content>
50 <#assign assetTagNamesList = [] />
51 <#list .vars["reserved-article-asset-tag-names"].data as tag>
52 <#if (tag?string?starts_with("positie_") == false)>
53 <#assign assetTagNamesList = assetTagNamesList + [ tag ] />
54 </#if>
55 </#list>
56 <#if assetTagNamesList?has_content>
57 <span class="tag">
58 <i class="fa fa-tag" aria-hidden="true"></i>
59 <#list assetTagNamesList as assetTagName>
60 <#if assetTagName?index == 0 >
61 ${assetTagName}
62 <#else>
63 - ${assetTagName}
64 </#if>
65 </#list>
66 </span>
67 </#if>
68 </#if>
69
70 <div class="content-text">
71 <#if abstract??>
72 <p>
73 <strong>
74 ${abstract.getData()}
75 </strong>
76 </p>
77 </#if>
78 <p>
79 ${content.getData()}
80 </p>
81 </div>
82
83 <#if langId?starts_with("nl") && extra?? && extra.block?? && extra.block.data?? && extra.block.data?has_content && extra.block.data?eval_json.assetEntryId??>
84 <#list extra.block.getSiblings() as entry>
85 <#if entry.getType() == "journal-article" && entry.getData() != "" && entry.getData()?eval_json.assetEntryId??>
86 <#assign article = entry.getData()?eval />
87
88 <@assetDisplay className=article.className classPK=getterUtil.getLong(article.classPK, 0) />
89 </#if>
90 </#list>
91 </#if>
92
93 <#if langId?starts_with("fr") && extra_fr?? && extra_fr.block_fr?? && extra_fr.block_fr.data?? && extra_fr.block_fr.data?has_content && extra_fr.block_fr.data?eval_json.assetEntryId??>
94 <#list extra_fr.block_fr.getSiblings() as entry>
95 <#if entry.getType() == "journal-article" && entry.getData() != "" && entry.getData()?eval_json.assetEntryId??>
96 <#assign article = entry.getData()?eval />
97
98 <@assetDisplay className=article.className classPK=getterUtil.getLong(article.classPK, 0) />
99 </#if>
100 </#list>
101 </#if>
102
103 <div class="actions">
104 <div class="uzb-share gray" data-value="${articleTitle}"></div>
105 <#if (langId?starts_with("nl")) >
106 <a href="<@liferay.language key="newsletter-dialog-link-url" />" target="_blank"
107 class="uzb-button green subscribe-link">
108 <span>
109 <@liferay.language key="subscribe-newsletter" />
110 </span>
111 <svg class="icon icon-tabler icon-tabler-arrow-right" fill="none" height="24" stroke="currentColor"
112 stroke-linecap="round" stroke-linejoin="round" stroke-width="1" viewbox="0 0 24 24" width="24"
113 xmlns="http://www.w3.org/2000/svg">
114 <path d="M0 0h24v24H0z" fill="none" stroke="none"></path>
115 <line x1="5" x2="19" y1="12" y2="12"></line>
116 <line x1="13" x2="19" y1="18" y2="12"></line>
117 <line x1="13" x2="19" y1="6" y2="12"></line>
118 </svg>
119 </a>
120 </#if>
121 </div>
122 <#else>
123 <@liferay.language key="news-not-available" />
124 <div>
125 <a href="/web${group.friendlyUrlPath}/news" class="uzb-button green text-center"
126 style="display: inline-block; margin-top: 20px;">
127 <span>
128 <@liferay.language key="news-other" />
129 </span>
130 <svg class="icon icon-tabler icon-tabler-arrow-right" fill="none" height="24" stroke="currentColor"
131 stroke-linecap="round" stroke-linejoin="round" stroke-width="1" viewbox="0 0 24 24" width="24"
132 xmlns="http://www.w3.org/2000/svg">
133 <path d="M0 0h24v24H0z" fill="none" stroke="none"></path>
134 <line x1="5" x2="19" y1="12" y2="12"></line>
135 <line x1="13" x2="19" y1="18" y2="12"></line>
136 <line x1="13" x2="19" y1="6" y2="12"></line>
137 </svg>
138 </a>
139 </div>
140 </#if>
141
142 <div class="newsletter-dialog">
143 <div class="newsletter-dialog__container">
144 <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-mail-opened" width="80"
145 height="80" viewBox="0 0 40 40" stroke-width="1.5" stroke="currentColor" fill="none"
146 stroke-linecap="round" stroke-linejoin="round">
147 <g stroke="none" stroke-width="1.5" fill="none" fill-rule="evenodd">
148 <g id="Group">
149 <polygon id="Path" points="0 0 40 0 40 40 0 40"></polygon>
150 <path d="M20,30 L8.33333333,30 C6.49238417,30 5,28.5076158 5,26.6666667 L5,10 C5,8.15905083 6.49238417,6.66666667 8.33333333,6.66666667 L31.6666667,6.66666667 C33.5076158,6.66666667 35,8.15905083 35,10 L35,22.5"
151 id="Path" stroke="#000000" stroke-linecap="round" stroke-linejoin="round"></path>
152 <polyline id="Path" stroke="#000000" stroke-linecap="round" stroke-linejoin="round"
153 points="5 10 20 20 35 10"></polyline>
154 </g>
155 <g id="Group" transform="translate(22.000000, 22.000000)">
156 <polygon id="Path" points="0 0 14 0 14 14 0 14"></polygon>
157 <circle id="Oval" stroke="#000000" stroke-linecap="round" stroke-linejoin="round" cx="7"
158 cy="7" r="2.33333333"></circle>
159 <path d="M9.33333333,7 L9.33333333,7.875 C9.33333333,8.68041526 9.98625141,9.33333333 10.7916667,9.33333333 C11.5970819,9.33333333 12.2500044,8.68041526 12.2500044,7.875 L12.2500044,7 C12.2529766,4.68362667 10.7375084,2.63904217 8.52039354,1.96822466 C6.30327872,1.29740716 3.90853655,2.15890562 2.62687112,4.08839467 C1.34520569,6.01788371 1.47954104,8.55932497 2.95747389,10.3429473 C4.43540674,12.1265697 6.90762487,12.7308107 9.04166667,11.83"
160 id="Path" stroke="#000000" stroke-linecap="round" stroke-linejoin="round"></path>
161 </g>
162 </g>
163 </svg>
164 <button class="newsletter-dialog__close">
165 <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24">
166 <path fill="none" d="M0 0h24v24H0z"/>
167 <path d="M12 10.586l4.95-4.95 1.414 1.414-4.95 4.95 4.95 4.95-1.414 1.414-4.95-4.95-4.95 4.95-1.414-1.414 4.95-4.95-4.95-4.95L7.05 5.636z"/>
168 </svg>
169 </button>
170 <h2><@liferay.language key="newsletter-dialog-title" /></h2>
171 <p><@liferay.language key="newsletter-dialog-description" /></p>
172 <a href="<@liferay.language key="newsletter-dialog-link-url" />" target="_blank"
173 class="uzb-button green-full">
174 <span>
175 <@liferay.language key="newsletter-dialog-link-label" />
176 </span>
177 <svg class="icon icon-tabler icon-tabler-arrow-right" fill="none" height="24" stroke="currentColor"
178 stroke-linecap="round" stroke-linejoin="round" stroke-width="1" viewbox="0 0 24 24" width="24"
179 xmlns="http://www.w3.org/2000/svg">
180 <path d="M0 0h24v24H0z" fill="none" stroke="none"></path>
181 <line x1="5" x2="19" y1="12" y2="12"></line>
182 <line x1="13" x2="19" y1="18" y2="12"></line>
183 <line x1="13" x2="19" y1="6" y2="12"></line>
184 </svg>
185 </a>
186 </div>
187 </div>
188 </article>
189</section>
190<script>
191 hideCookieContent();
192</script>