Re: [xwiki-users] r3cop new wiki request

2011-11-17 Thread Vincent Massol
Hi,

On Nov 15, 2011, at 5:11 PM, Pavel Jurka wrote:

 Hi,
 
 our project name is r3cop so the name can be same: r3cop.myxwiki.org

I've tried to create your wiki this morning but the user you gave me doesn't 
exist on myxwiki.org…

Please follow the instructions at http://myxwiki.org

The only user I've found is http://myxwiki.org/xwiki/bin/view/XWiki/jurkapavel

Thanks
-Vincent

 Pavel
 
  Původní zpráva 
 Od: Vincent Massol vinc...@massol.net
 Předmět: Re: [xwiki-users] r3cop new wiki request
 Datum: 15.11.2011 17:04:49
 -
 Hi Pavel,
 
 On Nov 15, 2011, at 4:14 PM, Pavel Jurka wrote:
 /
 Hi,
 
 
 we are students on university and we  are working on research
 grant.
 We would like to use xwiki as foreground  for our datamining
 project.
 
 The system will collect and  evaluate information about robotics
 
 topics and then upload them to  xwiki. Here will be users able to
 
 comment, add anotations and tags and  then system will teach from
 
 these information and modify it's learning  algorithm.
 
 user name r3cop
 
 what wiki name would  you like to have on myxwiki.org?
 
 something.myxwiki.org
 /
 Thanks
 -Vincent
 
 
 Pavel Jurka
 

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] amateur-funkruf-hh new wiki request

2011-11-17 Thread Vincent Massol
Hi Detlef,

Please follow the instructions on http://myxwiki.org

Thanks
-Vincent

On Nov 13, 2011, at 12:03 AM, Detlef Marxsen wrote:

 Hello,
 
 I would like to start a wiki for the members of the project which shall 
 restart the amateur radio pager service.
 
 Cheers, Detlef.

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] TOC Macro question

2011-11-17 Thread Ashtar Communications
Marius,

Thank you for the syntax fixes. Your changes work perfectly - I forgot
that each item would have the same HTML id if displayed twice.

The only problem I am now having is that the TOC macro still seems to
not pick up the wiki headings contained in the objects property when
using $doc.display. If I add an object with a TextArea property
containing wiki syntax, like:
=Heading1=
==Heading2==
===Heading3===

Then:

{{velocity}}

$doc.display('textarea', $doc.getObject('Sandbox.TestClass', 0))

{{toc /}}

{{/velocity}}


The wiki syntax displays just fine, but the TOC macro doesn't display
anything. Is this expected behavior, or am I missing a way to have the
TOC macro pick up these headings?

Thank you,

aaron

