June 27, 2024
Sorry, this content is not available in an english version.
Switch to the french version or
Read more
An error occurred while processing the template.
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: ==> imageElem?eval [in template "20101#20128#null" at line 73, column 46] ---- FTL stack trace ("~" means nesting-related): - Failed at: #assign imageJSON = imageElem?eval [in template "20101#20128#null" at line 73, column 25] ----
1<#-- Article Display 2 -->
2
3<#include init />
4
5<#assign _request=request>
6
7
8<#--<#include "${full_templates_path}/homepage/article_display2.ftl" />-->
9<#assign fileEntryServiceUtil = objectUtil("com.liferay.document.library.kernel.service.DLFileEntryLocalServiceUtil")>
10<#--
11Article Display 2
12-->
13<#include init/>
14<link rel="stylesheet" href="${themeDisplay.getPathThemeCss()}/articleDisplay2.css"/>
15<#assign imageJSON = "{}"?eval>
16<#assign title = "No title">
17<#assign summary = "No summary">
18<#assign category = "No category">
19<#assign categoryName = "No Title">
20<#assign publishDate = "">
21<#assign pdfUrl = "">
22<#if curEntry??>
23 <#assign renderer = curEntry.getAssetRenderer()>
24 <#assign className = renderer.getClassName()>
25 <#if className == "com.liferay.journal.model.JournalArticle">
26 <#assign journalArticle = renderer.getArticle()>
27 <#assign journalArticleId = journalArticle.getArticleId()>
28 </#if>
29<#else>
30 <#assign journalArticleId = .vars['reserved-article-id'].data>
31 <#-- journalArticle.getDescription() returns the diacritical description wraped in <span> => assetEntry.getSummary() -->
32 <#assign journalArticleLocalServiceUtil = staticUtil["com.liferay.journal.service.JournalArticleLocalServiceUtil"]>
33 <#assign journalArticle = journalArticleLocalServiceUtil.getLatestArticle(themeDisplay.getScopeGroupId(), journalArticleId)>
34 <#assign journalArticleResourcePrimKey = journalArticle.getResourcePrimKey()>
35 <#assign assetEntryLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetEntryLocalService")>
36 <#assign curEntry = assetEntryLocalService.getEntry("com.liferay.journal.model.JournalArticle", journalArticleResourcePrimKey)>
37 <#assign renderer = curEntry.getAssetRenderer()>
38</#if>
39<#assign journalArticleTitle = renderer.getTitle(locale)>
40<#if journalArticleTitle?hasContent>
41 <#if journalArticleTitle?length < 115>
42 <#assign title = journalArticleTitle>
43 <#else>
44 <#assign title = journalArticleTitle?substring(0,115) + "...">
45 </#if>
46</#if>
47
48<#assign journalArticleSummary = htmlUtil.extractText(curEntry.getSummary(locale))>
49<#if journalArticleSummary?hasContent>
50 <#if journalArticleSummary?length < 110>
51 <#assign summary = journalArticleSummary>
52 <#else>
53 <#assign summary = journalArticleSummary?substring(0,107) + "...">
54 </#if>
55</#if>
56<#list curEntry.getCategories() as journalArticleCategory>
57 <#assign category = journalArticleCategory.getTitle(locale)> <#-- only one category can be used -->
58 <#assign categoryName= journalArticleCategory.getName()>
59 <#break>
60</#list>
61
62<#if curEntry.publishDate?hasContent>
63 <#setting dateFormat=display_date_format>
64 <#setting locale = locale.getLanguage()>
65 <#assign publishDate = curEntry.publishDate?date>
66</#if>
67<#assign document = saxReaderUtil.read(journalArticle.getContentByLocale(locale))>
68<#assign rootElement = document.getRootElement()>
69<#list rootElement.elements() as dynamicElement>
70 <#switch dynamicElement.attributeValue("name")>
71 <#case "image1">
72 <#assign imageElem = dynamicElement.element("dynamic-content").getText()>
73 <#assign imageJSON = imageElem?eval>
74 <#break>
75 <#case "pdfFile">
76 <#assign pdfElem = dynamicElement.element("dynamic-content").getText()>
77 <#if validator.isNotNull(pdfElem)>
78 <#assign pdfJSON = pdfElem?eval>
79 <#assign pdfUrl = "/c/document_library/get_file?uuid=" + pdfJSON.uuid + "&groupId=" + pdfJSON.groupId>
80 <#assign pdfFile = fileEntryServiceUtil.getFileEntryByUuidAndGroupId(pdfJSON.uuid, pdfJSON.groupId?number)>
81 <#assign pdfFileSize = pdfFile.getSize()/1024>
82 <#assign pdfFileType = pdfFile.getExtension()>
83 </#if>
84 <#break>
85 <#default>
86 </#switch>
87</#list>
88
89<#include "${full_templates_path}/inc/redirect_actualites_portlet.ftl" />
90<#assign articleUrl =getUrlArticle(journalArticle.getUrlTitle(locale)) />
91
92<#assign structure = journalArticle.getDDMStructure()/>
93<#assign isComDePresse = structure.getName(locale) == "Press_release">
94
95
96
97
98
99
100<#assign notFromCarousel = !fromCarousel?? || !fromCarousel>
101
102<div class="<#if notFromCarousel>rectangle-article-display2<#else>carousel-rectangle</#if>" >
103
104<#if notFromCarousel>
105 <div class="image-article-display2">
106
107 <#if imageJSON?hasContent>
108 <a href='${articleUrl}'>
109 <img alt="${imageJSON.alt}" aria-hidden="true" data-fileentryid="${imageJSON.fileEntryId}" class=" " loading="lazy" loading="lazy" src="/documents/${imageJSON.groupId}/${imageJSON.uuid}"/>
110 </a>
111 <#else>
112 <#if imageElem?hasContent>
113 <a href='${articleUrl}'>
114 <img alt="${imageElem.getAttribute('alt')}" aria-hidden="true" data-fileentryid="${imageElem.getAttribute('fileEntryId')}" class=" " loading="lazy" loading="lazy" src="${imageElem.getData()}" />
115 </a>
116 </#if>
117 </#if>
118 </div>
119</#if>
120 <div class="<#if notFromCarousel>box-text-article-display2 wording-block-article-display2</#if>">
121 <div class="<#if notFromCarousel>wording-article-display2</#if>">
122 <div class="<#if notFromCarousel>categorie-article-display2<#else>carousel-category</#if>" >
123 <a href='${actualite_url_portlet+categoryName+"/1"}' >${category}</a>
124 </div>
125 <h3 <#if notFromCarousel && imageJSON?hasContent> id="${journalArticleId}" </#if> class="<#if notFromCarousel>titre-de-l-actualite-article-display2<#else>carousel-title</#if>"><a href='${articleUrl}'>${title}</a></h3>
126 <p class="<#if notFromCarousel>petite-description-d-article-display2<#else>carousel-description</#if>">${summary}</p>
127 </div>
128<#if notFromCarousel>
129 <#if isComDePresse>
130 <div class="download-article_display2">
131 <#if pdfUrl?hasContent>
132 <div class="date-article-display2">
133 <div style="overflow:hidden; float:left;">${publishDate}</div>
134 <a href='${pdfUrl}' target='_blank' >
135 <div class="telecharger-article_display2" style="float:left;"><@liferay.language key="bnpparibas.cardif.portlet.telecharger" /> (${pdfFileSize?string("0")} ko ${pdfFileType})</div>
136 <div class="icn-download-article_display2" style="float:right;">
137 <img style="float:right; margin-top: 0px;margin-bottom: 0px;margin-left: 16px;" class=" " aria-hidden="true" alt="<@liferay.language key="bnpparibas.cardif.portlet.telecharger" />" loading="lazy" loading="lazy" src="${themeDisplay.getPathThemeImages()}/cardif/press_release/download.png"/>
138 </div>
139 </a>
140 </div>
141 <#else>
142 <div class="date-article-display2">
143 <div style="overflow:hidden; float:left;">${publishDate}</div>
144 </div>
145 </#if>
146 </div>
147 <#else>
148 <div class="date-article-display2">${publishDate}</div>
149 </#if>
150</#if>
151 </div>
152</div>
How can artificial intelligence (AI) make insurance more accessible?
Discover how AI is revolutionizing insurance, enhancing customer service, and optimizing business operation...
09 February 2024
The transformation of the actuarial profession
As an emblematic profession in the insurance sector, actuaries are experts in mathematical and statistical ...
17 May 2023