null
Atrás

Preguntas frecuentes Extras

Se ha producido un error al procesar la plantilla.
The following has evaluated to null or missing:
==> dataLayerLinksBox  [in template "2233237#2233283#54631" at line 73, column 158]

----
Tip: If the failing expression is known to be 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: ${dataLayerLinksBox.getData()}  [in template "2233237#2233283#54631" at line 73, column 156]
----
1<#-- 
2 Last update: 11/09/2020 
3 Author: VASS 
4  
5 23/09/2019: Aplicado h2 a titulo 
6 11/09/2020: Se agrega datalayer para editar desde el CMS 
7 --> 
8 
9<#function getDisplayStyle display> 
10    <#if display == "button"> 
11        <#assign cssClass = "btn btn-white-red"> 
12    <#else> 
13        <#assign cssClass = "link link-item f-red"> 
14    </#if> 
15 
16    <#return cssClass> 
17</#function> 
18 
19 
20<#assign color = ""> 
21<#if selectColor?has_content> 
22    <#assign color = selectColor.getData()> 
23</#if> 
24 
25<style> 
26    .box-green-flex{ 
27        display: flex !important; 
28        height: 450px !important; 
29        flex-flow: column !important; 
30        justify-content: center !important; 
31
32    .box-green-flex .title{ 
33        width: 100% !important; 
34        text-align: center !important; 
35        margin-bottom: 35px !important; 
36
37    .box-green-flex .btn-white-red{ 
38        width: 100% !important; 
39
40</style> 
41 
42<#-- Desktop version --> 
43<div class="d-none d-lg-block section-link-box row section-separator-big separator-big-b"> 
44    <div class="container container-section"> 
45         <article> 
46            <div class="links-box ${color} box-green-flex-2"> 
47                <h2 class="title">${title.getData()}</h2> 
48                <div class="links clearfix"> 
49                    <#if linkText.getSiblings()?has_content> 
50                        <#list linkText.getSiblings() as cur_linkText> 
51                         
52                            <#if cur_linkText.extLink.getData()?has_content> 
53                                <!--externo --> 
54                                <#assign url = cur_linkText.extLink.getData()> 
55                            <#elseif cur_linkText.pageLink.getFriendlyUrl()?has_content> 
56                                <!--page --> 
57                                <#assign url = cur_linkText.pageLink.getFriendlyUrl()> 
58                        <#elseif cur_linkText.contentLink?has_content> 
59                                <#assign contentData = jsonFactoryUtil.createJSONObject(cur_linkText.contentLink.getData())>                         
60                                <#assign JournalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService")> 
61                                <#assign FriendlyURLEntryLocalService = serviceLocator.findService("com.liferay.friendly.url.service.FriendlyURLEntryLocalService")> 
62                                <#assign calssPKa = contentData.classPK?number> 
63                                <#assign calssNamea = "com.liferay.journal.model.JournalArticle"> 
64                                <#assign calssid = portalUtil.getClassNameId(calssNamea)> 
65                                <#assign url = themeDisplay.getPortalURL() 
66                                            +propsUtil.get("layout.friendly.url.public.servlet.mapping") 
67                                            +themeDisplay.getScopeGroup().getFriendlyURL()+"/-/"+FriendlyURLEntryLocalService.getMainFriendlyURLEntry(calssid, calssPKa).getUrlTitle()> 
68                            <#else> 
69                                <!--nope --> 
70                                <#assign url = ''> 
71                            </#if> 
72                         
73                            <a class="${getDisplayStyle(cur_linkText.display.getData())}" class="${cur_linkText.display.getData()}" href="${url}" onclick="${dataLayerLinksBox.getData()};"> 
74                                ${cur_linkText.getData()}  
75                            </a> 
76                        </#list> 
77                    </#if> 
78                </div> 
79            </div> 
80        </article> 
81    </div> 
82</div> 
83 
84<#-- Mobile version --> 
85 
86<#if mobile??> 
87    <#assign mobileLinkElem = mobile.mobileButton.buttonPageLink> 
88    <#assign mLink = "#"> 
89    <#if mobileLinkElem?? && mobileLinkElem.getFriendlyUrl()?has_content> 
90        <#assign mLink = mobileLinkElem.getFriendlyUrl()> 
91    </#if> 
92 
93    <#if mobile.mobileText?? && mobile.mobileText.getData()?has_content> 
94        <#assign mText = mobile.mobileText.getData()> 
95    </#if> 
96 
97    <#assign mButton = ""> 
98    <#if mobile.mobileButton?? && mobile.mobileButton.getData()?has_content> 
99        <#assign mButton = mobile.mobileButton.getData()> 
100    </#if> 
101 
102    <div class="d-lg-none section-link-box mobile row"> 
103        <div class="container container-section"> 
104            <div class="links-box ${color} "> 
105                <p> 
106                <#if mText?has_content> 
107                ${mText} 
108                </#if> 
109                 
110                </p> 
111                <div class="links clearfix"> 
112                    <a class="btn btn-white-red" href="${mLink}"  onclick="${dataLayerLinksBox.getData()};"> 
113                        ${mButton} 
114                    </a> 
115                </div> 
116            </div> 
117        </div> 
118    </div> 
119</#if>