Modifiche per il documento Utenti

Dalla versione 15.1
modificato da Andrea Omicini
il 2026/08/29 18:06
Cambia il commento: restore the translated title lost in the rename
Alla versione 11.1
modificato da Andrea Omicini
il 2026/08/29 17:44
Cambia il commento: add the ?status= filter, validated against the class's own value list

Summary

Details

Page properties
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#end
67 + #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 THE CLASS DECLARES, in the class's own order
79 +#### 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 )