0 Votes

Wiki source code of TagIndexDisplay

Last modified by Ryan C on 2025/03/10 00:07

Show last authors
1 {{velocity}}
2 ## XWQL snippet to list pages that have any TagClass tags
3 #set($xwql = "
4 select doc.fullName, doc.prop('XWiki.TagClass','tags')
5 from XWikiDocument doc
6 where doc.prop('XWiki.TagClass','tags') <> ''
7 order by doc.fullName
8 ")
9
10 ## Execute the query in XWQL mode
11 #set($rows = $services.query.xwql($xwql).execute())
12
13 **Number of rows found:** $rows.size()
14
15 #foreach($row in $rows)
16 * Page: $row[0], Tags: $row[1]
17 #end
18 {{/velocity}}