On Wed, Nov 16, 2011 at 12:51 AM, Marius Dumitru Florea
mariusdumitru.flo...@xwiki.com wrote:
 Hi Aaron,

 See my comments below,

 On Sat, Nov 12, 2011 at 7:58 PM, Ashtar Communications
 ashtarcommunicati...@gmail.com wrote:
 Marius,

 I successfully reproduced the steps you followed on XEM 3.1 -
 $context.getEditorWysiwyg() is being correctly evaluated while in
 inline mode. However, when the textbox is displayed as part of the
 non-html table, it still does not render as WYSIWYG.


 When I follow your steps here, viewing the page as normal just prints
 the text $context.getEditorWysiwyg() on the page. However, when I
 switch to inline mode, this changes to:
 Sandbox.TestClass_0_description

 This is the expected behavior.


 On the test Sandbox page, the text box then displays correctly as WYSIWYG.

 However, when I try this same thing on the page with the table, it
 doesn't work. When in Inline mode, $context.getEditorWysiwyg() still
 displays:

 Sandbox.TestClass_0_description,Sandbox.TestClass_1_description,Sandbox.TestClass_2_description

 So you added multiple objects of type Sandbox.TestClass to your page.

 etc...

 However, the box being displayed in the table still appears as plain
 text. Try the following code on the same Sandbox page with the
 TestClass.

 {{velocity}}
 $xwiki.jsfx.use(js/xwiki/table/tablefilterNsort.js)
 $xwiki.ssfx.use(js/xwiki/table/table.css)

 {{html}}
 table id=Table1 class=grid sortable doOddEven
  tr class=sortHeaderthHeader/th/tr
  trtd$doc.display('description')/td/tr
 {{/html}}

 You forgot the closing /table tag which makes the HTML invalid. By
 default HTML macro cleans its content and if the content is not valid
 then the result is sometimes unexpected. Also, the $doc.display call
 outputs wiki syntax (an HTML macro) so you have to add wiki=true to
 the outer HTML macro in order for it to be rendered properly.


 (% class=grid sortable doOddEven id=Table2 %)(% class=sortHeader
 %)|=Header|$doc.display('description')
 {{toc /}}

 This needs to be formated properly. ToC macro can't be displayed inline.

 $context.getEditorWysiwyg(){{/velocity}}


 For me, this produces two tables. The top table displays a WYSIWG box
 (two, actually, which is strange). The bottom table displays a
 PlainText box.

 The reason is simple: you display the same property of the same object
 twice, which means you'll have two text areas with the same ID in your
 page which (1) makes your page HTML-invalid and (2) makes the WYSIWYG
 editor enhance twice the first text area.

 I changed your code to:

 --8--
 {{velocity}}
 $xwiki.jsfx.use(js/xwiki/table/tablefilterNsort.js)
 $xwiki.ssfx.use(js/xwiki/table/table.css)

 {{html wiki=true}}
 table id=Table1 class=grid sortable doOddEven
  tr class=sortHeaderthHeader/th/tr
  trtd$doc.display('description',
 $doc.getObject('Sandbox.TestClass', 0))/td/tr
 /table
 {{/html}}

 (% class=grid sortable doOddEven id=Table2 %)(% class=sortHeader%)
 |=Header
 |$doc.display('description', $doc.getObject('Sandbox.TestClass', 1))

 {{toc /}}

 $context.getEditorWysiwyg()
 {{/velocity}}
 --8--

 and the WYSIWYG editor is loaded for both text areas.



 Additionally, when there's wiki syntax in the content of the TextBox,
 it is not being picked up by the TOC macro.

 I don't think the ToC macro looks for headings inside tables. I think
 it picks only the headings that are direct children of the
 xwikicontent DIV (in view mode).

 Hope this helps,
 Marius


 So, it appears that this is somehow related to the table?

 aaron

 On Thu, Nov 10, 2011 at 11:39 PM, Marius Dumitru Florea
 mariusdumitru.flo...@xwiki.com wrote:
 Hi Aaron,

 I did the following test with XWiki Enterprise 3.2 and it worked:

 1. I created a class Sandbox.TestClass with just one field of type
 TextArea, setting the Editor property to Wysiwyg (from class edit
 mode).
 2. I added an object of type Sandbox.TestClass to the same page and
 put some text in the text area (from object edit mode).
 3. I set the content of the Sandbox.TestClass page to (from wiki edit mode)

 --8--
 {{velocity}}
 $doc.display('description')

 $context.getEditorWysiwyg()
 {{/velocity}}
 --8--

 4. I edited Sandbox.TestClass in Inline form 

Re: [xwiki-users] TOC Macro question

2011-11-17 Thread Thomas Mortagne
On Thu, Nov 17, 2011 at 1:11 PM, Ashtar Communications
ashtarcommunicati...@gmail.com wrote:
 Marius,

 Thank you for the syntax fixes. Your changes work perfectly - I forgot
 that each item would have the same HTML id if displayed twice.

 The only problem I am now having is that the TOC macro still seems to
 not pick up the wiki headings contained in the objects property when
 using $doc.display. If I add an object with a TextArea property
 containing wiki syntax, like:
 =Heading1=
 ==Heading2==
 ===Heading3===

 Then:

 {{velocity}}

 $doc.display('textarea', $doc.getObject('Sandbox.TestClass', 0))

 {{toc /}}

 {{/velocity}}


 The wiki syntax displays just fine, but the TOC macro doesn't display
 anything. Is this expected behavior, or am I missing a way to have the
 TOC macro pick up these headings?

