Changes for page Forthcoming

From version 32.1
edited by Andrea Omicini
on 19/07/2022 00:40
Change comment: There is no comment for this version
To version 34.4
edited by Andrea Omicini
on 27/03/2023 23:04
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -8,9 +8,9 @@
8 8   #set( $eventFound = $xwiki.search($sql) )
9 9   #foreach($event in $eventFound)
10 10   #set( $eventDoc = $xwiki.getDocument($event) )
11 -## * {{event}}$event{{/event}}
12 -* {{eventAcronym}}$eventDoc{{/eventAcronym}} (% style='color:$theme.textPrimaryColor' %)({{eventDates}}$eventDoc{{/eventDates}})(%%)
13 - #end
11 +#if( !$foreach.first ){{themeTextSecondary}}•{{/themeTextSecondary}} #end##
12 +{{eventAcronym}}$eventDoc{{/eventAcronym}} (% style='color:$theme.textPrimaryColor' %)({{eventDates}}$eventDoc{{/eventDates}}) #end
13 +(%%)
14 14  #else
15 15  ## user forthcoming events
16 16   #set($sql = "select doc.fullName from XWikiDocument doc, BaseObject obj, DateProperty as prop, LargeStringProperty as prop1, LargeStringProperty as prop2, LargeStringProperty as prop3, LargeStringProperty as prop4, LargeStringProperty as prop5, LargeStringProperty as prop6, LargeStringProperty as prop7, LargeStringProperty as prop8
... ... @@ -18,10 +18,12 @@
18 18   #set( $eventsFound = $xwiki.search($sql) )
19 19   #if( $eventsFound.size() > 0 )
20 20  >{{stringEngIta eng="Forthcoming Events" ita="Eventi in arrivo"/}}
21 - #foreach( $event in $eventsFound )
21 +
22 + #foreach($event in $eventsFound)
22 22   #set( $eventDoc = $xwiki.getDocument($event) )
23 -* {{eventAcronym}}$eventDoc{{/eventAcronym}} (% style='color:$theme.textPrimaryColor' %)({{eventDates}}$eventDoc{{/eventDates}})(%%)
24 - #end
24 +#if( !$foreach.first ){{themeTextSecondary}}•{{/themeTextSecondary}} #end##
25 +{{eventAcronym}}$eventDoc{{/eventAcronym}} (% style='color:$theme.textPrimaryColor' %)({{eventDates}}$eventDoc{{/eventDates}}) #end
26 +(%%)
25 25   #end
26 26  #end
27 27  {{/velocity}}