Changes for page All Talks
From version 10.5
edited by Andrea Omicini
on 20/05/2023 16:18
on 20/05/2023 16:18
Change comment:
There is no comment for this version
To version 11.1
edited by Andrea Omicini
on 10/07/2023 01:33
on 10/07/2023 01:33
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -1,9 +1,37 @@ 1 -{{include reference="Talks.Environment" excludeFirstHeading="true"/}}{{velocity}} 2 -#set( $query = ", BaseObject as obj, DateProperty as prop where obj.name = doc.fullName and obj.className = '${objectSpace}.${objectClass}' and obj.name <> '${objectPool}.${objectTemplate}' and prop.id.id = obj.id and prop.name = 'date' order by prop.value desc" ) 3 -#set( $talkFound = $xwiki.searchDocuments($query) ) 4 -#set( $talkNo = $talkFound.size() ) 5 ->**$talkNo** {{stringEngIta eng='talks' ita='presentazioni'/}} 6 - 7 -#foreach( $talk in $talkFound ) 8 -#if( !$foreach.first ) {{themeTextSecondary}}•{{/themeTextSecondary}} #end{{talk inline='true' linked='title'}}$talk{{/talk}}#end 1 +{{velocity}} 2 +#template('apice_macros.vm') 3 +#objectspace() 4 +#template('apice_talk_macros.vm') 5 +{{html wiki="true" clean="false"}} 6 +## query 7 +#set( $query = ", BaseObject as objTalk, DateProperty as propDate where objTalk.name = doc.fullName and objTalk.className = '${mainSpace}.Class' and objTalk.name <> '${objectPool}.Template' and propDate.id.id = objTalk.id and propDate.name = 'date' order by propDate.value desc" ) 8 +#set( $itemFound = $xwiki.searchDocuments($query) ) 9 +## how many items found? 10 +#set( $itemNo = $itemFound.size() ) 11 +## no item found? 12 +#if( $itemNo <= 0 ) 13 +{{info}}{{italiano}}Nessuna $services.localization.render('publication').toLowerCase() trovata{{/italiano}}{{english}}No $services.localization.render('publication').toLowerCase() found{{/english}}{{/info}} 14 + #stop 15 +#end 16 +## some items found 17 +## 18 +#### display all items 19 +## header start 20 +<div class="mainheader"> 21 +$itemNo 22 +#if( $itemNo == 1 ) 23 + $services.localization.render('talk').toLowerCase() 24 +#else 25 + $services.localization.render('talks').toLowerCase() 26 +#end 27 +</div> 28 +## header end 29 +## all items separated by dots 30 +#foreach( $item in $itemFound ) 31 + #if( !$foreach.first ) 32 + <span class="menumainbody"> • </span> 33 + #end 34 + #talklinked($item) 35 +#end 36 +{{/html}} 9 9 {{/velocity}}{{pageDisplay sort="objectservice"/}}