Problem is that $doc.display produce html macro which is a black box
for toc macro.


 Thank you,

 aaron

 On Wed, Nov 16, 2011 at 12:51 AM, Marius Dumitru Florea
 mariusdumitru.flo...@xwiki.com wrote:
 Hi Aaron,

 See my comments below,

 On Sat, Nov 12, 2011 at 7:58 PM, Ashtar Communications
 ashtarcommunicati...@gmail.com wrote:
 Marius,

 I successfully reproduced the steps you followed on XEM 3.1 -
 $context.getEditorWysiwyg() is being correctly evaluated while in
 inline mode. However, when the textbox is displayed as part of the
 non-html table, it still does not render as WYSIWYG.


 When I follow your steps here, viewing the page as normal just prints
 the text $context.getEditorWysiwyg() on the page. However, when I
 switch to inline mode, this changes to:
 Sandbox.TestClass_0_description

 This is the expected behavior.


 On the test Sandbox page, the text box then displays correctly as WYSIWYG.

 However, when I try this same thing on the page with the table, it
 doesn't work. When in Inline mode, $context.getEditorWysiwyg() still
 displays:

 Sandbox.TestClass_0_description,Sandbox.TestClass_1_description,Sandbox.TestClass_2_description

 So you added multiple objects of type Sandbox.TestClass to your page.

 etc...

 However, the box being displayed in the table still appears as plain
 text. Try the following code on the same Sandbox page with the
 TestClass.

 {{velocity}}
 $xwiki.jsfx.use(js/xwiki/table/tablefilterNsort.js)
 $xwiki.ssfx.use(js/xwiki/table/table.css)

 {{html}}
 table id=Table1 class=grid sortable doOddEven
  tr class=sortHeaderthHeader/th/tr
  trtd$doc.display('description')/td/tr
 {{/html}}

 You forgot the closing /table tag which makes the HTML invalid. By
 default HTML macro cleans its content and if the content is not valid
 then the result is sometimes unexpected. Also, the $doc.display call
 outputs wiki syntax (an HTML macro) so you have to add wiki=true to
 the outer HTML macro in order for it to be rendered properly.


 (% class=grid sortable doOddEven id=Table2 %)(% class=sortHeader
 %)|=Header|$doc.display('description')
 {{toc /}}

 This needs to be formated properly. ToC macro can't be displayed inline.

 $context.getEditorWysiwyg(){{/velocity}}


 For me, this produces two tables. The top table displays a WYSIWG box
 (two, actually, which is strange). The bottom table displays a
 PlainText box.

 The reason is simple: you display the same property of the same object
 twice, which means you'll have two text areas with the same ID in your
 page which (1) makes your page HTML-invalid and (2) makes the WYSIWYG
 editor enhance twice the first text area.

 I changed your code to:

 --8--
 {{velocity}}
 $xwiki.jsfx.use(js/xwiki/table/tablefilterNsort.js)
 $xwiki.ssfx.use(js/xwiki/table/table.css)

 {{html wiki=true}}
 table id=Table1 class=grid sortable doOddEven
  tr class=sortHeaderthHeader/th/tr
  trtd$doc.display('description',
 $doc.getObject('Sandbox.TestClass', 0))/td/tr
 /table
 {{/html}}

 (% class=grid sortable doOddEven id=Table2 %)(% class=sortHeader%)
 |=Header
 |$doc.display('description', $doc.getObject('Sandbox.TestClass', 1))

 {{toc /}}

 $context.getEditorWysiwyg()
 {{/velocity}}
 --8--

 and the WYSIWYG editor is loaded for both text areas.



 Additionally, when there's wiki syntax in the content of the TextBox,
 it is not being picked up by the TOC macro.

 I don't think the ToC macro looks for headings inside tables. I think
 it picks only the headings that are direct children of the
 xwikicontent DIV (in view mode).

 Hope this helps,
 Marius


 So, it appears that this is somehow related to the table?

 aaron

 On Thu, Nov 10, 2011 at 11:39 PM, Marius Dumitru Florea
 mariusdumitru.flo...@xwiki.com wrote:
 Hi Aaron,

 I did the following test with XWiki Enterprise 3.2 and it worked:

 1. I created a class Sandbox.TestClass with just one field of type
 TextArea, setting the Editor property to Wysiwyg (from class edit
 mode).
 2. I added an object of type Sandbox.TestClass to the same page and
 put some text in the text area (from object edit mode).
 3. I set the content of the Sandbox.TestClass page to 

Re: [xwiki-users] Velocity string challenge

2011-11-17 Thread Eduard Moraru
Hi,

Well, I would not encourage you to convert the semantics, since you can end
up with some weird cases, like the following sentence: The product name is
LCD 17 Display. More generally speaking, whatever you do will not have a
100% cover rate and you could end up making everything bold for example.

IMO, using quotes is a good and standard enough way of emphasizing words,
but you know better your data and requirements. Plus, you mentioned in your
second question that you don`t want text like -- or ** to be treated as
wiki2.0 syntax. If you use my suggestion of printing the answer/question
inside a verbatim, you will not be able to do replace quotes with bold as
you mentioned anyway. If you don`t want to use the verbatim, you will have
individually escape every xwiki2.0 syntax element in your text, except
maybe bold (that you wanted to use). Looks like more work than benefit to
me.

