Thomas Drevon wrote:
Vincent Massol wrote:
2. How can I enable the editing of tags along with the editing of the actual text of a blog entry?
Same. Edit the ArticleClassSheet page to provide form inputs to add tags and add some JS code to add the tags on save.
Ok, I've added the following two lines in ArticleClassSheet when in inline mode: <dt>Tags:</dt> <dd><input type="text" id="tags" name="tags" size="60" value="$!tdoc.tags"/></dd> ..and these lines when in view mode: Tags: #foreach($tag in $doc.getTagList()) <a href="$xwiki.getURL("Main.Tags", "view", "tag=$tag")")">$tag</a> #end But I now experience something strange: The tags that I add to a blog entry will only stick (added to the database, that is) if I have done a shutdown and startup of tomcat after the creation of the blog entry. So it seems that only "old" blog entrys may get tags added to them in the way I've implemented this. Kinda strange. You mentioned that I could use a javascript to save the tags. Where should such a script be invoked? Also, I've been browsing the xwiki api for a doc.setTags-like method, but I can't find seem to find one. Is there anyone that can point me in the right direction? Thanks, and best regards from Thomas :-)