News - APN

News

Une erreur s'est produite lors du traitement du gabarit.
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:
==> image?eval  [in template "48800#48835#501105" at line 16, column 27]

----
FTL stack trace ("~" means nesting-related):
	- Failed at: imgJson = image?eval  [in template "48800#48835#501105" at line 16, column 17]
	- Reached through: #assign-container  [in template "48800#48835#501105" at line 8, column 13]
----
1<#assign  
2    liferay_ui = taglibLiferayHash["/META-INF/liferay-ui.tld"]  
3/> 
4<#if entries?has_content> 
5    <div class="news max2"> 
6        <div class="row"> 
7        <#list entries as curEntry> 
8            <#assign  
9                assetRenderer = curEntry.getAssetRenderer() 
10                docXml = saxReaderUtil.read(curEntry.getAssetRenderer().getArticle().getContentByLocale(locale.toString())) 
11                entryTitle = htmlUtil.escape(assetRenderer.getTitle(locale))  
12                content = docXml.valueOf("//dynamic-element[@name='Inhalt']/dynamic-content/text()") 
13                summary = htmlUtil.extractText(content) 
14                viewURL = assetPublisherHelper.getAssetViewURL(renderRequest, renderResponse, curEntry)  
15                image = docXml.valueOf("//dynamic-element[@name='Bild']/dynamic-content/text()") 
16                imgJson = image?eval 
17                imageURL = "/c/document_library/get_file?uuid=" + imgJson.uuid + "&groupId=" + groupId 
18            /> 
19            <#if assetLinkBehavior != "showFullContent"> 
20                <#assign viewURL = assetRenderer.getURLViewInContext(renderRequest, renderResponse, viewURL) /> 
21            </#if> 
22            <div class="entry col-xs-12 col-sm-6 col-lg-4"> 
23                <div class="inner"> 
24                    <div class="aspect-ratio aspect-ratio-16-to-9 mb-3"> 
25                        <div class="inner" style="background:url(${imageURL}) center/cover;"> 
26                            <span class="date"> 
27                                <b>${dateUtil.getDate(curEntry.getPublishDate(), "dd", locale)} /</b> 
28                                ${dateUtil.getDate(curEntry.getPublishDate(), "MMM", locale)} 
29                            </span> 
30                             
31                        </div> 
32                    </div> 
33                    <h3>${entryTitle}</h3> 
34                    ${stringUtil.shorten(summary, 300)} 
35                    <a class="stretched-link" href="${viewURL}"></a> 
36                    <a class="more" href="${viewURL}">Mehr</a> 
37                    <div class="edit"><@getEditIcon /></div> 
38                </div> 
39            </div> 
40        </#list> 
41        </div> 
42    </div> 
43<#else> 
44    Kein Eintrag vorhanden 
45    ${renderRequest.setAttribute("PORTLET_CONFIGURATOR_VISIBILITY", true)} 
46</#if> 
47 
48<#macro getEditIcon> 
49    <#if assetRenderer.hasEditPermission(themeDisplay.getPermissionChecker())> 
50        <#assign redirectURL = renderResponse.createRenderURL() /> 
51  
52        ${redirectURL.setParameter("mvcPath", "/add_asset_redirect.jsp")} 
53        ${redirectURL.setWindowState("pop_up")} 
54  
55        <#assign editPortletURL = assetRenderer.getURLEdit(renderRequest, renderResponse, windowStateFactory.getWindowState("pop_up"), redirectURL)!"" /> 
56  
57        <#if validator.isNotNull(editPortletURL)> 
58            <#assign title = languageUtil.format(locale, "edit-x", entryTitle, false) /> 
59  
60            <@liferay_ui["icon"] 
61                cssClass="icon-monospaced visible-interaction" 
62                icon="pencil" 
63                markupView="lexicon" 
64                message=title 
65                url="javascript:Liferay.Util.openWindow({id:'" + renderResponse.getNamespace() + "editAsset', title: '" + title + "', uri:'" + htmlUtil.escapeURL(editPortletURL.toString()) + "'});" 
66            /> 
67        </#if> 
68    </#if> 
69</#macro> 

Organisations responsables