Modifiche per il documento Tutti i corsi
Dalla versione 10.1
modificato da Andrea Omicini
il 25/07/2023 15:06
il 25/07/2023 15:06
Cambia il commento:
Nessun commento per questa versione
Alla versione 14.1
modificato da Andrea Omicini
il 26/07/2023 06:24
il 26/07/2023 06:24
Cambia il commento:
Nessun commento per questa versione
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -4,7 +4,7 @@ 4 4 #objectspace() 5 5 #template('apice_course_macros.vm') 6 6 ## query 7 -#set( $query = ", BaseObject as obj, StringProperty as prop where obj.name = doc.fullName and obj.className = '${mainSpace}.Class' and obj.name <> '${objectPool}.Class' and prop.id.id = obj.id and prop.name = 'ay' order by prop.value desc") 7 +#set( $query = ", BaseObject as objCourse, StringProperty as propAY where objCourse.name = doc.fullName and objCourse.className = '${mainSpace}.Class' and objCourse.name <> '${objectPool}.Class' and propAY.id.id = objCourse.id and propAY.name = 'ay' order by propAY.value desc") 8 8 #set( $itemFound = $xwiki.searchDocuments($query) ) 9 9 ## how many items found? 10 10 #set( $itemNo = $itemFound.size() ) ... ... @@ -20,10 +20,8 @@ 20 20 ## header end 21 21 ## display items separated by dots / start 22 22 #foreach( $item in $itemFound ) 23 - #if( !$foreach.first ) 24 - <span class="menumainbody"> • </span> 25 - #end 26 - {{course}}$item{{/course}} 23 + #if( !$foreach.first )<span class="menumainbody"> • </span>#end 24 + #courselinked($item) 27 27 #end 28 28 ## display items separated by dots / end 29 29 {{/html}}