Cercador de l'arxiu audiovisual
Descobreix tot allò relacionat amb Cercador de l'arxiu audiovisual visitant el portal del Govern d'Andorra. Tots els serveis i informació detallada.
An error occurred while processing the template.
The following has evaluated to null or missing:
==> customData[field] [in template "1898890#1898934#4191821" at line 25, column 172]
----
Tip: It's the final [] step that caused this error, not those before it.
----
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: ${customData[field]?html} [in template "1898890#1898934#4191821" at line 25, column 170]
----
1<#if entries?has_content>
2 <#assign seq_index = portletPreferences?keys?seq_index_of("fieldsToDisplay") />
3 <#assign fields = portletPreferences?values[seq_index]/>
4 <table class="apps-table d-table ">
5 <thead>
6 <tr>
7 <#list fields[0]?split(",") as title>
8 <th style="width: 85%;" scope="col"><@liferay.language key=title /></th>
9 </#list>
10 </tr>
11 </thead>
12 <tbody>
13 <#list entries as entry>
14 <#assign classPK = entry.getClassPK()?number />
15 <#assign assetObject = ad_aDTs_util.getObjectByClassNameAndClassPK(entry.getClassName(), classPK) />
16 <#assign url = entry.getViewURL() />
17 <#assign customData = assetObject.getValues() />
18 <#if customData??>
19 <tr onclick="window.location='${url?html}'">
20 <#list fields[0]?split(",") as field>
21 <#if field?contains("data") >
22 <#attempt>
23 <td class="text-nowrap"><span class="icon icon-calendar"></span><span class="data-field">${dateUtil.getDate(customData[field]?html?date, 'dd/MM/yyyy', locale)?default(customData[field]?html)}</span></td>
24 <#recover>
25 <td class="text-nowrap"><span class="icon icon-calendar"></span><span class="data-field">${customData[field]?html}</span></td>
26 </#attempt>
27 <#elseif field == "titol">
28 <td><a href="${url?html}">${customData[field]?replace("<p>", "")?replace("</p>", "")?html}</a></td>
29 <#else>
30 <td><span class="data-field">${(customData[field]??)?then(customData[field]?html, '')}</span></td>
31 </#if>
32 </#list>
33 </tr>
34 </#if>
35 </#list>
36 </tbody>
37 </table>
38
39 <#assign maxResults = (searchContainer.getTotal() > 10000)?then(10000,searchContainer.getTotal()) />
40 <@liferay_aui["form"] action="#" useNamespace=false>
41 <@liferay_ui["page-iterator"]
42 cur=searchContainer.getCur()
43 curParam=searchContainer.getCurParam()
44 delta=searchContainer.getDelta()
45 deltaParam="delta"
46 deltaConfigurable=false
47 id="paginator"
48 markupView="lexicon"
49 portletURL=searchContainer.getIteratorURL()
50 total=maxResults
51 />
52 </@>
53</#if>