Modifiche per il documento In arrivo

Dalla versione 36.1
modificato da Andrea Omicini
il 01/04/2023 19:18
Cambia il commento: Nessun commento per questa versione
Alla versione 39.3
modificato da Andrea Omicini
il 01/04/2023 19:26
Cambia il commento: Nessun commento per questa versione

Summary

Details

Page properties
Content
... ... @@ -12,8 +12,8 @@
12 12  {{eventAcronym}}$eventDoc{{/eventAcronym}} (% style='color:$theme.textPrimaryColor' %)({{eventDates}}$eventDoc{{/eventDates}}) #end
13 13  (%%)
14 14  #else
15 -## user forthcoming events
16 - #set( $query = ", BaseObject as obj0, BaseObject as obj1, LargeStringProperty as prop1, DateProperty as prop2
15 +## user forthcoming events new
16 + #set( $query = "select doc.fullName from XWikiDocument doc, BaseObject as obj0, BaseObject as obj1, LargeStringProperty as prop1, DateProperty as prop2
17 17   where obj0.name = doc.fullName and obj0.className = '${objectSpace}.${objectClass}' and obj0.name <> '${objectSpace}.${objectTemplate}' and prop2.id.id = obj0.id and prop2.name = 'end_date' and ( ( year(prop2.value) > year(current_date()) ) or ( year(prop2.value) = year(current_date()) and month(prop2.value) > month(current_date()) ) or ( year(prop2.value) = year(current_date()) and month(prop2.value) = month(current_date()) and day(prop2.value) > day(current_date()) ) ) and obj1.name = doc.fullName and obj1.className = '${objectSpace}.Roles.${objectClass}' and prop1.id.id = obj1.id and prop1.name = 'who' and prop1.value like '%$userName%' order by date(prop2.value) asc " )
18 18  ## execute query
19 19   #set( $eventsFound = $xwiki.search($query) )