From version 2.1
edited by Andrea Omicini
on 13/08/2021 13:00
Change comment: Document converted from syntax xwiki/1.0 to syntax xwiki/2.1
To version 1.2
edited by Andrea Omicini
on 13/08/2021 12:59
Change comment: Update document after refactoring.

Summary

Details

Page properties
Syntax
... ... @@ -1,1 +1,1 @@
1 -XWiki 2.1
1 +XWiki 1.0
Content
... ... @@ -1,12 +1,11 @@
1 -{{include document="Main.MacroSheet"/}} {{include document="Courses.MacroSheet"/}} {{include document="AndreaRoli.MacroSheet"/}}
1 +#includeMacros("Main.MacroSheet")
2 +#includeMacros("Courses.MacroSheet")
3 +#includeMacros("AndreaRoli.MacroSheet")
2 2  
3 -{{velocity filter="none"}}
4 -{{html clean="false" wiki="true"}}
5 5  #set( $courseMenu = true )
6 6  
7 +1 #stringIt("Corsi di") $userFullname#stringEn("'s Courses")
7 7  
8 -= #stringIt("Corsi di") $userFullname#stringEn("'s Courses") =
9 -
10 10  #stringEnIt(
11 11  "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."
12 12  ,
... ... @@ -28,15 +28,12 @@
28 28   prop2.value like '%$userName%')
29 29   order by prop.value desc
30 30  ")
31 -<p/>
30 +
32 32  #set($courseFound = $xwiki.searchDocuments($sql))
33 33  
34 34  #set($courseFound = $xwiki.searchDocuments($sql))
35 35  #foreach ($courseDoc in $courseFound)
36 -* [[#displayName($courseDoc)>>$courseDoc]] <em>($xwiki.getDocument($courseDoc).display("aY"))</em> #if($context.getUser() != "XWiki.XWikiGuest")<a href='$xwiki.getURL("$course", "inline")'><img alt='{{html clean="false"}}$msg.get("panels.documentInformation.editIncluded", [$page]){{/html}}' src='$xwiki.getSkinFile("icons/silk/page_white_edit.gif")' /></a>#end
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
37 37  
38 -<p/>
39 39  #end
40 40  
41 -{{/html}}
42 -{{/velocity}}