Entête de page

L'Actu

Fil d'Ariane

Retrouvez toute l'actualité de Strasbourg.eu

Éditeur d'actif

Une erreur s'est produite lors du traitement du modèle.
For "." left-hand operand: Expected a hash, but this has evaluated to a string (wrapper: f.t.SimpleScalar):
==> image  [in template "20116#20160#481429133" at line 33, column 44]

----
FTL stack trace ("~" means nesting-related):
	- Failed at: #assign imageId = image.id  [in template "20116#20160#481429133" at line 33, column 25]
----
1<!-- Webmag - Gros slider --> 
2<#setting locale = locale /> 
3<#if !themeDisplay.scopeGroup.publicLayoutSet.virtualHostname?has_content || themeDisplay.scopeGroup.isStagingGroup()> 
4    <#assign homeURL = "/web${layout.group.friendlyURL}/" /> 
5<#else> 
6    <#assign homeURL = "/" /> 
7</#if> 
8<#assign assetPublisherTemplateHelperService = serviceLocator.findService("eu.strasbourg.utils.api.AssetPublisherTemplateHelperService")/> 
9 
10 
11<div class="st-bloc st-bloc-slider-focus st-js-slider-focus splide st-u-overflow-x-hidden st--type-cards" role="group"> 
12 
13    <div class="st-wrapper st-wrapper-small st-bloc-slider-focus__top ${(entries?size gt 4)?then("","st-hide-from@t-portrait")}"> 
14        <div class="splide__arrows st-nav-arrows"> 
15            <button class="splide__arrow splide__arrow--prev st-btn-arrow st--prev"></button> 
16            <button class="splide__arrow splide__arrow--next st-btn-arrow st--next"></button> 
17        </div> 
18    </div> 
19    <div class="st-bloc-slider-focus__track-wrapper"> 
20        <div class="st-wrapper"> 
21            <div class="splide__track st-u-overflow-visible"> 
22                <ul class="splide__list"> 
23                    <#assign assetEntryLocalService=serviceLocator.findService("com.liferay.asset.kernel.service.AssetEntryLocalService") /> 
24                    <#assign assetVocabularyHelper=serviceLocator.findService("eu.strasbourg.utils.api.AssetVocabularyHelperService") /> 
25 
26                    <#list entries as curEntry> 
27                        <#assign content = strasbourg.buildFieldValues(curEntry.getClassPK()) /> 
28                        <#assign asset=assetEntryLocalService.getEntry('com.liferay.journal.model.JournalArticle', curEntry.getAssetRenderer().getArticle().getResourcePrimKey())> 
29                        <#assign newsTypes=assetVocabularyHelper.getAssetEntryCategoriesByVocabulary(asset, "type d'actualite" ) /> 
30                        <#assign title = content.title /> 
31                        <#assign chapo = content.chapo /> 
32                        <#assign image = content.thumbnail /> 
33                        <#assign imageId = image.id /> 
34                        <#assign currentURL = assetPublisherHelper.getAssetViewURL(renderRequest, renderResponse, curEntry) /> 
35                        <#assign viewURL = curEntry.getAssetRenderer().getURLViewInContext(renderRequest, renderResponse, currentURL) /> 
36                        <#assign id = curEntry.getAssetRenderer().getArticle().getArticleId() /> 
37                        <li class="splide__slide"> 
38                            <div class="st-card-container"> 
39                                <a href="${viewURL}" class="st-card "> 
40                                    <div class="st-caption"> 
41                                        <h3 class="st-title-card">${title}</h3> 
42                                        <p class="st-surtitre-cat">${newsTypes?map(news -> news.getTitle(locale))?join(', ')}</p> 
43                                        <p class="st-text">${chapo}</p> 
44                                    </div> 
45                                    <div class="st-image"> 
46                                        <@strasbourg.addImage fileEntryId=imageId maxWidth=265 showLegende=false showCopyright=false isFigure=true /> 
47                                    </div> 
48                                </a> 
49                            </div> 
50                        </li> 
51                    </#list> 
52                </ul> 
53            </div> 
54        </div> 
55    </div> 
56    <div class="st-wrapper st-wrapper-small st-bloc-slider-focus__bottom"> 
57        <ul class="splide__pagination st-nav-dots"></ul> 
58        <a href="/actualite" class="st-btn st--btn-secondary st--btn-full-width-mobile st-btn-cta"> 
59<@liferay_ui.message key="eu.news.all-news" /> 
60        </a> 
61    </div> 
62</div> 
63 
64<div class="st-wrapper st-wrapper-small st-bloc-separateur" role="group"> 
65</div> 

Éditeur d'actif

Portraits