Changes for page Talks
From version 2.1
edited by Andrea Omicini
on 11/12/2020 23:19
on 11/12/2020 23:19
Change comment:
Document converted from syntax xwiki/1.0 to syntax xwiki/2.0
To version 3.1
edited by Andrea Omicini
on 11/12/2020 23:21
on 11/12/2020 23:21
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -1,21 +1,24 @@ 1 -{{include document="Main.MacroSheet"/}} Talks.GlobalVars"/}}1 +{{include document="Main.MacroSheet"/}}{{include document="Talks.MacroSheet"/}}{{include document="SODA.MacroSheet"/}} 2 2 3 3 {{velocity filter="none"}} 4 4 {{html clean="false" wiki="true"}} 5 5 = #soda() Talks = 6 6 7 -##tagged research on Publications space based on tag "SODA" 8 -#set ($sql = ", BaseObject as obj where obj.name=doc.fullName and obj.className='Talks.TalkClass' and obj.name<>'Talks.TalkClassTemplate'") 9 -#foreach ($item in $xwiki.searchDocuments($sql)) 10 -#set($talkDoc=$xwiki.getDocument($item)) 11 -#set($talkObj=$talkDoc.getObject("Talks.TalkClass")) 12 -#set($talkTags=$talkDoc.getObject("XWiki.TagClass").tags) 13 -#if ($talkTags.contains("SODA")) 14 - * [[#if ($talkDoc.display("title")!="")$talkDoc.display("title")#else$talkDoc.display("titolo")#end>>$item]] #if ($context.getUser() != "XWiki.XWikiGuest") {{{[}}}<a href="$xwiki.getURL("$item", "inline")">{{html clean="false"}}$msg.get("edit"){{/html}}</a>{{{]}}} #end 7 +##tagged research on Talks space based on tag "SODA" 8 +#set( $talkTag = "SODA") 9 +#set ( $from = ", BaseObject as obj0, DBStringListProperty as prop0 join prop0.list item, BaseObject as obj1, DateProperty as prop1" ) 10 +#set ( $where = "obj0.className='XWiki.TagClass' and obj0.name=doc.fullName and obj0.id=prop0.id.id and prop0.id.name='tags' and lower(item)=lower('$talkTag') and obj1.name=doc.fullName and obj1.className='Talks.TalkClass' and obj1.name<>'Talks.TalkClassTemplate' and prop1.id.id=obj1.id and prop1.name = 'date' order by prop1.value desc" ) 11 +#set ( $sql = $from + " where " + $where ) 12 +#set($talkFound = $xwiki.searchDocuments($sql)) 13 +#if ($talkFound.size()>0) 14 += #mok() Talks in the #apice() Space = 15 +#foreach ($talks in $talkFound)#set($talkDoc = $xwiki.getDocument($talks)) 16 +* #talkTDASInline($talks) 15 15 16 -<p/> 17 17 #end 19 +#else 20 +#warning("No talks with tag $talkTag in the #apice() space") 18 18 #end 19 - 20 20 {{/html}} 21 21 {{/velocity}} 24 +