S'ha produït un error mentre es processava la plantilla.
Failed to "?eval" string with this error: ---begin-message--- Syntax error in ?eval-ed string in line 1, column 191: Lexical error: encountered "u" (117), after "\"El Museu de la Ciutat de Castell\u00f3 programa m\u00fasica, un itinerari per la Muralla medieval i l\\". ---end-message--- The failing expression: ==> image?eval [in template "35610#35639#1133467" at line 64, column 86] ---- FTL stack trace ("~" means nesting-related): - Failed at: #if image?? && image?has_content && i... [in template "35610#35639#1133467" at line 64, column 49] ----
1<div class="search-total-label">
2 ${languageUtil.format(locale, "x-results-for-x", [searchContainer.getTotal(), "<strong>" + htmlUtil.escape(searchResultsPortletDisplayContext.getKeywords()) + "</strong>"], false)}
3</div>
4<#if entries?has_content>
5 <ul class="row text-break three-columns-news u-hidden-mobile">
6 <#list entries as entry>
7 <#if !entry.isTemporarilyUnavailable()>
8 <#assign
9 viewURL = entry.getViewURL()?replace("p_l_back_url", "redirect")
10 isJournalArticle = entry.getClassName() == "com.liferay.journal.model.JournalArticle"
11 />
12 <li class="col-12 col-md-4 three-columns-news__item">
13 <#if isJournalArticle>
14 <#assign image = _webContentsUtil.buildImageFromJournalArticleResourcePrimKey(entry.getClassPK(), locale) />
15 <#if image != "">
16 <#attempt>
17 <#assign imageJSON = image?eval />
18 <#recover>
19 <#assign imageParsed = image?replace("\\u", "_u_") />
20 <#assign imageJSON = imageParsed?eval />
21 </#attempt>
22 <#assign image = "/documents/${imageJSON.groupId}/${imageJSON.uuid}" />
23 <#assign alt = imageJSON.alt />
24 <#else>
25 <#assign image = "${themeDisplay.getPathThemeImages()}/images-default-contents.jpg" />
26 </#if>
27 <div class="aspect-ratio aspect-ratio-16-to-9 three-columns-news__item__image">
28 <#if !alt?? || alt == "">
29 <#assign alt = entry.getTitle() />
30 </#if>
31 <img src="${image}" alt="${alt}" class="aspect-ratio-item-center-middle aspect-ratio-item-fluid" />
32 </div>
33 <a href="${viewURL}" class="three-columns-news__item__link">
34 <h3>${entry.getHighlightedTitle()}</h3>
35 </a>
36 <p class="three-columns-news__item__date">${_webContentsUtil.getDateFromJournalArticleEntry(entry.getClassPK())?date?string['dd/MM/yyyy']}</p>
37
38 <#if entry.isAssetCategoriesOrTagsVisible() && _webContentsUtil?? && _webContentsUtil.isJournalArticleNoticia(entry.getClassPK())>
39 <#assign categories = _webContentsUtil.getCastelloCategoriesFromJournalArticleEntry(groupId, entry.getClassPK()) />
40 <div class="d-flex flex-wrap mb-sm-5">
41 <#list categories as category>
42 <a href="/noticias?category=${category.getCategoryId()}" class="three-columns-news__item__category">
43 <img alt="tag" src="${themeDisplay.getPathThemeImages()}/castellon/icons/svg/etiqueta.svg" />
44 <span>${category.getTitle(locale)}</span>
45 </a>
46 </#list>
47 </#if>
48 </#if>
49 </li>
50 </#if>
51 </#list>
52 </ul>
53 <#-- carousel mobile -->
54 <ul class="row text-break three-columns-news u-hidden-desktop">
55 <div id="featured-carousel-indicators-news" class="featured-carousel carousel slide container" data-ride="carousel" >
56 <ul class="carousel-inner">
57 <#list entries as entry>
58 <#if !entry.isTemporarilyUnavailable()>
59 <#assign
60 viewURL = entry.getViewURL()?replace("p_l_back_url", "redirect")
61 isJournalArticle = entry.getClassName() == "com.liferay.journal.model.JournalArticle"
62 image = _webContentsUtil.buildImageFromJournalArticleResourcePrimKey(entry.getClassPK(), locale)
63 />
64 <#if image?? && image?has_content && image?eval??>
65 <#attempt>
66 <#assign imageJSON = image?eval />
67 <#recover>
68 <#assign imageParsed = image?replace("\\u", "_u_") />
69 <#assign imageJSON = imageParsed?eval />
70 </#attempt>
71 <#assign image = "/documents/${imageJSON.groupId}/${imageJSON.uuid}" />
72 <#assign alt = imageJSON.alt />
73 <#else>
74 <#assign image = "${themeDisplay.getPathThemeImages()}/images-default-contents.jpg" />
75 </#if>
76 <#assign activeItem = "" />
77 <#if entry?is_first>
78 <#assign activeItem = "active" />
79 </#if>
80 <#if isJournalArticle>
81 <li class="col-12 three-columns-news__item carousel-item ${activeItem}">
82 <div class="aspect-ratio aspect-ratio-16-to-9 three-columns-news__item__image">
83 <#if !alt?? || alt == "">
84 <#assign alt = entry.getTitle() />
85 </#if>
86 <img src="${image}" alt="${alt}" class="aspect-ratio-item-center-middle aspect-ratio-item-fluid" />
87 </div>
88 <a href="${entry.getViewURL()}" class="three-columns-news__item__link">
89 <h3>${entry.getTitle()}</h3>
90 </a>
91 <p class="three-columns-news__item__date">${_webContentsUtil.getDateFromJournalArticleEntry(entry.getClassPK())?date?string['dd/MM/yyyy']}</p>
92 <#if _webContentsUtil?? && _webContentsUtil.isJournalArticleNoticia(entry.getClassPK())>
93 <#assign categories = _webContentsUtil.getCastelloCategoriesFromJournalArticleEntry(groupId, entry.getClassPK()) />
94 <div class="d-flex flex-wrap mb-sm-5">
95 <#list categories as category>
96 <a href="/noticias?category=${category.getCategoryId()}" class="three-columns-news__item__category">
97 <img alt="tag" src="${themeDisplay.getPathThemeImages()}/castellon/icons/svg/etiqueta.svg" />
98 <span>${category.getTitle(locale)}</span>
99 </a>
100 </#list>
101 </div>
102 </#if>
103 </li>
104 </#if>
105 </#if>
106 </#list>
107 </ul>
108 <ol class="carousel-indicators">
109 <#list 1..entries?size as i>
110 <#assign activeIndicator = "" />
111 <#if i?is_first>
112 <#assign activeIndicator = "active" />
113 </#if>
114 <li data-target="#featured-carousel-indicators-news" data-slide-to="${i-1}" class="${activeIndicator}">
115 </li>
116 </#list>
117 </ol>
118 </div>
119 </ul>
120</#if>
121<style>
122 .pagination-items-per-page{
123 display: none;
124 }
125</style>