Se ha producido un error al procesar la plantilla.
The following has evaluated to null or missing: ==> dvmCodigoBanner [in template "13373225#13373264#13390280" at line 4, column 21] ---- 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: #assign modeloId = dvmCodigoBanner [in template "13373225#13373264#13390280" at line 4, column 1] ----
1<#assign contadorSKU = 0>
2<#assign contadorBannerSKU = 0>
3<#assign contadorBannerSKUImg = 0>
4<#assign modeloId = dvmCodigoBanner>
5
6
7<#if entries?has_content>
8 <#list entries as curEntry>
9 <#if curEntry?? && curEntry.getAssetRenderer()??>
10 <#assign renderer = curEntry.getAssetRenderer()>
11 <#if renderer.getArticle()??>
12 <#assign docXml = saxReaderUtil.read(renderer.getArticle().getContent()) />
13 <#assign modelo = docXml.valueOf("//dynamic-element[@name='Modelo']/dynamic-content/text()") />
14
15 <#if modeloId == modelo>
16 <#assign contadorSKU++>
17 </#if>
18 </#if>
19 </#if>
20 </#list>
21</#if>
22
23<#if (contadorSKU > 0) >
24 <div id="carouselExampleIndicators" class="carousel slide" data-ride="carousel">
25 <#if (contadorSKU > 1)>
26 <ol class="carousel-indicators">
27 <#list entries as entryBannerSKU>
28 <#if entryBannerSKU?? && entryBannerSKU.getAssetRenderer()??>
29 <#assign renderer = entryBannerSKU.getAssetRenderer()>
30 <#assign docXml = saxReaderUtil.read(renderer.getArticle().getContent()) />
31 <#assign modelo = docXml.valueOf("//dynamic-element[@name='Modelo']/dynamic-content/text()") />
32 <#if modeloId == modelo>
33 <#assign contadorBannerSKU++>
34 <li data-target="#carouselExampleIndicators" data-slide-to="${contadorBannerSKU-1}" class="<#if contadorBannerSKU - 1 == 0>active</#if>"></li>
35 </#if>
36 </#if>
37 </#list>
38 </ol>
39 </#if>
40 <div class="carousel-inner">
41 <#list entries as entryBannerSKUBody>
42 <#if entryBannerSKUBody?? && entryBannerSKUBody.getAssetRenderer()??>
43 <#assign renderer = entryBannerSKUBody.getAssetRenderer()>
44 <#assign docXml = saxReaderUtil.read(renderer.getArticle().getContent()) />
45 <#assign modelo = docXml.valueOf("//dynamic-element[@name='Modelo']/dynamic-content/text()") />
46 <#if modeloId == modelo>
47 <#assign contadorBannerSKUImg++>
48
49 <#assign titulo = docXml.valueOf("//dynamic-element[@name='Titulo']/dynamic-content/text()") />
50 <#assign texto = docXml.valueOf("//dynamic-element[@name='Texto']/dynamic-content/text()") />
51 <#assign externo = docXml.valueOf("//dynamic-element[@name='Externo']/dynamic-content/text()") />
52 <#assign enlace = docXml.valueOf("//dynamic-element[@name='Enlace']/dynamic-content/text()") />
53
54 <#assign journalArticle = renderer.getArticle()>
55 <#assign document = saxReaderUtil.read(journalArticle.getContent()) >
56 <#assign rootElement = document.getRootElement()>
57 <#assign xPathSelector1 = saxReaderUtil.createXPath("dynamic-element[@name='HOME01']")>
58 <#assign imgNews1 = xPathSelector1.selectSingleNode(rootElement).getStringValue()>
59 <#assign imgJson1 = jsonFactoryUtil.createJSONObject(imgNews1)>
60 <#assign imagen1 = "/documents/"+ imgJson1.groupId +"/" +imgJson1.fileEntryId +"/"+ imgJson1.name +"/"+imgJson1.uuid >
61
62 <#assign xPathSelector2 = saxReaderUtil.createXPath("dynamic-element[@name='HOME02']")>
63 <#assign imgNews2 = xPathSelector2.selectSingleNode(rootElement).getStringValue()>
64 <#assign imgJson2 = jsonFactoryUtil.createJSONObject(imgNews2)>
65 <#assign imagen2 = "/documents/"+ imgJson2.groupId +"/" +imgJson2.fileEntryId +"/"+ imgJson2.name +"/"+imgJson2.uuid >
66
67 <#assign xPathSelector3 = saxReaderUtil.createXPath("dynamic-element[@name='HOME03']")>
68 <#assign imgNews3 = xPathSelector3.selectSingleNode(rootElement).getStringValue()>
69 <#assign imgJson3 = jsonFactoryUtil.createJSONObject(imgNews3)>
70 <#assign imagen3 = "/documents/"+ imgJson3.groupId +"/" +imgJson3.fileEntryId +"/"+ imgJson3.name +"/"+imgJson3.uuid >
71
72 <#assign xPathSelector4 = saxReaderUtil.createXPath("dynamic-element[@name='HOME04']")>
73 <#assign imgNews4 = xPathSelector4.selectSingleNode(rootElement).getStringValue()>
74 <#assign imgJson4 = jsonFactoryUtil.createJSONObject(imgNews4)>
75 <#assign imagen4 = "/documents/"+ imgJson4.groupId +"/" +imgJson4.fileEntryId +"/"+ imgJson4.name +"/"+imgJson4.uuid >
76
77 <style>
78 .d-block.w-100.img-lg_${entryBannerSKUBody?counter}{
79 min-height: 530px;
80 }
81 .d-block.w-100.img-md_${entryBannerSKUBody?counter}{
82 min-height: 320px;
83 }
84 .d-block.w-100.img-sm_${entryBannerSKUBody?counter}{
85 min-height: 375px;
86 }
87 .d-block.w-100.img-xs_${entryBannerSKUBody?counter}{
88 min-height: 375px;
89 }
90 .img-lg_${entryBannerSKUBody?counter} {
91 display: flex !important;
92 width: 100%;
93 height: auto;
94 background-image: url("${imagen1}");
95 background-repeat: no-repeat;
96 background-size: cover;
97 background-position: center;
98 }
99
100 .img-md_${entryBannerSKUBody?counter} {
101 display: none !important;
102 }
103 .img-sm_${entryBannerSKUBody?counter} {
104 display: none !important;
105 }
106
107 .img-xs_${entryBannerSKUBody?counter} {
108 display: none !important;
109 }
110
111 @media only screen and (max-width: 1024px) {
112 .d-block.w-100.img-lg_${entryBannerSKUBody?counter}{
113 min-height: 450px;
114 }
115 }
116
117 @media only screen and (max-width: 795px) {
118 .img-lg_${entryBannerSKUBody?counter} {
119 display: none !important;
120 }
121 .img-md_${entryBannerSKUBody?counter} {
122 display: flex !important;
123 width: 100%;
124 height: auto;
125 background-image: url("${imagen1}");
126 background-repeat: no-repeat;
127 background-size: cover;
128 background-position: center;
129 }
130 .carousel {
131 min-height: 320px;
132 }
133 }
134
135 @media only screen and (max-width: 650px) {
136 .img-md_${entryBannerSKUBody?counter} {
137 display: none !important;
138 }
139 .img-sm_${entryBannerSKUBody?counter} {
140 display: flex !important;
141 width: 100%;
142 height: auto;
143 background-image: url("${imagen3}");
144 background-repeat: no-repeat;
145 background-size: cover;
146 background-position: center;
147 }
148 }
149
150 @media only screen and (max-width: 375px) {
151 .img-sm_${entryBannerSKUBody?counter} {
152 display: none !important;
153 }
154 .img-xs_${entryBannerSKUBody?counter} {
155 display: flex !important;
156 width: 100%;
157 height: auto;
158 background-image: url("${imagen4}");
159 background-repeat: no-repeat;
160 background-size: cover;
161 background-position: center;
162 }
163 }
164 </style>
165
166 <div class="carousel-item <#if contadorBannerSKUImg - 1 == 0>active</#if>">
167
168 <#if enlace?has_content>
169 <a href="${enlace}" target="<#if externo == 'true'>_blank<#else>_self</#if>">
170 <div class="d-block w-100 img-lg_${entryBannerSKUBody?counter}" ></div>
171 </a>
172 <a href="${enlace}" target="<#if externo == 'true'>_blank<#else>_self</#if>">
173 <div class="d-block w-100 img-md_${entryBannerSKUBody?counter}"></div>
174 </a>
175 <a href="${enlace}" target="<#if externo == 'true'>_blank<#else>_self</#if>">
176 <div class="d-block w-100 img-sm_${entryBannerSKUBody?counter}"></div>
177 </a>
178 <a href="${enlace}" target="<#if externo == 'true'>_blank<#else>_self</#if>">
179 <div class="d-block w-100 img-xs_${entryBannerSKUBody?counter}"></div>
180 </a>
181 <#else>
182 <div class="d-block w-100 img-lg_${entryBannerSKUBody?counter}"></div>
183 <div class="d-block w-100 img-md_${entryBannerSKUBody?counter}"></div>
184 <div class="d-block w-100 img-sm_${entryBannerSKUBody?counter}"></div>
185 <div class="d-block w-100 img-xs_${entryBannerSKUBody?counter}"></div>
186 </#if>
187
188
189 <#if titulo?has_content>
190 <div class="col-sm-12 col-sm-6 col-md-5 col-lg-4 banner-text">
191 <h3 class="h3-mb">${titulo}</h3>
192 <#if texto?has_content><p>${texto}</p></#if>
193 <#if enlace?has_content>
194 <div class="banner-btn">
195 <a href="${enlace}" class="btn btn-main" target="<#if externo == 'true'>_blank<#else>_self</#if>">Ver más</a>
196 </div>
197 </#if>
198 </div>
199 </#if>
200 </div>
201 </#if>
202 </#if>
203 </#list>
204 </div>
205 <#if (contadorSKU > 1)>
206 <a class="carousel-control-prev" href="#carouselExampleIndicators" role="button" data-slide="prev">
207 <i class="fas fa-angle-left"></i>
208 <span class="sr-only">Previous</span>
209 </a>
210 <a class="carousel-control-next" href="#carouselExampleIndicators" role="button" data-slide="next">
211 <i class="fas fa-angle-right"></i>
212 <span class="sr-only">Next</span>
213 </a>
214 </#if>
215 </div>
216</#if>
Déjanos tus datos de contacto
(Contacto directo +51 985 603 852)