Wiki source code of Tags

Last modified by Administrator on 2006/12/27 17:51

Show last authors
1 #if(!$request.tag)
2 1 Select the tag
3
4 #set($sql = "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'")
5
6 #foreach($tag in $xwiki.search($sql))
7 * [$tag>$doc.fullName?tag=$tag] [RSS>Main.TagsRss?tag=$tag&xpage=rdf]
8 #end
9 #else
10 1 Pages for tag $request.tag
11
12 #set($sql = ", BaseObject as obj, DBStringListProperty as prop where obj.name=doc.fullName and obj.className='XWiki.TagClass' and obj.id=prop.id.id and prop.id.name='tags' and '$request.tag' in elements(prop.list)")
13 #includeInContext("XWiki.Results")
14 #end