Vida
Productos
Teniendo en mente la tranquilidad de nuestros asegurados y de su patrimonio, contamos con productos enfocados a dar confianza y con el fin de cubrir el riesgo de alguna ruina financiera.
Hiba jelentkezett a sablon feldolgozása során.
The following has evaluated to null or missing: ==> imgJson.groupId [in template "20097#20123#37591" at line 134, column 56] ---- Tip: It's the step after the last dot that caused this error, not those before it. ---- 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: #return themeDisplay.getPortalURL() +... [in template "20097#20123#37591" in function "fLinkImg" at line 134, column 5] - Reached through: ${fLinkImg(img)} [in template "20097#20123#37591" at line 100, column 56] ----
1<#if entries?has_content>
2 <div class="container">
3 <#assign currentUrl = themeDisplay.getPortalURL() + themeDisplay.getURLCurrent() />
4 <input type="hidden" id="currentUrl" value="${currentUrl}">
5 <input type="hidden" id="currentUrl1" value="${themeDisplay.getPortalURL()}">
6 <#list themeDisplay.getURLCurrent()?split("/") as aux>
7 <#if aux?is_last>
8 <#assign auxUrl = themeDisplay.getPortalURL() + themeDisplay.getURLCurrent() />
9 <#--<input type="hidden" id="currentUrl2" value="${aux}">-->
10 </#if>
11 </#list>
12
13 <#-- --------- Para ruta origen --------- -->
14 <#assign assetVocabulary = staticUtil["com.liferay.asset.kernel.service.AssetVocabularyLocalServiceUtil"] />
15 <#assign assetCategory = staticUtil["com.liferay.asset.kernel.service.AssetCategoryLocalServiceUtil"] />
16 <#attempt>
17 <input type="hidden" id="refPag" value="${request.getParameter('refPag')}">
18 <#assign refPag = request.getParameter('refPag') />
19 <#recover>
20 <#--<input type="hidden" id="refPag" value=null>-->
21 <#assign refPag = "ramo" />
22 </#attempt>
23
24 <#attempt>
25 <#assign refPagAux = request.getParameter('p_r_p_categoryId') />
26 <#assign catAux = assetCategory.getAssetCategory(refPagAux?number) />
27 <#assign AuxVocabularyID = catAux.getVocabularyId() />
28 <#assign AuxVocabulary = assetVocabulary.getVocabulary(AuxVocabularyID?number) />
29 <#assign refPag2 = AuxVocabulary.getName() /> <#--.getParentCategory()-->
30 <h1 class="font-weight-bold h1-responsive center-block mt-4 mb-4 animated zoomInDown animation-delay-5">
31 ${refPag2}
32 ${portalUtil.addPageTitle(refPag2+" - Producto", request)}
33 </h1>
34 <#recover>
35 <#assign refPag2 = "null" />
36 </#attempt>
37
38 <#-- --------- Para ruta origen --------- -->
39
40 <div class="row masonry-container">
41 <div class="owl-carousel owl-theme wow fadeInUp animation-delay-2">
42
43
44 <#assign assetCategoryLocalServiceUtil = staticUtil["com.liferay.asset.kernel.service.AssetCategoryLocalServiceUtil"] />
45 <#assign assetVocabularyLocalServiceUtil = staticUtil["com.liferay.asset.kernel.service.AssetVocabularyLocalServiceUtil"] />
46
47
48 <#assign contador = 1/>
49 <#list entries as curEntry>
50 <#assign assetRenderer = curEntry.getAssetRenderer() />
51 <#assign journalArticle = assetRenderer.getArticle() />
52 <#assign idProducto2 = journalArticle.getArticleId() />
53 <#assign idProducto = curEntry.getEntryId() />
54 <#assign document = saxReaderUtil.read(journalArticle.getContent()) />
55 <#assign rootElement = document.getRootElement() />
56 <#assign curEntryCategory = curEntry.getCategoryIds() />
57 <#assign categories = curEntry.getCategories() />
58 <#assign ImagenDeProducto = rootElement.selectSingleNode("dynamic-element[@name='imagenContenido']") />
59 <#assign tituloProducto = ImagenDeProducto.selectSingleNode("dynamic-element[@name='titulo']") />
60 <#assign descripcionProducto = ImagenDeProducto.selectSingleNode("dynamic-element[@name='descripcion']") />
61
62
63 <#if ImagenDeProducto.selectSingleNode("dynamic-content[@language-id='${locale}']")??>
64 <#assign img = ImagenDeProducto.selectSingleNode("dynamic-content[@language-id='${locale}']").getData() />
65 <#else>
66 <#assign img = "null" />
67 </#if>
68 <#if tituloProducto.selectSingleNode("dynamic-content[@language-id='${locale}']")??>
69 <#assign titulo = tituloProducto.selectSingleNode("dynamic-content[@language-id='${locale}']").getData() />
70 <#else>
71 <#assign titulo = "null" />
72 </#if>
73 <#if descripcionProducto.selectSingleNode("dynamic-content[@language-id='${locale}']")??>
74 <#assign descripcion = descripcionProducto.selectSingleNode("dynamic-content[@language-id='${locale}']").getData() />
75 <#else>
76 <#assign descripcion = "null" />
77 </#if>
78
79
80 <div class="item tarjetas tarjeta${contador}" >
81
82
83 <#-- Para ruta origen -->
84 <#assign categories = curEntry.getCategories() />
85 <#list categories as cat>
86 <#if (cat.name == "Daño") || (cat.name == "Vida")>
87 <input type="hidden" id="${cat?index}" value="${cat.name}">
88 <#if refPag2 == "null" >
89 <#assign refPag2 = cat.name />
90 </#if>
91 </#if>
92 </#list>
93 <#-- Para ruta origen -->
94
95
96 <article class="mb-4 wow materialUp animation-delay-5">
97
98 <div class="card card-cascade narrower">
99 <div class="view overlay">
100 <img class="card-img-top" src="${fLinkImg(img)}" alt="Card image cap">
101 </div>
102 <div class="card-body">
103 <h4 class="card-title big">${titulo}</h4>
104 <p class="card-text contenedores text-justify mayorAltura" >${descripcion}</p>
105
106 <#assign link = themeDisplay.getPortalURL() + "/web/portal-agentes/productos1" >
107 <div class="row">
108 <div class="col-md-12 mb-1">
109 <#-- <#assign linkE = link +"?idProducto=" + idProducto + "&refPag1=" + refPag + "&refPag2=" + refPag2> -->
110 <#assign linkE = link +"?idProducto=" + idProducto>
111 <input type="hidden" id="idProducto" value="${idProducto}">
112 <input type="hidden" id="linkE" value="${linkE}">
113 <a href="${linkE}" class="btn bt_naranja btn-sm btn-block animate-icon" class="miBtnLink">Ver más</a>
114 </div>
115 </div>
116 </div>
117 </div>
118
119 </article>
120 </div>
121
122
123
124 <#assign contador = contador + 1/>
125 </#list>
126 </div>
127 </div>
128 </div>
129</#if>
130
131<#function fLinkImg imgInfo >
132 <#assign imgJson = jsonFactoryUtil.createJSONObject(imgInfo) />
133
134 <#return themeDisplay.getPortalURL()+'/documents/'+imgJson.groupId+'/'+imgJson.classPK+'/'+imgJson.title+'/'+imgJson.uuid >
135</#function>
136
137<script type="text/javascript">
138$( document ).ready(function() {
139
140 var tam = ${entries?size};
141 if(tam <= 1){
142 tam = ${entries?size};
143 window.location.href = $(".card-body .btn-sm.btn-block").attr("href");
144 }else{
145 tam=3;
146 $('.owl-carousel:not(".owl-carousel-unique")').owlCarousel({
147 loop: true,
148 margin: 10,
149 nav: true,
150 dots:false,
151 responsiveClass: true,
152 responsive: {
153 0: {
154 items: 1,
155 },
156 600: {
157 items: tam,
158 },
159 1000: {
160 items: tam,
161 margin: 20,
162 }
163 }
164 });
165 var heights = $(".mayorAltura").map(function() {
166 console.log("height");
167 console.log($(this).height());
168 return $(this).height();
169 }).get();
170
171 maxHeight = Math.max.apply(null, heights);
172
173 $(".mayorAltura").height(maxHeight);
174 }
175
176
177 console.log("tam 2="+tam);
178 /* convertir en slider */
179 $(".entry-title.taglib-categorization-filter").attr("hidden","true");
180});
181</script>
182
183<style type="text/css">
184 .card .card-body .card-title {
185 height: 45px;
186 max-height: 45px;
187 }
188
189 :target {
190 display: block;
191 position: relative;
192 top: -150px;
193 visibility: hidden;
194 }
195
196 .site-wrapper .btn {
197 padding: 0.84rem 2.14rem;
198 font-size: 0.81rem;
199 transition: all 0.2s ease-in-out;
200 margin: 0.375rem;
201 border: 0;
202 border-radius: 0.125rem;
203 cursor: pointer;
204 text-transform: uppercase;
205 white-space: normal;
206 word-wrap: break-word;
207 color: #fff !important;
208 }
209 .site-wrapper .bt_naranja {
210 background-color: #f90;
211 }
212 .site-wrapper .btn:hover{
213 box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);
214 }
215</style>
Csomópont: liferay-app-server1.tokiomarine.corp:8080