Show last authors
1 {{include document = "Talks.MacroSheet" /}}{{velocity filter="none"}}{{html clean="false" wiki="true"}}
2 #if(!$request.tag) ## no tag specified in the query
3
4 > **Tag Cloud** / {{stringEngIta eng="Talks" ita="Presentazioni" /}}
5
6 #set ($from = ", BaseObject as obj0")
7 #set ($where = "obj0.name=doc.fullName and obj0.className='Talks.TalkClass' and obj0.name<>'Talks.TalkClassTemplate' and obj0.name<>'Talks.TalkTemplate'")
8 #set ($tagCount = $xwiki.tag.getTagCountForQuery($from, $where))
9
10 (% style='text-align: center' %)(((
11 #foreach ($talkTag in $tagCount.keySet())
12 #set ( $talkCount = $tagCount.get($talkTag) )
13 #if ( $talkCount > 20 ) #set ( $tagSize = "140%" )
14 #elseif ( $talkCount > 10 ) #set ( $tagSize = "130%" )
15 #elseif ( $talkCount > 5 ) #set ( $tagSize = "120%" )
16 #elseif ( $talkCount > 3 ) #set ( $tagSize = "110%" )
17 #elseif ( $talkCount == 3 ) #set ( $tagSize = "105%" )
18 #elseif ( $talkCount == 2 ) #set ( $tagSize = "100%" )
19 #else #set ($tagSize = "90%" )
20 #end
21 #set($urlEscapedTag = $escapetool.url($talkTag))
22 #set($htmlEscapedTag = $escapetool.xml($talkTag))
23 (% style='display:inline-block; padding:0px 2px; font-size:$tagSize' %)((([[$htmlEscapedTag>>Talks.Tags||queryString="tag=$urlEscapedTag"]])))
24 #end
25 )))
26
27 #else ## one tag specified in the query
28
29 #set ( $from = ", BaseObject as obj0, DBStringListProperty as prop0 join prop0.list item, BaseObject as obj1, DateProperty as prop1" )
30 #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('$request.tag') and obj1.name=doc.fullName and obj1.className='Talks.TalkClass' and obj1.name<>'Talks.TalkClassTemplate' and obj1.name<>'Talks.TalkTemplate' and prop1.id.id=obj1.id and prop1.name = 'date' order by prop1.value desc" )
31 #set ( $sql = $from + " where " + $where )
32 #set($talkFound = $xwiki.searchDocuments($sql)) // //
33 > Tag “**$request.tag**” / {{stringEngIta eng = "Talks" ita = "Presentazioni" /}} // //
34 #foreach ($talk in $talkFound)#set($talkDoc = $xwiki.getDocument($talk))
35 * #talkTDASInlineShort($talk)
36
37 #end
38
39 (% style='text-align: right' %)((( //[{{stringEngIta eng="back to" ita="torna alla" /}} [[tag cloud>>Tags]]]// )))(%%)
40
41 #end
42 {{/html}}
43 {{/velocity}}

Partita IVA: 01131710376 - Copyright © 2008-2021 APICe@DISI Research Group - PRIVACY