Si รจ verificato un errore nell'elaborarazione del modello.
Expression tyid is undefined on line 35, column 22 in 21447#21485#1844712.
1<#-- 
2  eCTRL Solutions 
3  WIDGET_TRUSTYOU_RENDERER 
4   ver: 1.3  
5  data: 08/02/2022 
6 
7  DEBUG 
8  Freemarker online: http://freemarker-online.kenshoo.com/ 
9 
10--> 
11<#compress> 
12 
13<#setting url_escaping_charset="UTF-8"> 
14 
15<#if request.parameters?has_content> 
16    <#if request.parameters["jwcfg"]?has_content> 
17        <#assign szjwcfg = request.parameters["jwcfg"]> 
18        <#assign wjcdata = jsonFactoryUtil.createJSONObject(szjwcfg)> 
19         
20        <#assign lang = "it"> 
21        <#assign size = "xl"> 
22        <#assign tyid = "">     
23 
24        <#if wjcdata ??> 
25            <#assign lang = wjcdata.getString("lang", "it")> 
26            <#assign size = wjcdata.getString("size", "xl") > 
27            <#assign tyid = wjcdata.getString("tyid", "") > 
28            <#assign tyurl = "http://api.trustyou.com/hotels/"+tyid+"/trust_score.html?embedded=true&lang="+lang +"&size="+size+"&key=454a165c-0832-4c90-bc6e-0c7b1b4f5f07" > 
29        </#if> 
30    </#if>   
31   
32</#if> 
33<!-- WIDGET TRUSTYOU VISITTRENTINO v 1.8 --> 
34<script> 
35    var vtntyid = "${tyid}"; 
36    var vtnwt = "TRUSTYOU-SERVER/"+vtntyid; 
37    var wdlh = window.document.location.href; 
38    var ifrm = document.createElement("iframe"); 
39    ifrm.setAttribute("src", "https://widget.visittrentino.info/ga?p_p_id=articledetailOneInstance_WAR_suggestoguiportlet&p_p_lifecycle=2&p_p_resource_id=asHtml&t=201711211549&_articledetailOneInstance_WAR_suggestoguiportlet_jwcfg={%27oL%27:%27it_IT%27,%27oCLnk%27:%27STYLE1%27,%27oCPage%27:%27"+vtnwt+"%27,%27oCTit%27:%27"+wdlh+"%27}"); 
40    ifrm.setAttribute("style", "display:none;"); 
41    setTimeout(function() { 
42      document.body.appendChild(ifrm); 
43    }, 500); 
44     
45     
46     
47</script> 
48 
49${httpUtil.URLtoString(tyurl)} 
50<!-- WIDGET TRUSTYOU VISITTRENTINO v 1.8 --> 
51</#compress>