The "tag page" doesn't have an example of getting the list of tags
from a document.
I found this in the API document:
public List<String> getTagsFromDocument(String documentName) throws
XWikiException
Can anyone suggest how to translate this into a livetable/velocity context?
Here's my code:
{{velocity}}
#set($columns = ["Task", "Recipe"])
#set($columnsProperties = {
"Task" : { "type" : "text", "link" :
"view", "html" : "true", "sortable":true },
"Recipe" : { "type" : "text", "link" :
"view", "html" : "true", "sortable":true }
})
#set($options = {
"className":"AdminFAQ.FAQClass",
"translationPrefix" : "faq.",
"tagCloud" : true,
"rowCount": 10,
"tags": "true"
})
#livetable("faq" $columns $columnsProperties $options)
{{/velocity}}
On Wednesday November 16, at 12:14PM, Vincent Massol wrote:
Hi Chris,
On Nov 16, 2011, at 8:23 PM, Chris Quenelle wrote:
In velocity, what is the way to get the list of
tags for a given document?
I could look at the code which implements my current skin, because it shows tags,
but I don't know where that is.
Add a tag in your wiki on a page
Click on the tag in the tagcloud on the home page
Edit the page to see what it does :)
For ex:
http://localhost:8080/xwiki/bin/view/Main/Tags?do=viewTag&tag=test
You'll see there's a Tag Plugin:
http://extensions.xwiki.org/xwiki/bin/view/Extension/Tag+Plugin
Hope it helps,
-Vincent
I found these pages, but they didn't help:
http://www.xwiki.org/xwiki/bin/view/Main/Tags
http://extensions.xwiki.org/xwiki/bin/view/Extension/Tag+Application
I have a livetable showing documents, and I want to show the tags for the document
as a table column.
--chris
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users