[xwiki-users] [XWiki] change the font size and color in a livetable

2015-04-17 Thread Adrien Moi
Hello I'm creating a Live Table with the normal macro and I would like to know if it is possible to change the font size and color of the text inside the table ? {{velocity}} #set($columns = [doc.name, doc.date]) #set($columnsProperties = { doc.name : {displayName : Name }, doc.date :

[xwiki-users] run document skript with admin rights

2014-12-05 Thread Adrien Moi
Hello ! on one wiki page I have a skript to delete a comment on another page. But when a user that has no edit right tries to do it, it fails. Is there a way to go around this and let the user delete the comment as if he had edit rights? for reference here is my simplified code {{groovy}}

[xwiki-users] command to delete a comment

2014-11-27 Thread Adrien Moi
Hello In a groovy macro I can access the comments on the page like this : comments = doc.getComments(); now I want to delete the last one... how can I do that? I tried : comments[0].delete(); but it doesn't work do you know what to type to make it work? Thanks a lot Adrien

[xwiki-users] Error code too large

2014-11-26 Thread Adrien Moi
Hello ! I got a pretty long code for one of my page and I get this error : Caused by: javax.script.ScriptException: org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: General error during class generation: Method code too large! Is there any way to change the xwiki

[xwiki-users] object not transfered with include macro

2014-11-25 Thread Adrien Moi
Hello I'm using the include macro to transfer some information between the different documents of my xwiki, but somehow I can't transfer any class. When I try this code : First page : {{groovy}} xy=2; public class Souris { public String Name; public Souris(){ Name=Jerry; } } Souris Verte =

[xwiki-users] define a class for multiple documents

2014-11-20 Thread Adrien Moi
Hello, I have little question : I would like to define a class in a groovy macro in a document, create an instances of this class on another document and then access this instance on the first document. Is that possible to do? It would kinda look like this: First doc (Doc1): {{groovy}} public

[xwiki-users] access another document with groovy

2014-11-10 Thread Adrien Moi
Hello I have a little question and I couldn't find an answer on the internet... In a groovy part, I can create list the attachments of the current document with this : {{groovy}} list = doc.getAttachmentList(); print(list); {{/groovy}} how can I access the documents of another page in the same

Re: [xwiki-users] access another document with groovy

2014-11-10 Thread Adrien Moi
Date: Mon, 10 Nov 2014 16:23:33 +0100 From: thomas.morta...@xwiki.com To: users@xwiki.org Subject: Re: [xwiki-users] access another document with groovy def yourDocReference = new DocumentReference('xwiki', 'XWiki', 'WebHome') def yourDoc = xwiki.getDocument(yourDocReference) def list

[xwiki-users] icons not displaying on Main.WebHome

2014-11-04 Thread Adrien Moi
Hello, I just installed XWiki on my computer to make a small Wiki for myself and I was unable to display icons on the page Main.WebHome Icons work fine on the other pages, but when I write [image.icon.accept] in the editor, the text icon.accept appears on the page instead of the icon

[xwiki-users] Icons on main page

2014-11-04 Thread Adrien Moi
Thank you all for the quick answers :-) Sadly none of the proposed syntax work on my Main.WebHome page, but they all work on any other page of the wiki. Is there an option that I might have changed to get this result? Cheers Adrien