Changes for page Per Status

From version 80.1
edited by Andrea Omicini
on 03/01/2023 00:09
Change comment: There is no comment for this version
To version 79.1
edited by Andrea Omicini
on 03/01/2023 00:08
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -81,6 +81,7 @@
81 81   #set( $statusList = [$statusPar] )
82 82   #end
83 83  #end
84 +$statusList
84 84  ##
85 85  ## query to structures
86 86  #set( $pubMap = {} )
... ... @@ -90,12 +90,12 @@
90 90   #set( $where = "obj.name = doc.fullName and obj.className = '${objectSpace}.${objectClass}' and obj.name <> '${objectSpace}.${objectTemplate}' and prop0.id.id = obj.id and prop1.id.id = obj.id and prop2.id.id = obj.id and prop0.name = 'author' and prop1.name = 'editor' and ( prop0.value like '$userString' or ( prop0.value = '' and prop1.value like '$userString' ) ) and prop2.name = 'status' and prop2.value = '$status'" )
91 91   #set( $sql = $from + " where " + $where )
92 92   #set( $pubFound = $xwiki.searchDocuments($sql) )
94 +$pubFound.size()
93 93   #if( $pubStatusNo > 0 )
94 94   #set( $pubMap[$status] = $pubFound )
95 95   #set( $pubNo = $pubNo + $pubStatusNo )
96 96   #end
97 97  #end
98 -$pubMap
99 99  ## output results
100 100  ## page subtitle
101 101  {{id name="top"/}}