[xwiki-users] How to add TAGs to blog entry ?
Hi, I want to be able to add TAG to each blog entry. I see it is possible for wiki pages, there is a panel appearing on the right side of the web page. What do I need to do ? Create a new panel ? Modify a xwiki object or class ? Fabien
Modify the XWiki.ArticleClassSheet page. Add the following code to the page : #template('taginline.vm') (add it somewhere where it will be rendered in inline edition mode). Guillaume On Fri, Apr 11, 2008 at 2:38 PM, Fabien <[email protected]> wrote:
Hi,
I want to be able to add TAG to each blog entry. I see it is possible for wiki pages, there is a panel appearing on the right side of the web page.
What do I need to do ? Create a new panel ? Modify a xwiki object or class ?
Fabien _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
Hi Guillaume, I just edited the XWiki.ArticleClassSheet and put your proposed code into the inline section. But this seems to do nothing, I only see "Tags:" that I have also added and no panel nor editing area. Do I need to do something else ? Fabien #if($obj == "") #warning("This is not an article!") #elseif($context.action!="inline") .... snipped ..... #else <dl> <dt>Title:</dt> <dd>$doc.display("title", "edit", $obj)</dd> <dt>Category:</dt> <dd>$doc.display("category", "edit", $obj)</dd> <dt>Content:</dt> <dd>$doc.display("content", "edit", $obj)</dd> <dt>Extract:</dt> <dd>$doc.display("extract", "edit", $obj)</dd> *<dt>Tags:</dt>* *#template('taginline.vm')* </dl> #end On Fri, Apr 11, 2008 at 2:41 PM, Guillaume Lerouge <[email protected]> wrote:
Modify the XWiki.ArticleClassSheet page. Add the following code to the page : #template('taginline.vm') (add it somewhere where it will be rendered in inline edition mode). Guillaume
On Fri, Apr 11, 2008 at 2:38 PM, Fabien <[email protected]> wrote:
Hi,
I want to be able to add TAG to each blog entry. I see it is possible for wiki pages, there is a panel appearing on the right side of the web page.
What do I need to do ? Create a new panel ? Modify a xwiki object or class ?
Fabien _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- http://wikibc.blogspot.com/ _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
Hi Fabien, my bad : you've done everything right, I simply confused taginline.vm with tagedit.vm. You need to use tagedit.vm , sorry :-) #if($obj == "")
#warning("This is not an article!") #elseif($context.action!="inline") .... snipped ..... #else <dl> <dt>Title:</dt> <dd>$doc.display("title", "edit", $obj)</dd> <dt>Category:</dt> <dd>$doc.display("category", "edit", $obj)</dd> <dt>Content:</dt> <dd>$doc.display("content", "edit", $obj)</dd> <dt>Extract:</dt> <dd>$doc.display("extract", "edit", $obj)</dd> #template('tagedit.vm') </dl> #end
Actually you don't even need the <dt>Tag</dt> , it's already included in the template file. Guillaume
Super it works ! Thanks. I definitively need to learn velocity existing macros. If you have an up-to-date URL for that, feel free to send ! On Fri, Apr 11, 2008 at 3:27 PM, Guillaume Lerouge <[email protected]> wrote:
Hi Fabien, my bad : you've done everything right, I simply confused taginline.vm with tagedit.vm. You need to use tagedit.vm , sorry :-)
#if($obj == "")
#warning("This is not an article!") #elseif($context.action!="inline") .... snipped ..... #else <dl> <dt>Title:</dt> <dd>$doc.display("title", "edit", $obj)</dd> <dt>Category:</dt> <dd>$doc.display("category", "edit", $obj)</dd> <dt>Content:</dt> <dd>$doc.display("content", "edit", $obj)</dd> <dt>Extract:</dt> <dd>$doc.display("extract", "edit", $obj)</dd> #template('tagedit.vm') </dl> #end
Actually you don't even need the <dt>Tag</dt> , it's already included in the template file.
Guillaume _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
Look into your xwiki folder : xwiki enterprise > webapps > xwiki > templates . All the vm files are stored there, dig them to see how XWiki's interface is built :-) Guillaume On Fri, Apr 11, 2008 at 3:43 PM, Fabien <[email protected]> wrote:
Super it works ! Thanks.
I definitively need to learn velocity existing macros. If you have an up-to-date URL for that, feel free to send !
On Fri, Apr 11, 2008 at 3:27 PM, Guillaume Lerouge <[email protected]> wrote:
Hi Fabien, my bad : you've done everything right, I simply confused taginline.vm with tagedit.vm. You need to use tagedit.vm , sorry :-)
#if($obj == "")
#warning("This is not an article!") #elseif($context.action!="inline") .... snipped ..... #else <dl> <dt>Title:</dt> <dd>$doc.display("title", "edit", $obj)</dd> <dt>Category:</dt> <dd>$doc.display("category", "edit", $obj)</dd> <dt>Content:</dt> <dd>$doc.display("content", "edit", $obj)</dd> <dt>Extract:</dt> <dd>$doc.display("extract", "edit", $obj)</dd> #template('tagedit.vm') </dl> #end
Actually you don't even need the <dt>Tag</dt> , it's already included in the template file.
Guillaume _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
participants (2)
-
Fabien -
Guillaume Lerouge