Changes for page Per Status
From version 86.7
edited by Andrea Omicini
on 22/06/2023 12:35
on 22/06/2023 12:35
Change comment:
There is no comment for this version
To version 86.8
edited by Andrea Omicini
on 22/06/2023 12:42
on 22/06/2023 12:42
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -108,14 +108,16 @@ 108 108 ## cycle over sorts 109 109 #foreach( $status in $statusList ) 110 110 #set( $query = ", BaseObject as obj, #if( $oneUser ) LargeStringProperty as propAuthor, LargeStringProperty as propEditor, #end StringProperty as propStatus #if( !$hasEdit ), StringProperty as propAccess #end 111 - where obj.name = doc.fullName and obj.className = '${objectSpace}.${objectClass}' and obj.name <> '${objectSpace}.${objectTemplate}' and propAuthor.id.id = obj.id and propEditor.id.id = obj.id and propStatus.id.id = obj.id and propAuthor.name = 'author' and propEditor.name = 'editor' and ( propAuthor.value like '$userString' or ( propAuthor.value = '' and propEditor.value like '$userString' ) ) and propStatus.name = 'status' and propStatus.value = '$status' #if( !$hasEdit ) and propAccess.id.id = obj.id and propAccess.name = 'access' and propAccess.value <> 'hidden' #end" ) 112 - #set( $pubFound = $xwiki.searchDocuments($query) ) 113 - #set( $pubStatusNo = $pubFound.size() ) 114 - #if( $pubStatusNo > 0 ) 115 - #set( $pubMap[$status] = $pubFound ) 116 - #set( $pubNo = $pubNo + $pubStatusNo ) 111 + where obj.name = doc.fullName and obj.className = '${objectSpace}.${objectClass}' and obj.name <> '${objectPool}.${objectTemplate}' #if( $oneUser ) and propAuthor.id.id = obj.id and propEditor.id.id = obj.id and propAuthor.name = 'author' and propEditor.name = 'editor' and ( propAuthor.value like '$userString' or ( propAuthor.value = '' and propEditor.value like '$userString' ) ) #end and propStatus.id.id = obj.id and propStatus.name = 'status' and propStatus.value = '$status' #if( !$hasEdit ) and propAccess.id.id = obj.id and propAccess.name = 'access' and propAccess.value <> 'hidden' #end" ) 112 + #set( $itemFound = $xwiki.searchDocuments($query) ) 113 +## set counters 114 + #set( $itemStatusNo = $itemFound.size() ) 115 + #if( $itemStatusNo > 0 ) 116 + #set( $itemMap[$status] = $itemFound ) 117 + #set( $itemNo = $itemNo + $itemStatusNo ) 117 117 #end 118 118 #end 120 +## 119 119 ## output results 120 120 ## page subtitle 121 121 {{id name="top"/}}