Noticias
Se ha producido un error al procesar la plantilla.
Failed to "?eval" string with this error: ---begin-message--- Syntax error in ?eval-ed string in line 1, column 60: Lexical error: encountered "u" (117), after "\"Simulation d\\". ---end-message--- The failing expression: ==> articleValues["image_list"]?eval [in template "20101#20128#8870041" at line 125, column 39] ---- FTL stack trace ("~" means nesting-related): - Failed at: #assign image = (articleValues["image... [in template "20101#20128#8870041" at line 125, column 21] ----
1<style>
2 /***
3 SOBREESCRITURA DE ESTILOS QUE TRAE POR DEFAULT LIFERAY
4 el contenido del portlet donde esta el campo de busqueda
5 no se edita desde ADT, viene por default
6 ****/
7
8 .panel-heading {
9 display: none;
10 }
11 .search-bar {
12 border: 0;
13 }
14
15 .search-bar-simple {
16
17 padding: 2rem 2rem;
18 background: #eee;
19 border-bottom: 1px solid #fff;
20 }
21 .search-bar-simple input {
22 display: block;
23 width: 100%;
24 height: 3.2rem;
25 margin: 0;
26 border: solid 0.125rem rgba(255, 255, 255, 0);
27 border-radius: .25rem;
28 background-color: #fff;
29 box-shadow: none;
30 font-size: 1rem;
31 font-weight: normal;
32 color: #333;
33 -webkit-transition: border-color .3s,color .3s,background-color .3s;
34 transition: border-color .3s,color .3s,background-color .3s;
35 resize: vertical;
36 padding: 0rem 1.25rem;
37 line-height: 1rem;
38 max-width: 80%;
39 margin-right: 1rem;
40 font-family: inherit;
41 }
42 .search-bar-simple input:focus {
43 outline: none;
44 border: 2px solid #468847;
45 background-color: #fff;
46 box-shadow: none;
47 -webkit-transition: box-shadow .5s,border-color .25s ease-in-out;
48 transition: box-shadow .5s,border-color .25s ease-in-out;
49 }
50 .search-bar-simple button {
51 background: #005198;
52 border-radius: .4rem;
53 border: none;
54 color: #fff;
55 cursor: pointer;
56 display: inline-block;
57 padding: 1rem 2rem;
58 text-decoration: none;
59 font-weight: bold;
60 text-align: center;
61 }
62 .search-bar-simple button:hover {
63 background-color: #006ece;
64 transition: all .4s ease;
65 color: #fff;
66 }
67 .search-bar-simple button svg {
68 fill:#fff;
69 }
70 .search-bar-keywords-input-wrapper {
71 display: flex;
72 align-items: center;
73 justify-content: center;
74 }
75 .facet-checkbox-label {
76 cursor: pointer;
77 }
78 .search-total-label {
79 padding-top: 1rem;
80 margin: 0 !important;
81 text-align: center;
82 background-color:#fafafa;
83 }
84 .search-total-label{
85 text-align:center;
86 padding: 2rem 2rem 0;
87 }
88 .lexicon-icon-search{
89 width:1.25rem;
90 height:1.25rem;
91 }
92 .search-total-label { /* MKTG-1030 - Ocultar resultados de búsqueda de mientras no tenemos acceso a estos campos propios de Liferay */
93 display:none;
94 }
95</style>
96
97<style>
98 /* [MKTG-1595] TODO: Cuando se realice la migración completa a 7.4, inyectar estos estilos en el tema
99 Seguramente con quitar los display: none del mix-content bastara */
100 .pagination-bar .pagination .page-item #ffek____, .pagination-bar .pagination .page-item #kwsw____, .pagination-bar .pagination .page-item #fehs____ {
101 display: block;
102 }
103</style>
104
105<#--MKTG-1196: US Date format -->
106<#assign domain = themeDisplay.getPortalDomain() />
107<#assign dateFormat = "dd MMM yyyy"/>
108<#if (domain?contains("us")) || (domain?contains("interlake")) >
109 <#assign dateFormat = "MMMMMMMMM d, yyyy" />
110</#if>
111
112<#assign cdn = (mlxUrlUtilService.getCdn(groupId))!"" />
113
114<div class="corporate--logistics--articles--container">
115 <#if entries?hasContent>
116 <div class="corporate--logistics--articles">
117 <ul class="corporate--logistics--articles--list">
118 <#list entries as document>
119 <#assign article = mlxAssetHelperService.fetchLatestApprovedArticle(getterUtil.getLong(document.getClassPK())!0)!"" >
120 <#if article?hasContent>
121 <#assign articleUrl = mlxUrlUtilService.getUrlByJournalArticle(article, themeDisplay.getLanguageId(), themeDisplay.getScopeGroupId()) >
122 <#assign articleValues = mlxJournalHelperService.getStructureFieldValues(article, themeDisplay.getLanguageId()) >
123 <#assign articleName = (articleValues["article_name"])!"" >
124 <#assign description = (articleValues["description"])!"" />
125 <#assign image = (articleValues["image_list"]?eval)!"" />
126 <#assign imageJSON = jsonFactoryUtil.createJSONObject(image)!{} />
127 <#assign imageUUID = imageJSON.getString("uuid")!"" />
128 <#assign articleImageUrl = mlxDocumentsHelperService.getDocumentUrlFromUUID(imageUUID, locale)!"" />
129 <#assign currStr = article.DDMStructureKey />
130 <#assign publicDate="" />
131
132 <li class="corporate--logistics--articles--list-item">
133 <article class="corporate--logistics--articles--item">
134 <#if articleImageUrl?hasContent>
135 <figure class="corporate--logistics--articles--item-figure">
136 <a href="${articleUrl}" title="${articleName}">
137 <#assign imgUrl = cdn + articleImageUrl />
138 <#assign imgWidth = '320'>
139 <#assign imgTitle = articleName>
140 <#assign imgAlt = articleName>
141 <#assign imgClass = 'corporate--logistics--articles--item-image'>
142 <#assign urlParamConcat = imgUrl?contains("?")?then("&","?")>
143 ${corporate.img(imgUrl + urlParamConcat + 'imwidth=' + imgWidth + '', true,
144 'alt="' + imgAlt + '"', 'title="' + imgTitle + '"', 'class="' + imgClass + '"'
145 'srcset="' + imgUrl + urlParamConcat + 'imwidth=320&imdensity=1 320w,' +
146 imgUrl + urlParamConcat + 'imwidth=640&imdensity=1 640w,' +
147 imgUrl + urlParamConcat + 'imwidth=640&imdensity=1 1024w,' +
148 imgUrl + urlParamConcat + 'imwidth=640&imdensity=1 2048w"')}
149 </a>
150 </figure>
151 </#if>
152 <h2 class="corporate--logistics--articles--item-heading">
153 <a class="corporate--logistics--articles--item-link" href="${articleUrl}" title="${articleName}">${articleName}</a>
154 </h2>
155 <span class="corporate--logistics--articles--item-date"><#assign publicDate = dateUtil.getDate(article.displayDate, dateFormat, locale, timeZoneUtil.getTimeZone("UTC")) />${publicDate!}</span>
156 <p class="corporate--logistics--articles--item-content">${description}</p>
157 </article>
158 </li>
159 <#else>
160 <#if entryClassPK?hasContent>
161 <li class="hide">${document.get("entryClassPK")!""}</li>
162 <#else>
163 <li class="hide">no entryClasPK</li>
164 </#if>
165 </#if>
166 </#list>
167 </ul>
168 </div>
169 <#else>
170 <section class="corporate--section">
171 <@corporate.mlxlanguage key="mlx.client.list.no-results" />
172 </section>
173 </#if>
174</div>