Changes for page Home

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

From version 11.1
edited by Isaac Mejia
on 2025/12/05 17:03
Change comment: There is no comment for this version
To version 24.1
edited by Isaac Mejia
on 2025/12/05 18:07
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -58,15 +58,13 @@
58 58   #set ($label = $pageName)
59 59   #end
60 60  
61 - ## Default description (auto-generated if we don't have a custom one)
61 + ## Description (custom if defined, otherwise auto)
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 follows the convention:
68 - ## Main.<PageName with spaces replaced by underscores>
69 - ## e.g. Member Management -> space "Main.Member_Management"
67 + ## Article space: Main.<PageName with spaces replaced by underscores>
70 70   #set ($articleSpace = "Main." + $pageName.replace(" ", "_"))
71 71  
72 72   ## Count non-hidden, non-WebHome pages in that article space
... ... @@ -79,13 +79,9 @@
79 79   "and doc.hidden <> true"
80 80   )
81 81   #set ($countQuery = $services.query.xwql($countXwql).bindValue("space", $articleSpace))
82 - #try
83 - #set ($resultList = $countQuery.execute())
84 - #if ($resultList && $resultList.size() > 0)
85 - #set ($articleCount = $resultList.get(0))
86 - #end
87 - #catch
88 - ## Swallow query errors so we don't break the homepage
80 + #set ($resultList = $countQuery.execute())
81 + #if ($resultList && $resultList.size() > 0)
82 + #set ($articleCount = $resultList.get(0))
89 89   #end
90 90  
91 91   ## Icon, with a sensible default
... ... @@ -171,7 +171,6 @@
171 171  
172 172  </div>
173 173  {{/html}}
168 +{{/velocity}}
174 174  
175 -## Reusable bottom CTA (support panel)
176 176  {{include reference="KBSupportCTA.WebHome"/}}
177 -{{/velocity}}