What I forgot to mention in my previous mail is that you should also watch
out for the dollar character ($) and replace it with $escapetool.d or
$escapetool.dollar to avoid interpreting text as variables.

Thanks,
Eduard

On Thu, Nov 17, 2011 at 9:58 AM, Gmail GJ gerritjankoekk...@gmail.comwrote:

 Hi,

 This is certainly of great help

 Verstuurd vanaf mijn iPad

 Op 16 nov. 2011 om 22:57 heeft Eduard Moraru enygma2...@gmail.com het
 volgende geschreven:

  Hi Gerritjan,
 
  On Wed, Nov 16, 2011 at 5:11 PM, Gerritjan Koekkoek 
  gerritjankoekk...@gmail.com wrote:
 
  Hi,
 
  I'm converting a XML file into XWiki pages with a structured object, my
  problem is that the XML file might contain elements with problematic
 text
  I have a XSLT that gives me a velocity script (like below)
  {{velocity}}
##Creating a ATE Question and Answer document programatically
#set($ATEPrefix = CdLSATE)
#set($ATEDocName = $ATEPrefix+'TE'+1001)
#set($newATEQA =
  $xwiki.getDocument(CdLSATEPublic.$ATEDocName))
##Set a title
$newATEQA.setTitle(Teeth Exfoliation)
##Set parent of document to Public ATE Questions and Answers
$newATEQA.setParent(CdLSATEPublic.CdLSATEPublicQAs)
##This is how you can use a template
$newATEQA.setContent('{{include
  document=CdlsatdCode.CdLSATEPublicQATemplate/}}')
##Create a new object on the document
#set($newATEQAObject =
  $newATEQA.newObject(CdlsatdCode.CdLSATEPublicQAClass))
##Set a field to a particular value
$newATEQAObject.set(AlphabetSort,TE)
$newATEQAObject.set(subject,Teeth Exfoliation)
 
$newATEQAObject.set(question,Is early loss of baby teeth
  something to be concerned about, indicative of a bigger problem, or
 related
  to CdLS?)
 
$newATEQAObject.set(language,en)
$newATEQAObject.set(CountryCode,us)
$newATEQAObject.set(answer,
It is normal for children, especially girls, to lose their
  lower two front teeth from 4.5 years old to 5.5 years old. 4.5 years is
  early, but can be considered normal. There seems to be quite a variety
 of
  times when children with CdLS find themselves loosing their primary or
 baby
  teeth. Children with CdLS can have their primary teeth fall out either
  early or, more often, late. If the child is four years old and there
 are no
  other underlying medical complications, such as, hypothyroidism,
  hypophosphatsia, etc., then I would not be too concerned about losing
 the
  teeth. If there were many teeth, including molars that are getting
 loose,
  then further investigations would be indicated.
 
DM/ TK 7-13-10
 
SEE ALSO: Teeth Grinding 1 Teeth Grinding 2 Teeth
  Growth Teething)
 
