Changes for page Home
Last modified by Isaac Mejia on 2025/12/15 18:27
From version 24.1
edited by Isaac Mejia
on 2025/12/05 18:07
on 2025/12/05 18:07
Change comment:
There is no comment for this version
To version 18.1
edited by Isaac Mejia
on 2025/12/05 17:50
on 2025/12/05 17:50
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -58,13 +58,15 @@ 58 58 #set ($label = $pageName) 59 59 #end 60 60 61 - ## Description ( customifdefined,otherwiseauto)61 + ## Default description (auto-generated if we don't have a custom one) 62 62 #set ($desc = $kbCategoryDescriptions.get($label)) 63 63 #if ("$!desc" == "") 64 64 #set ($desc = "Articles and guides for $label.") 65 65 #end 66 66 67 - ## Article space: Main.<PageName with spaces replaced by underscores> 67 + ## Article space follows the convention: 68 + ## Main.<PageName with spaces replaced by underscores> 69 + ## e.g. Member Management -> space "Main.Member_Management" 68 68 #set ($articleSpace = "Main." + $pageName.replace(" ", "_")) 69 69 70 70 ## Count non-hidden, non-WebHome pages in that article space ... ... @@ -77,9 +77,14 @@ 77 77 "and doc.hidden <> true" 78 78 ) 79 79 #set ($countQuery = $services.query.xwql($countXwql).bindValue("space", $articleSpace)) 80 - #set ($resultList = $countQuery.execute()) 81 - #if ($resultList && $resultList.size() > 0) 82 - #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 83 83 #end 84 84 85 85 ## Icon, with a sensible default ... ... @@ -163,8 +163,10 @@ 163 163 </div> 164 164 </div> 165 165 173 + <!-- Bottom CTA (support panel) --> 174 + {{include reference="KBSupportCTA.WebHome"/}} 175 + 166 166 </div> 167 167 {{/html}} 168 -{{/velocity}} 169 169 170 -{{ includereference="KBSupportCTA.WebHome"/}}179 +{{/velocity}}