Changes for page Talks

From version 4.1
edited by Andrea Omicini
on 26/11/2021 14:55
Change comment: There is no comment for this version
To version 2.1
edited by Andrea Omicini
on 10/12/2020 20:31
Change comment: There is no comment for this version

Summary

Details

Page properties
Title
... ... @@ -1,0 +1,1 @@
1 +Talks
Syntax
... ... @@ -1,1 +1,1 @@
1 -XWiki 2.1
1 +XWiki 1.0
Content
... ... @@ -1,5 +1,24 @@
1 -= {{mensa/}} Talks =
1 +#includeMacros("Main.MacroSheet")
2 +#includeMacros("Talks.MacroSheet")
3 +#includeMacros("MEnSA.MacroSheet")
2 2  
3 -{{velocity}}
4 -#set( $tag = "MEnSA" )
5 -{{/velocity}}{{include reference="Talks.Tag"/}}
5 +<a name="top"> </a>
6 +
7 +1 #mensa() Talks in the #apice() Space
8 +
9 +#set ($sql = ", BaseObject as obj, DateProperty as prop
10 + where
11 + obj.name=doc.fullName and
12 + obj.className='Talks.TalkClass' and
13 + obj.name<>'Talks.TalkClassTemplate' and
14 + prop.id.id=obj.id and
15 + prop.name='date'
16 + order by prop.value desc")
17 +
18 +#foreach ($talk in $xwiki.searchDocuments($sql))
19 + #set($talkTags=$xwiki.getDocument($talk).getObject("XWiki.TagClass").tags)
20 + #if ($talkTags.toLowerCase().contains("mensa"))
21 + * #talkTDSInline($talk) #if($context.getUser() != "XWiki.XWikiGuest"){pre}[{/pre}<a href="$xwiki.getURL("$talk", "inline")">$msg.get("edit")</a>{pre}]{/pre}#end
22 +
23 + #end
24 +#end