52 résultats
Résultats par page
angle-left Nouveaux arrivants à Strasbourg
Une erreur s'est produite lors du traitement du gabarit.
Java method "com.sun.proxy.$Proxy441.getArticle(long, String)" threw an exception when invoked on com.sun.proxy.$Proxy441 object "com.liferay.journal.service.impl.JournalArticleLocalServiceImpl@54bfb6e1"; see cause exception in the Java stack trace.

----
FTL stack trace ("~" means nesting-related):
	- Failed at: #assign journalArticle = journalArtic...  [in template "20116#20160#1064299" at line 70, column 9]
----
1<#setting locale = locale /> 
2<#assign serviceContext = staticUtil["com.liferay.portal.kernel.service.ServiceContextThreadLocal"].getServiceContext() /> 
3<#assign themeDisplay = serviceContext.getThemeDisplay() /> 
4<#assign currentUrl = themeDisplay.getPortalURL() + themeDisplay.getURLCurrent() /> 
5<#if !themeDisplay.scopeGroup.publicLayoutSet.virtualHostname?has_content || themeDisplay.scopeGroup.isStagingGroup()> 
6    <#assign homeURL = "/web${layout.group.friendlyURL}/" /> 
7<#else> 
8    <#assign homeURL = "/" /> 
9</#if> 
10 
11<#-- Récupération de DateHelper pour le format date --> 
12<#assign dateHelperService = serviceLocator.findService("eu.strasbourg.utils.api.DateHelperService") /> 
13 
14<#-- <@liferay_util["html-top"]> 
15    <meta property="og:title" content="${title.getData()?html}" /> 
16    <meta property="og:description" content="${chapo.getData()?replace("<[^>]*>", "", "r")?html}" /> 
17    <meta property="og:url" content="${currentUrl}" /> 
18    <#if thumbnail.getData()?has_content> 
19        <#assign imageUrl = themeDisplay.getPortalURL() + thumbnail.getData() /> 
20    </#if> 
21    <#if !thumbnail.getData()?has_content> 
22        <#if image.getData()?has_content> 
23            <#assign imageUrl = themeDisplay.getPortalURL() + image.getData() /> 
24        </#if> 
25        <#if !image.getData()?has_content> 
26            <#assign layout = themeDisplay.getLayout() /> 
27            <#if layout.expandoBridge.getAttribute('image')?has_content> 
28                <#assign imageUrl = themeDisplay.getPortalURL() + layout.expandoBridge.getAttribute('image') /> 
29            </#if> 
30        </#if> 
31    </#if> 
32    <#if imageUrl?has_content> 
33        <#assign imageUrl = imageUrl?replace('https:','http:') /> 
34        <#assign AssetPublisherTemplateHelper = serviceLocator.findService("eu.strasbourg.utils.api.AssetPublisherTemplateHelperService") /> 
35        <#assign taille = AssetPublisherTemplateHelper.getImageWidthHeight(imageUrl) /> 
36        <meta property="og:image" content="${imageUrl}"/> 
37        <meta property="og:image:width" content="${taille?keep_before(',')}"/> 
38        <meta property="og:image:height" content="${taille?keep_after(',')}"/> 
39    </#if> 
40    <meta property="og:title" content="${title.getData()?html}" /> 
41    <meta property="og:description" content="${chapo.getData()?replace("<[^>]*>", "", "r")?html}" /> 
42    <meta property="og:url" content="${currentUrl}" /> 
43    <#assign imageUrl = 'http://www.touch-as-strasbourg.com/media/uploaded/sites/10468/partenaire/57a9e032cf93f_eurometropole.png' /> 
44    <meta property="og:image:width" content="500"/> 
45    <meta property="og:image:height" content="300"/> 
46</@> 
47--> 
48 
49<main class="seu-container" style="margin-bottom: 50px"> 
50    <div class="detail-line"> 
51        <div class="filler"></div> 
52        <p class="seu-published"> 
53            <@liferay_ui.message key="eu.published-on" />  
54            ${dateHelperService.displayShortDate(dateHelperService.convertStringToDate(.vars['reserved-article-display-date'].getData(), "EEE, dd MMM yyyy hh:mm:ss Z"), locale)}  
55            - <@liferay_ui.message key="eu.modified-on" />  
56            ${dateHelperService.displayShortDate(dateHelperService.convertStringToDate(.vars['reserved-article-modified-date'].getData(), "EEE, dd MMM yyyy hh:mm:ss Z"), locale)}  
57        </p> 
58        <a href="#" class="add-favorites" 
59            data-type="6"  
60            data-title="${title.getData()}"  
61            data-url="${currentUrl}"  
62            data-group-id=${themeDisplay.scopeGroupId} 
63            data-id="${.vars['reserved-article-id'].data}"> 
64            <span><@liferay_ui.message key="eu.add-to-favorite" /></span> 
65        </a> 
66    </div> 
67    <h1> 
68        ${title.getData()} 
69        <#assign journalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService")> 
70        <#assign journalArticle = journalArticleLocalService.getArticle(groupId, .vars['reserved-article-id'].data)> 
71        <#assign assetEntryLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetEntryLocalService") /> 
72        <#assign asset = assetEntryLocalService.getEntry('com.liferay.journal.model.JournalArticle', journalArticle.getResourcePrimKey()) > 
73        <#assign assetVocabularyHelper = serviceLocator.findService("eu.strasbourg.utils.api.AssetVocabularyHelperService") /> 
74        <#assign newsTypes = assetVocabularyHelper.getAssetEntryCategoriesByVocabulary(asset, "type d'actualite") /> 
75        <#if newsTypes?has_content> 
76            <p class="seu-event-categories"> 
77                <#list newsTypes as type> 
78                        <a href="${homeURL}actualite?_eu_strasbourg_portlet_search_asset_SearchAssetPortlet_categoriesIds=${type.getCategoryId()}&p_p_id=eu_strasbourg_portlet_search_asset_SearchAssetPortlet"> 
79                            ${type.getTitle(locale)} 
80                        </a> 
81                        <#sep>, </#sep> 
82                </#list> 
83            </p> 
84        </#if> 
85    </h1> 
86    <div class="hat"> 
87        <div> 
88            ${chapo.getData()} 
89        </div> 
90    </div> 
91    <div class="rte"> 
92        ${content.getData()} 
93    </div> 
94</main> 
95<#if image.getData()?has_content> 
96    <script> 
97        if ($('.region-banner').length == 0) { 
98            var bannerHtml = '<div class="region-banner"></div>'; 
99            $('.region-post-header').addClass('has-banner').prepend(bannerHtml); 
100
101    </script> 
102    <style> 
103        .region-banner { 
104            background-image: url(${image.getData()}) !important; 
105
106    </style> 
107</#if> 
108<style> 
109.search-asset-portlet, .page-header { 
110    display: none !important; 
111
112</style>