Changes for page Users

From version 11.1
edited by Andrea Omicini
on 2026/08/29 17:44
Change comment: add the ?status= filter, validated against the class's own value list
To version 13.2
edited by Andrea Omicini
on 2026/08/29 18:02
Change comment: Update document after refactoring.

Summary

Details

Page properties
Title
... ... @@ -1,1 +1,0 @@
1 -$services.localization.render('users')
Content
... ... @@ -64,7 +64,7 @@
64 64  #### the class does not declare this value — say so, and show what it does declare
65 65  >{{stringEngIta eng="Unknown status" ita="Stato sconosciuto"/}}: **$escapetool.xml($wanted)**
66 66  
67 - #foreach( $s in $statusList )[[$services.localization.render("XWiki.XWikiUsers_status_${s}")>>||queryString="status=${s}"]]#if( !$foreach.last ) • #end#end
67 + #foreach( $s in $statusList )[[$services.localization.render("XWiki.XWikiUsers_status_${s}")>>path:$doc.getURL('view', "status=${s}")]]#if( !$foreach.last ) • #end#end
68 68  
69 69  #elseif( $wanted != '' )
70 70  #### ONE GROUP, ASKED FOR BY ?status= — students included, like any other value
... ... @@ -76,16 +76,11 @@
76 76   #apiceGroup($wanted)
77 77   #end
78 78  #else
79 -#### CURRENT PEOPLE — every status except students and past members
79 +#### EVERY GROUP THE CLASS DECLARES, in the class's own order
80 80  #foreach( $s in $statusList )
81 - #if( $s != 'student' && $s != 'gone' )
82 - #apiceGroup($s)
83 - #end
81 + #apiceGroup($s)
84 84  #end
85 85  ##
86 -#### PAST MEMBERS
87 -#apiceGroup('gone')
88 -##
89 89  #### anyone whose status is not among those declared by the class — should be empty
90 90  #set( $strays = [] )
91 91  #foreach( $ref in $rows )