Changes for page Home
Last modified by Isaac Mejia on 2025/12/22 19:31
From version 37.1
edited by Isaac Mejia
on 2025/12/22 19:31
on 2025/12/22 19:31
Change comment:
There is no comment for this version
To version 35.1
edited by Isaac Mejia
on 2025/12/15 18:27
on 2025/12/15 18:27
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -35,7 +35,7 @@ 35 35 36 36 ## 3) Optional hand-authored descriptions for known categories 37 37 #set ($kbCategoryDescriptions = { 38 - "Member Management": " CookieHow to manage members, families, and profiles.",38 + "Member Management": "How to manage members, families, and profiles.", 39 39 "Configuration": "Set up locations, billing, and core system settings.", 40 40 "Billing & Payments": "Invoices, collections, and payment processing.", 41 41 "Payment Management": "Articles and guides for Payment Management.", ... ... @@ -82,22 +82,19 @@ 82 82 #set ($desc = "Articles and guides for $label.")## 83 83 #end## 84 84 85 - ## Article spaces (support both naming conventions) 86 - #set ($spaceA = "Main." + $pageName)## 87 - #set ($spaceB = "Main." + $pageName.replace(" ", "_"))## 85 + ## Article space: Main.<PageName with spaces replaced by underscores> 86 + #set ($articleSpace = "Main." + $pageName.replace(" ", "_"))## 88 88 89 - ## Count non-hidden, non-WebHome pages in eitherarticle space88 + ## Count non-hidden, non-WebHome pages in that article space 90 90 #set ($articleCount = 0)## 91 91 #set ($countXwql = 92 92 "select count(doc.fullName) " + 93 93 "from XWikiDocument doc " + 94 - "where doc.space in(:spaceA,:spaceB)" +93 + "where doc.space = :space " + 95 95 "and doc.name <> 'WebHome' " + 96 96 "and doc.hidden <> true" 97 97 )## 98 - #set ($countQuery = $services.query.xwql($countXwql))## 99 - #set ($discard = $countQuery.bindValue("spaceA", $spaceA))## 100 - #set ($discard = $countQuery.bindValue("spaceB", $spaceB))## 97 + #set ($countQuery = $services.query.xwql($countXwql).bindValue("space", $articleSpace))## 101 101 #set ($resultList = $countQuery.execute())## 102 102 #if ($resultList && $resultList.size() > 0)## 103 103 #set ($articleCount = $resultList.get(0))##