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
Hide line numbers
1: #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'") 2: 3: #set( $allTags = $xwiki.sort($xwiki.search($query))) 4: #set( $previousTag = "") 5: #set( $tagsWithCount = $xwiki.getHashMap()) 6: #set( $count = 1) 7: #set( $maxCount = 1) 8: #foreach($tag in $allTags) 9: #if ($tag == $previousTag) 10: #set( $count = $count + 1) 11: #if ($count > $maxCount) 12: #set ($maxCount = $count) 13: #end 14: #else 15: #set( $count = 1) 16: #set( $previousTag = "") 17: #end 18: #set( $dummy = $tagsWithCount.put($tag, $count)) 19: #set( $previousTag = $tag) 20: #end 21: 22: #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'") 23: 24: #set( $tagsDistinct = $xwiki.sort($xwiki.search($query))) 25: <div style="font-size: 2.00em; text-align: justify; text-justify: auto;"> 26: #foreach($tag in $tagsDistinct) 27: #set( $currentCount = $tagsWithCount.get($tag)) 28: #set( $size = 50 + ($currentCount * 50 / $maxCount)) 29: <span style="font-size: $size%"><a href="$xwiki.getURL("Main.Tags", "view", "tag=$tag")")>$tag</a></span> 30: #end 31: </div>
Course Pages
Home
Roster
Assignments
Schedule and Syllabus
Course Announcement
Lecture Material
Relevant Resources
Questionnaires
Independent Research Projects
Blog
Recently Visited
Next-Generation wiki
|
A4StarbirdButler
|
How to Post a Response
|
recentCommentsUpdater
|
pedwards
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