Changes for page Users
From version 13.2
edited by Andrea Omicini
on 2026/08/29 18:02
on 2026/08/29 18:02
Change comment:
Update document after refactoring.
To version 11.1
edited by Andrea Omicini
on 2026/08/29 17:44
on 2026/08/29 17:44
Change comment:
add the ?status= filter, validated against the class's own value list
Summary
-
Page properties (2 modified, 0 added, 0 removed)
Details
- Page properties
-
- Title
-
... ... @@ -1,0 +1,1 @@ 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}")>> path:$doc.getURL('view',"status=${s}")]]#if( !$foreach.last ) • #end#end67 + #foreach( $s in $statusList )[[$services.localization.render("XWiki.XWikiUsers_status_${s}")>>||queryString="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,11 +76,16 @@ 76 76 #apiceGroup($wanted) 77 77 #end 78 78 #else 79 -#### EVERY GROUP THECLASS DECLARES,intheclass'sownorder79 +#### CURRENT PEOPLE — every status except students and past members 80 80 #foreach( $s in $statusList ) 81 - #apiceGroup($s) 81 + #if( $s != 'student' && $s != 'gone' ) 82 + #apiceGroup($s) 83 + #end 82 82 #end 83 83 ## 86 +#### PAST MEMBERS 87 +#apiceGroup('gone') 88 +## 84 84 #### anyone whose status is not among those declared by the class — should be empty 85 85 #set( $strays = [] ) 86 86 #foreach( $ref in $rows )