Changes for page Home
Last modified by Isaac Mejia on 2025/12/22 19:31
From version 34.1
edited by Isaac Mejia
on 2025/12/15 18:00
on 2025/12/15 18:00
Change comment:
There is no comment for this version
To version 36.1
edited by Isaac Mejia
on 2025/12/22 19:30
on 2025/12/22 19:30
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -54,7 +54,8 @@ 54 54 "Member Portal", 55 55 "Notifications", 56 56 "Payment Management", 57 - "Reporting" 57 + "Reporting", 58 + "Feature Release Notes" 58 58 ])## 59 59 60 60 ## 4) Build a normalized list of category objects ... ... @@ -81,19 +81,22 @@ 81 81 #set ($desc = "Articles and guides for $label.")## 82 82 #end## 83 83 84 - ## Article space: Main.<PageName with spaces replaced by underscores> 85 - #set ($articleSpace = "Main." + $pageName.replace(" ", "_"))## 85 + ## Article spaces (support both naming conventions) 86 + #set ($spaceA = "Main." + $pageName)## 87 + #set ($spaceB = "Main." + $pageName.replace(" ", "_"))## 86 86 87 - ## Count non-hidden, non-WebHome pages in th atarticle space89 + ## Count non-hidden, non-WebHome pages in either article space 88 88 #set ($articleCount = 0)## 89 89 #set ($countXwql = 90 90 "select count(doc.fullName) " + 91 91 "from XWikiDocument doc " + 92 - "where doc.space =:space " +94 + "where doc.space in (:spaceA, :spaceB) " + 93 93 "and doc.name <> 'WebHome' " + 94 94 "and doc.hidden <> true" 95 95 )## 96 - #set ($countQuery = $services.query.xwql($countXwql).bindValue("space", $articleSpace))## 98 + #set ($countQuery = $services.query.xwql($countXwql))## 99 + #set ($discard = $countQuery.bindValue("spaceA", $spaceA))## 100 + #set ($discard = $countQuery.bindValue("spaceB", $spaceB))## 97 97 #set ($resultList = $countQuery.execute())## 98 98 #if ($resultList && $resultList.size() > 0)## 99 99 #set ($articleCount = $resultList.get(0))##