General Actions:
Log-in
Wiki:
Courses
▼
:
Document Index
»
Space:
DSSF2008
▼
:
Document Index
»
Page:
TagCloud
Search
DSSF2008
:
TagCloud
Page Actions:
Export
▼
:
Export as PDF
Export as RTF
Export as HTML
More actions
▼
:
Print preview
View Source
TagCloud
Wiki source code of
TagCloud
Last modified by
Hal Eden
on 2010/08/20 11:06
Content
·
Comments
(0)
·
Attachments
(0)
·
History
·
Information
Show line numbers
#set($query = "select elements(prop.list) from BaseObject as obj, DBStringListProperty as prop where obj.className='XWiki.TagClass' and obj.id=prop.id.id and prop.id.name='tags'") #set( $allTags = $xwiki.sort($xwiki.search($query))) #set( $previousTag = "") #set( $tagsWithCount = $xwiki.getHashMap()) #set( $count = 1) #set( $maxCount = 1) #foreach($tag in $allTags) #if ($tag == $previousTag) #set( $count = $count + 1) #if ($count > $maxCount) #set ($maxCount = $count) #end #else #set( $count = 1) #set( $previousTag = "") #end #set( $dummy = $tagsWithCount.put($tag, $count)) #set( $previousTag = $tag) #end #set($query = "select distinct elements(prop.list) from BaseObject as obj, DBStringListProperty as prop where obj.className='XWiki.TagClass' and obj.id=prop.id.id and prop.id.name='tags'") #set( $tagsDistinct = $xwiki.sort($xwiki.search($query))) <div style="font-size: 2.00em; text-align: justify; text-justify: auto;"> #foreach($tag in $tagsDistinct) #set( $currentCount = $tagsWithCount.get($tag)) #set( $size = 50 + ($currentCount * 50 / $maxCount)) <span style="font-size: $size%"><a href="$xwiki.getURL("Main.Tags", "view", "tag=$tag")")>$tag</a></span> #end </div>
Course Pages
Home
Roster
Assignments
Schedule and Syllabus
Course Announcement
Lecture Material
Relevant Resources
Questionnaires
Independent Research Projects
Blog
Recently Visited
A4StarbirdButler
|
MichaelMinerva
|
bjacobso
|
GoogleCalendarMacros
|
acephers
Search
Search query
Recently Modified
MSC Final Project ...
MakeShiftCrew Proj...
Embedding Content
Human-Centered Com...
Assignment12KyleMa...
See More Changes
Recent Comments
Recently Created
WebPreferences
|
RatingStats
|
palen
|
ksiek
|
kena