Changes for page Home
Last modified by Isaac Mejia on 2025/12/22 19:31
From version 38.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
-
... ... @@ -41,8 +41,7 @@ 41 41 "Payment Management": "Articles and guides for Payment Management.", 42 42 "Reporting & Analytics": "Understand your numbers and performance.", 43 43 "Notifications": "Articles and guides for Notifications.", 44 - "Integrations": "Connect Member Solutions with other tools in your stack.", 45 - "Feature Release Notes": "Find out about our latest updates" 44 + "Integrations": "Connect Member Solutions with other tools in your stack." 46 46 })## 47 47 48 48 ## --- HARD ALLOWLIST: only show these categories on the homepage --- ... ... @@ -83,22 +83,19 @@ 83 83 #set ($desc = "Articles and guides for $label.")## 84 84 #end## 85 85 86 - ## Article spaces (support both naming conventions) 87 - #set ($spaceA = "Main." + $pageName)## 88 - #set ($spaceB = "Main." + $pageName.replace(" ", "_"))## 85 + ## Article space: Main.<PageName with spaces replaced by underscores> 86 + #set ($articleSpace = "Main." + $pageName.replace(" ", "_"))## 89 89 90 - ## Count non-hidden, non-WebHome pages in eitherarticle space88 + ## Count non-hidden, non-WebHome pages in that article space 91 91 #set ($articleCount = 0)## 92 92 #set ($countXwql = 93 93 "select count(doc.fullName) " + 94 94 "from XWikiDocument doc " + 95 - "where doc.space in(:spaceA,:spaceB)" +93 + "where doc.space = :space " + 96 96 "and doc.name <> 'WebHome' " + 97 97 "and doc.hidden <> true" 98 98 )## 99 - #set ($countQuery = $services.query.xwql($countXwql))## 100 - #set ($discard = $countQuery.bindValue("spaceA", $spaceA))## 101 - #set ($discard = $countQuery.bindValue("spaceB", $spaceB))## 97 + #set ($countQuery = $services.query.xwql($countXwql).bindValue("space", $articleSpace))## 102 102 #set ($resultList = $countQuery.execute())## 103 103 #if ($resultList && $resultList.size() > 0)## 104 104 #set ($articleCount = $resultList.get(0))##