Changes for page Forthcoming

From version 39.5
edited by Andrea Omicini
on 01/04/2023 19:28
Change comment: There is no comment for this version
To version 39.4
edited by Andrea Omicini
on 01/04/2023 19:28
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -5,11 +5,11 @@
5 5  ## overall forthcoming events
6 6   #set( $sql = "select doc.fullName from XWikiDocument doc, BaseObject obj, DateProperty as prop
7 7   where doc.fullName = obj.name and obj.className = '$objectSpace.$objectClass' and obj.name <> '$objectSpace.$objectTemplate' and prop.id.id = obj.id and prop.name = 'start_date' and ( ( year(prop.value) > year(current_date()) ) or ( year(prop.value) = year(current_date()) and month(prop.value) > month(current_date()) ) or ( year(prop.value) = year(current_date()) and month(prop.value) = month(current_date()) and day(prop.value) > day(current_date()) ) ) order by date(prop.value) asc ")
8 - #set( $eventsFound = $xwiki.search($sql) )
8 + #set( $eventFound = $xwiki.search($sql) )
9 9   #if( $eventsFound.size() > 0 )
10 10  >{{stringEngIta eng="Forthcoming Events" ita="Eventi in arrivo"/}}
11 11  
12 - #foreach($event in $eventsFound)
12 + #foreach($event in $eventFound)
13 13   #set( $eventDoc = $xwiki.getDocument($event) )
14 14  #if( !$foreach.first ){{themeTextSecondary}}•{{/themeTextSecondary}} #end##
15 15  {{eventAcronym}}$eventDoc{{/eventAcronym}} (% style='color:$theme.textPrimaryColor' %)({{eventDates}}$eventDoc{{/eventDates}}) #end