Your privacy is important to us

VidaCaixa uses proprietary and third-party cookies to analyse your browsing for statistical purposes, customisation (ej. video volume) and to show you customised advertising from a profile developed based on your browsing (e.g. clicks on content).
Click for MORE INFORMATION or TO CONFIGURE OR REJECT YOUR USE. You can also accept all cookies by pressing the "Accept and continue browsing" button.

VidacaixaCorporativoBuscadorHeader

Asset Publisher

An error occurred while processing the template.
Java method "com.liferay.portal.kernel.util.DateUtil_IW.parseDate(String, String, Locale)" threw an exception when invoked on com.liferay.portal.kernel.util.DateUtil_IW object "com.liferay.portal.kernel.util.DateUtil_IW@547580b1"; see cause exception in the Java stack trace.

----
FTL stack trace ("~" means nesting-related):
	- Failed at: #assign date_DateObj = dateUtil.parse...  [in template "20155#20195#51457" at line 110, column 17]
----
1<#assign layoutService = serviceLocator.findService("com.liferay.portal.kernel.service.LayoutLocalService")/> 
2<#assign layoutId = plid/> 
3<#assign layoutIdLong = getterUtil.getLong(layoutId)/> 
4<#assign currentLayout = layoutService.getLayout(layoutIdLong)/> 
5<#assign siteURL = "/"/> 
6<#assign includeUrlPath = currentLayout.getGroup().getExpandoBridge().getAttribute("incluir-path-url")/> 
7<#if includeUrlPath> 
8    <#assign siteURL = "/web" + currentLayout.getGroup().friendlyURL/> 
9</#if> 
10<#assign literalTools = serviceLocator.findService("com.vidacaixa.services.service.LiteralsToolsLocalService")/> 
11<#assign scopeGroupId = scopeGroupId/> 
12<#if margin.getData()?trim == "SI"> 
13    <#assign top = ""/> 
14<#else> 
15    <#assign top = "notop"/> 
16</#if> 
17 
18<#assign dlFileEntryService = serviceLocator.findService("com.liferay.document.library.kernel.service.DLFileEntryLocalService")/> 
19<#assign groupId = scopeGroupId/> 
20<#assign documentUrl=""> 
21 
22 
23<div class="cv-news"> 
24    <div class="cv-modal"> 
25        <div class="cv-modal-back"> 
26        </div> 
27        <div id="modal" class="cv-modal-front"> 
28            <div class="cv-modal-close"> 
29                <a onclick="btnCloseModal(this)"> 
30                    <img src="${themeDisplay.getPathThemeImages()}/close.svg"> 
31                </a> 
32            </div> 
33            <p class="cv-modal-title cv-title--semibold cv-title--S">${literalTools.getLiteral(scopeGroupId, locale, 'corporativo.prensa.titulo')}</p> 
34            <p>${literalTools.getLiteral(scopeGroupId, locale, 'corporativo.prensa.subtitulo')}</p> 
35            <div class="cv-download" style="margin: 64px 0;"> 
36                <ul class="cv-download__container" id="fileList"> 
37                    <#if titleDownloadableContent?? && titleDownloadableContent.getData()?has_content> 
38                        <#if titleDownloadableContent.getSiblings()?has_content> 
39                            <#list titleDownloadableContent.getSiblings() as cur_titleDownloadableContent> 
40 
41                                <#assign documentUrl = cur_titleDownloadableContent.downloadableContent.getData()/> 
42 
43                                <#if documentUrl?has_content> 
44                                    <#assign lastIndex = documentUrl?last_index_of('/') + 1/> 
45                                    <#if (lastIndex >= 0)> 
46                                        <#assign uuid = documentUrl?substring(lastIndex)/> 
47                                        <#assign paramIndex = uuid?last_index_of('?')/> 
48                                        <#if (paramIndex >= 0)> 
49                                            <#assign uuid = uuid?substring(0, paramIndex)/> 
50                                        </#if> 
51                                    </#if> 
52 
53                                    <#assign fileEntry = dlFileEntryService.getDLFileEntryByUuidAndGroupId(uuid, groupId)/> 
54 
55                                    <#assign fileName = documentUrl?split('/')[4]/> 
56                                </#if> 
57 
58                                <#if (fileEntry.getSize() < 1024)> 
59                                    <#assign size = "(" + fileEntry.getSize()?round + " Bytes" + ")"/> 
60                                <#elseif (fileEntry.getSize() < 1048576)> 
61                                    <#assign size = "(" + (fileEntry.getSize()/1024)?round + " KB" + ")"/> 
62                                <#elseif (fileEntry.getSize() < 1073741824)> 
63                                    <#assign size = "(" + ((fileEntry.getSize()/1024)/1024)?round + " MB" + ")"/> 
64                                <#elseif (fileEntry.getSize() < 1099511627776)> 
65                                    <#assign size = "(" + (((fileEntry.getSize()/1024)/1024)/1024)?round + " GB" + ")"/> 
66                                <#else> 
67                                    <#assign size = ""/> 
68                                </#if> 
69 
70                                <li> 
71                                    <a target="_blank" href="${cur_titleDownloadableContent.downloadableContent.getData()}" download class="cv-download__tab"> 
72                                        <#assign mimeType = fileEntry.getMimeType()?split("/")[0]/> 
73                                        <#if (mimeType == "image" || mimeType == "video")> 
74                                            <#assign styleType = "image"/> 
75                                        <#else> 
76                                            <#assign styleType = "document"/> 
77                                        </#if> 
78                                        ${cur_titleDownloadableContent.getData()} ${size} 
79                                        <div class="cv-download__icon"> 
80                                                <div src="" alt="" class="cv-download__icon-img cv-download__icon-img--${styleType}"></div> 
81                                                <p class="cv-paragraph-regular cv-paragraph-regular--2XS"> 
82                                                    ${(fileName?substring(fileName?last_index_of('.')+1, fileName?length))?upper_case} 
83                                                </p> 
84                                        </div> 
85                                    </a> 
86                                </li> 
87                            </#list> 
88                        </#if> 
89                    </#if> 
90                </ul> 
91                <#if documentUrl!=""> 
92                    <button style="margin-bottom: 50px;" class="cv-button cv-button--primary" onclick="downloadAll(this)"> 
93                        ${literalTools.getLiteral(scopeGroupId, locale, 'corporativo.prensa.descargar')} 
94                    </button> 
95                </#if> 
96            </div> 
97        </div> 
98    </div> 
99 
100    <header class="cv-banner__secondary cv-banner__imagen" style="background-image: url('${image.getData()}');"></header> 
101 
102    <#if documentUrl!=""> 
103        <button class="cv-button cv-button--secondary" onclick="btnOpenModal(this)">${literalTools.getLiteral(scopeGroupId, locale, 'corporativo.prensa.kit')}</button> 
104    </#if> 
105    <div class="cv-news__content"> 
106        <time datetime="" class="cv-news__date cv-uppercase cv-uppercase-bold cv-uppercase-bold--XS"> 
107            ${locate.getData()?upper_case} 
108            <#assign date_Data = getterUtil.getString(date.getData())/> 
109            <#if (validator.isNotNull(date_Data))> 
110                <#assign date_DateObj = dateUtil.parseDate("yyyy-MM-dd", date_Data, locale)/> 
111                ${dateUtil.getDate(date_DateObj, "dd '"+literalTools.getLiteral(scopeGroupId, locale, 'corporativo.prensa.date')+"' MMMM '"+literalTools.getLiteral(scopeGroupId, locale, 'corporativo.prensa.date')+"' yyyy", locale)} 
112            </#if> 
113        </time> 
114        <div class="cv-separator cv-separator--blue"></div> 
115        <h1 class="cv-title cv-title--L cv-title--bold"> 
116            ${title.getData()} 
117        </h1> 
118        <div class="cv-title cv-title--M cv-title--semibold"> 
119            ${summary.getData()} 
120        </div> 
121        <#list content.getSiblings() as cur_content> 
122            <div id="newsContent"> 
123                ${cur_content.getData()} 
124            </div> 
125        </#list> 
126    </div> 
127</div> 
128 
129<div class="cv-download"> 
130    <ul class="cv-download__container" id="fileList"> 
131        <#if titleDownloadableContent??> 
132            <#if titleDownloadableContent.getData()?has_content> 
133                <#if titleDownloadableContent.getSiblings()?has_content> 
134                    <#list titleDownloadableContent.getSiblings() as cur_titleDownloadableContent> 
135 
136                        <#assign documentUrl = cur_titleDownloadableContent.downloadableContent.getData()/> 
137 
138                        <#if documentUrl?has_content> 
139                            <#assign lastIndex = documentUrl?last_index_of('/') + 1/> 
140                            <#if (lastIndex >= 0)> 
141                                <#assign uuid = documentUrl?substring(lastIndex)/> 
142                                <#assign paramIndex = uuid?last_index_of('?')/> 
143                                <#if (paramIndex >= 0)> 
144                                    <#assign uuid = uuid?substring(0, paramIndex)/> 
145                                </#if> 
146                            </#if> 
147 
148                            <#assign fileEntry = dlFileEntryService.getDLFileEntryByUuidAndGroupId(uuid, groupId)/> 
149 
150                            <#assign fileName = documentUrl?split('/')[4] /> 
151                        </#if> 
152 
153                        <#if (fileEntry.getSize() < 1024)> 
154                            <#assign size = "(" + fileEntry.getSize()?round + " Bytes" + ")"/> 
155                        <#elseif (fileEntry.getSize() < 1048576)> 
156                            <#assign size = "(" + (fileEntry.getSize()/1024)?round + " KB" + ")"/> 
157                        <#elseif (fileEntry.getSize() < 1073741824)> 
158                            <#assign size = "(" + ((fileEntry.getSize()/1024)/1024)?round + " MB" + ")"/> 
159                        <#elseif (fileEntry.getSize() < 1099511627776)> 
160                            <#assign size = "(" + (((fileEntry.getSize()/1024)/1024)/1024)?round + " GB" + ")"/> 
161                        <#else> 
162                            <#assign size = ""/> 
163                        </#if> 
164 
165                        <li> 
166                            <a target="_blank" href="${cur_titleDownloadableContent.downloadableContent.getData()}" download class="cv-download__tab"> 
167                                <#assign mimeType = fileEntry.getMimeType()?split("/")[0]/> 
168                                <#if (mimeType == "image" || mimeType == "video")> 
169                                    <#assign styleType = "image"/> 
170                                <#else> 
171                                    <#assign styleType = "document"/> 
172                                </#if> 
173                                ${cur_titleDownloadableContent.getData()} ${size} 
174                                <div class="cv-download__icon"> 
175                                        <div src="" alt="" class="cv-download__icon-img cv-download__icon-img--${styleType}"></div> 
176                                        <p class="cv-paragraph-regular cv-paragraph-regular--2XS"> 
177                                            ${(fileName?substring(fileName?last_index_of('.')+1, fileName?length))?upper_case} 
178                                        </p> 
179                                </div> 
180                            </a> 
181                        </li> 
182                    </#list> 
183                </#if> 
184            </#if> 
185        </#if> 
186    </ul> 
187    <#if documentUrl!=""> 
188        <button class="cv-button cv-button--secondary" onclick='downloadAll(this)'>${literalTools.getLiteral(scopeGroupId, locale, 'corporativo.prensa.descargar')}</button> 
189    </#if> 
190</div> 

VidacaixaForm New

Subscribe to our newsletter

You will learn to enjoy the future without worries.