08/29/2024

Miguel

Summary title

 

Content title

Btn mobile

Related news

An error occurred while processing the template.
The following has evaluated to null or missing:
==> title  [in template "20115#20151#3617708" at line 44, column 24]

----
Tip: If the failing expression is known to legally refer to something that's sometimes null or missing, either specify a default value like myOptionalVar!myDefault, or use <#if myOptionalVar??>when-present<#else>when-missing</#if>. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)??
----

----
FTL stack trace ("~" means nesting-related):
	- Failed at: ${title}  [in template "20115#20151#3617708" at line 44, column 22]
----
1<#assign currentLayoutHTMLTitle=layout.getHTMLTitle(locale) /> 
2<#assign PortalUtil=staticUtil["com.liferay.portal.kernel.util.PortalUtil"] /> 
3<#assign url=PortalUtil.getCurrentCompleteURL(request) /> 
4<#assign currentLayoutHTMLTitle=layout.getHTMLTitle(locale) /> 
5<#assign currentLayoutHTMLDescription=layout.getDescription(locale) /> 
6<#assign portletDisplay=themeDisplay.getPortletDisplay()> 
7  <#assign assetInstanceId=portletDisplay.getInstanceId()> 
8    <@liferay_portlet["runtime"] 
9      portletName="com_liferay_journal_content_web_portlet_JournalContentPortlet" 
10      instanceId="${groupId}${assetInstanceId}${companyId}" /> 
11    <section class="cards-news"> 
12      <script type="application/ld+json"> 
13
14        "@context": "https://schema.org", 
15        "@type": "BlogEntryList", 
16        "mainEntity": [ < 
17          #list entries as entry > 
18
19          #assign renderer = entry.getAssetRenderer() / > 
20
21          #assign className = renderer.getClassName() / > 
22
23          #if(className == "com.liferay.journal.model.JournalArticle") > 
24
25          #assign title = entry.getTitle(locale) / > 
26
27          #assign summary = entry.getSummary(locale) / > 
28
29          #assign journalArticle = renderer.getArticle() / > 
30
31          #assign miniImageId = journalArticle.getSmallImageId() > 
32
33          #if miniImageId ? has_content > 
34
35          #assign miniImageURL = "/image/image_gallery?img_id=" + miniImageId > 
36
37          #else > 
38
39          #assign miniImageURL = journalArticle.getSmallImageURL() > 
40
41          /#if> < 
42          #assign creationDate = journalArticle.getCreateDate() ? date / > { 
43            "@type": "Article", 
44            "name": "${title}", 
45            "content": { 
46              "headline": "${title}", 
47              "description": "${htmlUtil.stripHtml(summary)}", 
48              "image": "${miniImageURL}", 
49              "author": { 
50                "@type": "Organization", 
51                "name": "AXA Assistance" 
52              }, 
53              "publisher": { 
54                "@type": "Organization", 
55                "name": "AXA Assistance", 
56                "logo": { 
57                  "@type": "ImageObject", 
58                  "url": "" 
59
60                "datePublished": "${creationDate}" 
61
62
63          } < 
64          /#if> < 
65          /#list> 
66
67
68      </script> 
69      <!-- article  --> 
70      <#if entries?has_content> 
71        <div class="cards-news__cards-group"> 
72          <#list entries as entry> 
73            <#assign renderer=entry.getAssetRenderer() /> 
74            <#assign className=renderer.getClassName() /> 
75            <#if (className=="com.liferay.journal.model.JournalArticle" )> 
76              <#assign title=entry.getTitle(locale) /> 
77              <#assign summary=entry.getSummary(locale) /> 
78              <#assign link_more=assetPublisherHelper.getAssetViewURL(renderRequest, renderResponse, entry, true)?split("?")[0] /> 
79              <#assign journalArticle=renderer.getArticle() /> 
80              <#assign miniImageId=journalArticle.getSmallImageId()> 
81                <#assign userLocale=localeUtil.getDefault()> 
82                  <#if userLocale=="en_US"> 
83                    <#assign displayDateFormatted=journalArticle.getCreateDate()?string('MM/dd/yyyy') /> 
84                    <#else> 
85                      <#assign displayDateFormatted=journalArticle.getCreateDate()?string('dd/MM/yyyy') /> 
86                  </#if> 
87                  <#if miniImageId?has_content> 
88                    <#assign miniImageURL="/image/image_gallery?img_id=" +miniImageId> 
89                      <#else> 
90                        <#assign miniImageURL=journalArticle.getSmallImageURL()> 
91                  </#if> 
92                  <a class="cards-news__card" href="${link_more}"> 
93                    <figure class="cards-news__image-container"> 
94                      <#if miniImageURL?has_content> 
95                        <img class="cards-news__image lazyload" alt="${title}" data-src="${miniImageURL}" src="${miniImageURL}" /> 
96                      </#if> 
97                    </figure> 
98                    <div class="cards-news__summary-info"> 
99                      <h2 class="cards-news__title"> 
100                        ${title} 
101                      </h2> 
102                      <p class="cards-news__summary"> 
103                        ${htmlUtil.stripHtml(summary)} 
104                      </p> 
105                      <span class="cards-news__link"> 
106                        <@liferay.language key="read-more" /> <i class="icon-navigate_next" aria-hidden="true"></i> 
107                      </span> 
108                    </div> 
109                    <div class="cards-news__info"> 
110                      <span class="cards-news__time"> 
111                        ${displayDateFormatted} 
112                      </span> 
113                    </div> 
114                  </a> 
115            </#if> 
116          </#list> 
117        </div> 
118      </#if> 
119    </section> 
120    <script type="text/javascript"> 
121    function pushDataLayerBlogArticles(url, contentName) { 
122      var linkType = isInternalUrl(url); 
123      dataLayer.push({ 
124        "event": "select_content", 
125        'content_type': 'blog', 
126        'content_name': contentName, 
127        'link_type': linkType, 
128        'link_href': url, 
129        'ipAddress': themeDisplay.getRemoteAddr() 
130      }); 
131
132    </script> 
Buton label to asset publisher page