Dossieres
Eduki publikatzailea
Errorea gertatu da txantiloia prozesatzerakoan.
Failed to "?eval" string with this error: ---begin-message--- Syntax error in ?eval-ed string in line 1, column 2: Encountered ")", but was expecting one of: <STRING_LITERAL> <RAW_STRING> "false" "true" <INTEGER> <DECIMAL> "." "+" "-" "!" "[" "(" "{" <ID> ---end-message--- The failing expression: ==> imagen?eval [in template "4151512#4151560#4173880" at line 31, column 46] ---- FTL stack trace ("~" means nesting-related): - Failed at: #assign map_image = imagen?eval [in template "4151512#4151560#4173880" at line 31, column 25] ----
1<!-- Plantilla - Listado - start (a partir de aqui se puede modificar cualquiewr cosa) -->
2<!-- SERVICES -->
3
4<#assign classNameLocalService = serviceLocator.findService("com.liferay.portal.kernel.service.ClassNameLocalService")>
5<#assign journalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService")>
6<#assign dlFileEntryLocalService = serviceLocator.findService("com.liferay.document.library.kernel.service.DLFileEntryLocalService")>
7
8<!-- VARIABLES -->
9
10<#assign journalArticleClassName = "com.liferay.journal.model.JournalArticle">
11<#assign journalArticleClassNameId = classNameLocalService.getClassNameId(journalArticleClassName)>
12
13<!-- TEMPLATE -->
14
15<div id="content" class="ifj-page-listado-fucsia">
16 <div class="container-fluid-1280">
17 <hr />
18 <#if entries?has_content>
19 <#list entries as curEntry>
20
21 <#assign renderer = curEntry.getAssetRenderer() >
22 <#assign className = renderer.getClassName() >
23
24 <#if validator.equals(className?string, journalArticleClassName?string) >
25 <#assign journalArticle = renderer.getArticle() >
26 <#assign document = saxReaderUtil.read(journalArticle.getContentByLocale(locale)) >
27 <#assign rootElement = document.getRootElement() >
28
29 <#assign titulo = saxReaderUtil.createXPath("dynamic-element[@name='title']").selectSingleNode(rootElement).getStringValue() >
30 <#assign imagen = saxReaderUtil.createXPath("dynamic-element[@name='image']/dynamic-content").selectSingleNode(rootElement).getStringValue() >
31 <#assign map_image = imagen?eval>
32 <#assign entryGroupId = getterUtil.getLong(map_image.groupId) />
33 <#assign dlFileEntry = dlFileEntryLocalService.getDLFileEntryByUuidAndGroupId(map_image.uuid,entryGroupId) />
34
35 <#assign alt = saxReaderUtil.createXPath("dynamic-element[@name='image']/dynamic-element[@name='altText']/dynamic-content").selectSingleNode(rootElement).getStringValue() >
36 <#assign descripcion = saxReaderUtil.createXPath("dynamic-element[@name='description']").selectSingleNode(rootElement).getStringValue() >
37 <#assign link = renderer.getURLViewInContext(renderRequest, renderResponse, '') >
38 <#assign linkTitulo = "/-/"+journalArticle.getUrlTitle()>
39
40 <div class="portlet-content col-md-6 col-md-offset-3">
41 <a class="col-sm-12 ifj-list-item" href="${linkTitulo}">
42 <div class="row">
43 <div class="hidden-xs col-sm-3">
44 <img src="/documents/${map_image.groupId}/${dlFileEntry.fileEntryId}/${map_image.title}/${map_image.uuid}" alt="${alt}" />
45 </div>
46 <div class="col-sm-9">
47 <h2 class="ifj-list-title" href="${linkTitulo}">${titulo?upper_case}</h2>
48 <ul class="list-unstyled">
49 <li>${stringUtil.shorten(htmlUtil.extractText(descripcion), 150)}</li>
50 </ul>
51 <div class="btn btn-default btn-sm" href="${linkTitulo}"><@liferay.language key="ifj.theme.InfoGaztea.verArticulo" /></div>
52 </div>
53 </div>
54 </a>
55 <div class="col-sm-12"><hr /></div>
56 </div>
57 </#if>
58 </#list>
59 </#if>
60 </div>
61</div>
62<!-- Plantilla - Listado - end (hasta aqui se puede modificar cualquiewr cosa) -->
— 5 Elementu orri bakoitzeko