$newATEQAObject.set(SACApproved,1)
$newATEQA.save()
   {{velocity
 
  $newATEQAObject.set(question,...) and
  $newATEQAObject.set(answer,...) give me challeges
 
  Some text elements (not this example) will contain characters or
  combination of characters that will have a effect;
  - on the script not being valid; the  (double bracket) character
 
 
  You need to make sure, when generating the quoted strings, to replace
  quotes () with $escapetool.quote or $escapetool.q and single quotes (')
  with $escapetool.singleQuote or $escapetool.s. Example:
 
  $newATEQAObject.set(answer,Then the robot says: ${escapetool.q}Hello
  World!${escapetool.q})
 
  Anything else, besides quotes or single quotes, should have no impact on
  the validity of your velocity script, as long as your string is wrapped
 by
  quotes.
 
 This is a very helpfull suggestion, but there is a next step, the semantic
 meaning of the quotes or any markup; most of the time (in my special case)
 the double quote is used to give a accent to a word, group of words; i
 would say xwiki markup; bold, underline, italic or combination woud be a
 better substitute, but in other cases  = Inch. So the logic would say if
 the quotes 

Re: [xwiki-users] list of tags for a document?

2011-11-17 Thread Chris Quenelle

I basically have an FAQ Application created similar to the application
demo on the web site.  I have tagged my FAQ entries with tags, and I can
use the tag cloud to filter items in the livetable display.

Now I'd like to add a column which holds the list of tags for each
FAQ document.

In the livetable examples, I can see example columns like
doc.date, but I don't think there is a doc.tags.

So I think I want to know:
How do I put an arbitrary expression in a livetable?
How do I write an arbitrary expression in velocity that access 
the Java API that I found for tags?

Are those the questions I should be asking?  :-)

--chris




On Wednesday November 16, at2:28PM, Ludovic Dubost wrote:

 What do you mean by translating this into a livetable context ?
 What do you want to achieve ?
 
 Ludovic
 
 2011/11/16 Chris Quenelle ch...@quenelle.org
 
 
 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 ListString 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, at12: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=viewTagtag=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@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users
 
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users
 
 
 
 
 -- 
 Ludovic Dubost
 Founder and CEO
 Blog: http://blog.ludovic.org/
 XWiki: http://www.xwiki.com
 Skype: ldubost GTalk: ldubost
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] list of tags for a document?

2011-11-17 Thread Ludovic Dubost
Hi,

Actually there is an easy solution. It is possible to use fields from a
different class than the main class:
Do it like this

tags : { type : none, link : view,  filterable : false,
sortable: false, class : XWiki.TagClass },

However please note that there are some limitations (I'm not sure filtering
or sorting works for a field from a different class).
Also you might want to change the display separate value in the class
XWiki.TagClass (to a ,)

Ludovic


2011/11/17 Chris Quenelle ch...@quenelle.org


 I basically have an FAQ Application created similar to the application
 demo on the web site.  I have tagged my FAQ entries with tags, and I can
 use the tag cloud to filter items in the livetable display.

 Now I'd like to add a column which holds the list of tags for each
 FAQ document.

 In the livetable examples, I can see example columns like
 doc.date, but I don't think there is a doc.tags.

 So I think I want to know:
 How do I put an arbitrary expression in a livetable?
 How do I write an arbitrary expression in velocity that access
 the Java API that I found for tags?

 Are those the questions I should be asking?  :-)

 --chris




 On Wednesday November 16, at2:28PM, Ludovic Dubost wrote:

  What do you mean by translating this into a livetable context ?
  What do you want to achieve ?
 
  Ludovic
 
  2011/11/16 Chris Quenelle ch...@quenelle.org
 
 
  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 ListString 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, at12: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=viewTagtag=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@xwiki.org
  http://lists.xwiki.org/mailman/listinfo/users
 
  ___
  users mailing list
  users@xwiki.org
  http://lists.xwiki.org/mailman/listinfo/users
 
 
 
 
  --
  Ludovic Dubost
  Founder and CEO
  Blog: http://blog.ludovic.org/
  XWiki: http://www.xwiki.com
  Skype: ldubost GTalk: ldubost
  ___
  users mailing list
  users@xwiki.org
  http://lists.xwiki.org/mailman/listinfo/users

 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users




-- 
Ludovic Dubost
Founder and CEO
Blog: http://blog.ludovic.org/
XWiki: http://www.xwiki.com
Skype: ldubost GTalk: ldubost
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] list of tags for a document?

2011-11-17 Thread Vincent Massol
Hi Chris,

On Nov 17, 2011, at 10:53 PM, Chris Quenelle wrote:

 
 I basically have an FAQ Application created similar to the application
 demo on the web site.

You might want to check out this FAQ app I've published yesterday:
http://extensions.xwiki.org/xwiki/bin/view/Extension/FAQ+Application

It's used here for ex:
http://www.xwiki.org/xwiki/bin/view/FAQ/WebHomeNew

  I have tagged my FAQ entries with tags, and I can
 use the tag cloud to filter items in the livetable display.
 
 Now I'd like to add a column which holds the list of tags for each
 FAQ document.
 
 In the livetable examples, I can see example columns like
 doc.date, but I don't think there is a doc.tags.
 
 So I think I want to know:
 How do I put an arbitrary expression in a livetable?

See 
http://extensions.xwiki.org/xwiki/bin/view/Extension/Livetable+Macro#HCustomJSON

Thanks
-Vincent

 How do I write an arbitrary expression in velocity that access 
 the Java API that I found for tags?
 
 Are those the questions I should be asking?  :-)
 
 --chris
 
 
 
 
 On Wednesday November 16, at2:28PM, Ludovic Dubost wrote:
 
 What do you mean by translating this into a livetable context ?
 What do you want to achieve ?
 
 Ludovic
 
 2011/11/16 Chris Quenelle ch...@quenelle.org
 
 
 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 ListString 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, at12: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=viewTagtag=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@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users