An error occurred while processing the template.
The following has evaluated to null or missing: ==> httpUtil.getParameter [in template "20099#20135#SHOPPING_ITEMS-1.0.0" at line 2, column 21] ---- 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: #assign parampdf = httpUtil.getParame... [in template "20099#20135#SHOPPING_ITEMS-1.0.0" at line 2, column 1] ----
1<#assign current_url = themeDisplay.getPortalURL() + themeDisplay.getURLCurrent() />
2<#assign parampdf = httpUtil.getParameter(current_url, 'pdf') />
3<#assign parampdf = parampdf?replace('%20', ' ') />
4<p class="hide">${parampdf}</p>
5<div class="vertical-padding">
6 <div class="boxed-row">
7 <div class="boxed-inner-row">
8 <#if parampdf == "">
9 <#assign count = 0 />
10 <div class="shopping-row row">
11 <#list items.siblings as item>
12 <div class="col-lg-3 col-sm-6">
13 <div class="shopping-item">
14 <div class="relative-pos">
15 <#assign image_map = jsonFactoryUtil.createJSONObject(item.image.data)>
16 <#if image_map.getString("uuid")?? && image_map.getString("uuid") != "">
17 <#assign image = item.image.getData() />
18 <#else>
19 <#assign image = image_map.getString("data") />
20 </#if>
21 <img src="${image}" class="shopping-img" />
22 <div class="shopping-item-hover">
23 <a href="shop_details?pdf=${item.pdfId.data}">
24 <div class="item-description white-text">
25 ${item.description.data}
26 </div>
27 </a>
28
29 <a href="shop_details?pdf=${item.pdfId.data}" class="white-text shopping-link">View</a>
30 </div>
31 </div>
32 <div class="shopping-item-container">
33 <label>${item.data}</label><br />
34
35 <strong class="shopping-price">${item.price.data}</strong>
36 <span>Tax (${tax.data}%)</span>
37 </div>
38 </div>
39 </div>
40
41 <#assign count = count +1 />
42 <#if (count % 4) == 0 >
43 </div>
44 <div class="shopping-row">
45 </#if>
46 </#list>
47 </div>
48 <div class="clearfix"></div>
49 </#if>
50
51 <#if parampdf != "">
52 <#list items.siblings as item>
53 <#if item.pdfId.data == parampdf>
54 <div class="shopping-row row">
55 <div class="col-md-3">
56 <#assign image_map1 = jsonFactoryUtil.createJSONObject(item.image.data)>
57 <#if image_map1.getString("uuid")?? && image_map1.getString("uuid") != "">
58 <#assign image1 = item.image.getData() />
59 <#else>
60 <#assign image1 = image_map1.getString("data") />
61 </#if>
62 <img src="${image1}" class="shopping-img" style="max-height: 350px;"/>
63 </div>
64 </div>
65
66 <div class="shopping-row row">
67 <div class="col-md-9">
68 <div class="shopping-item-details">
69 <h3 class="shopping-details-title">${item.data}</h3>
70 <div>${item.summary.data}</div>
71
72 <h4 class="shopping-details-title">Survey highlights:</h4>
73 <div>${item.survey.data}</div>
74
75 <h4 class="shopping-details-title">Granularity:</h4>
76 <div>
77 <ul>
78 <li>${item.granularity.data}</li>
79 </ul>
80 </div>
81
82 <h4 class="shopping-details-title">Pages:</h4>
83 <div>
84 <ul>
85 <li>${item.pages.data}</li>
86 </ul>
87 </div>
88
89 <h4 onclick="showTableContent(event,'content${item.pdfId.data?replace(' ', '-')}')" class="blue-text shopping-details-title link-content">
90 Table of contents <i class="fa fa-chevron-down"></i>
91 </h4>
92 <div class="content${item.pdfId.data?replace(' ', '-')} hide">
93 <#if item.contentTitles ??>
94 <#assign contentCount = 1 />
95 <#list item.contentTitles.siblings as contentTitle>
96 <br /><strong>${contentCount}. ${contentTitle.data}</strong><br />
97 <#if contentTitle?? && contentTitle.contentSubTitles ??>
98 <#list contentTitle.contentSubTitles.siblings as contentSubTitle>
99 <span>${contentSubTitle.data}</span><br />
100 </#list>
101 </#if>
102 <#assign contentCount = contentCount + 1 />
103 </#list>
104 </#if>
105 </div>
106 <hr />
107 </div>
108 </div>
109
110 <div class="col-md-3 shopping-item-report">
111 <div class="shopping-item-inner-report">
112 <h4 class="shopping-details-title report-title open" onclick="showTableContent(event,'report${item.pdfId.data?replace(' ', '-')}')">Report details </h4>
113 <div class="report${item.pdfId.data?replace(' ', '-')}">
114 <div>${item.reportSummary.data}</div>
115
116 <span class="shopping-report-title blue-text">Companies:</span>
117 <div>${item.reportCompanies.data}</div>
118
119 <span class="shopping-report-title blue-text">Covered Regions:</span>
120 <div>${item.reportRegion.data}</div>
121
122 <span class="shopping-report-title blue-text">Segments:</span>
123 <div>${item.reportSegments.data}</div>
124
125 <span class="shopping-report-title blue-text">Tags:</span>
126 <div>${item.reportTags.data}</div>
127
128 <span class="shopping-report-title blue-text">Report Type:</span>
129 <div>${item.reportType.data}</div>
130
131 <span class="shopping-report-title blue-text">Format:</span>
132 <div>${item.reportFormat.data}</div>
133
134 <span class="shopping-report-title blue-text">Document size:</span>
135 <div>${item.reportSize.data}</div>
136
137 <span class="shopping-report-title blue-text">Report Code:</span>
138 <div>${item.reportCode.data}</div>
139 </div>
140 </div>
141 </div>
142 </div>
143
144 <div class="">
145 <label class="purchase-label">Purchase Price</label><br />
146 <span>${item.price.data}</span><br /><br />
147
148 <div> <form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top"> ${item.purchase.data} </form>
149 </div>
150
151 <label>Please contact us to find out more</label><br />
152 <label>** Terms and conditions apply</label>
153 </div>
154 </#if>
155 </#list>
156 </#if>
157 </div>
158 </div>
159</div>
160<script>
161 function showTableContent(event, cont){
162 var container = $(".report-title");
163 if (!container.is(event.target) && container.has(event.target).length === 0){
164 //console.log("not report");
165 $("."+cont).toggleClass("hide");
166 $(".link-content").toggleClass("open");
167
168 }else{
169 //console.log("report" + $( window ).width());
170 if($( window ).width() <= 768){
171 $("."+cont).toggleClass("hide");
172 $(".report-title").toggleClass("open");
173 }
174 }
175
176 event.preventDefault();
177 }
178
179 if($( window ).width() <= 768){
180 $('.report-title').trigger('click');
181 }
182</script>