Changes for page Home

Last modified by Isaac Mejia on 2025/12/15 18:27

From version 20.1
edited by Isaac Mejia
on 2025/12/05 17:58
Change comment: There is no comment for this version
To version 18.1
edited by Isaac Mejia
on 2025/12/05 17:50
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -79,9 +79,14 @@
79 79   "and doc.hidden <> true"
80 80   )
81 81   #set ($countQuery = $services.query.xwql($countXwql).bindValue("space", $articleSpace))
82 - #set ($resultList = $countQuery.execute())
83 - #if ($resultList && $resultList.size() > 0)
84 - #set ($articleCount = $resultList.get(0))
82 +
83 + #try()
84 + #set ($resultList = $countQuery.execute())
85 + #if ($resultList && $resultList.size() > 0)
86 + #set ($articleCount = $resultList.get(0))
87 + #end
88 + #catch($e)
89 + ## Swallow query errors so we don't break the homepage
85 85   #end
86 86  
87 87   ## Icon, with a sensible default
... ... @@ -165,11 +165,10 @@
165 165   </div>
166 166   </div>
167 167  
173 + <!-- Bottom CTA (support panel) -->
174 + {{include reference="KBSupportCTA.WebHome"/}}
175 +
168 168  </div>
169 169  {{/html}}
170 170  
171 171  {{/velocity}}
172 -
173 -
174 -## Bottom CTA (support panel)
175 -{{include reference="KBSupportCTA.WebHome"/}}