Changes for page Andrea Roli’s Courses per A.Y.
From version 1.2
edited by Andrea Omicini
on 13/08/2021 12:59
on 13/08/2021 12:59
Change comment:
Update document after refactoring.
To version 3.2
edited by Andrea Omicini
on 21/11/2021 21:49
on 21/11/2021 21:49
Change comment:
There is no comment for this version
Summary
-
Page properties (2 modified, 0 added, 0 removed)
Details
- Page properties
-
- Syntax
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki 1.01 +XWiki 2.1 - Content
-
... ... @@ -1,38 +1,1 @@ 1 -#includeMacros("Main.MacroSheet") 2 -#includeMacros("Courses.MacroSheet") 3 -#includeMacros("AndreaRoli.MacroSheet") 4 - 5 -#set( $courseMenu = true ) 6 - 7 -1 #stringIt("Corsi di") $userFullname#stringEn("'s Courses") 8 - 9 -#stringEnIt( 10 -"I have held a number of university courses along the years, mostly at the Alma Mater Studiorum—Università di Bologna. Some of them — essentially, the most recent ones — are listed below." 11 -, 12 -"Da vari anni tengo corsi universitari, principalmente all'Alma Mater Studiorum. Alcuni di loro — essenzialmente, i più recenti — si trovano elencati qui sotto." 13 -) 14 - 15 -#set ($sql = ", BaseObject as obj, StringProperty as prop, LargeStringProperty as prop1, LargeStringProperty as prop2 16 - where 17 - obj.name=doc.fullName and 18 - obj.className='Courses.CourseClass' and 19 - obj.name<>'Courses.CourseClassTemplate' and 20 - prop.id.id=obj.id and 21 - prop1.id.id=obj.id and 22 - prop2.id.id=obj.id and 23 - prop.name='aY' and 24 - prop1.name='professor' and 25 - prop2.name='otherProfessors' and 26 - (prop1.value like '%$userName%' or 27 - prop2.value like '%$userName%') 28 - order by prop.value desc 29 -") 30 - 31 -#set($courseFound = $xwiki.searchDocuments($sql)) 32 - 33 -#set($courseFound = $xwiki.searchDocuments($sql)) 34 -#foreach ($courseDoc in $courseFound) 35 -* [#displayName($courseDoc) | $courseDoc] <em>($xwiki.getDocument($courseDoc).display("aY"))</em> #if($context.getUser() != "XWiki.XWikiGuest")<a href='$xwiki.getURL("$course", "inline")'><img alt='$msg.get("panels.documentInformation.editIncluded", [$page])' src='$xwiki.getSkinFile("icons/silk/page_white_edit.gif")' /></a>#end 36 - 37 -#end 38 - 1 +{{include reference="Environment"/}}{{velocity}}#set( $courseMenu = true ){{/velocity}}{{include reference="Courses.PerYear"/}}