[xwiki-users] Beginner's struggle with configuration

2015-01-13 Thread Marcin Kolenda
I am very interested about putting my own xwiki but I've been messing with it and some problems came out. At first i thought it would be good to make subwiki's for "Programming", "Linux", "Mathematics". I could make template wiki and derive extensions and settings from it but how can I install a

[xwiki-users] XWiki utility for stripping HTML

2015-01-13 Thread Bryn Jeffries
I have a Groovy script that takes input from a form textarea. I'd like to prevent html (and JS) markup from being submitted and, if HTML is submitted, strip it out. Is there a tool already packaged within XWiki to do this, or should I look to an external package like Jericho? Thanks, Bryn

Re: [xwiki-users] Context Macro Broken?

2015-01-13 Thread cmherman
I can't believe I didn't state my version. Geez. Enterprise 6.3 Posting the JIRA issue link for reference: http://jira.xwiki.org/i#browse/XE-1459 -- View this message in context: http://xwiki.475771.n2.nabble.com/Context-Macro-Broken-tp7593647p75936

Re: [xwiki-users] Context Macro Broken?

2015-01-13 Thread Thomas Mortagne
On Tue, Jan 13, 2015 at 8:09 PM, cmherman wrote: > Hm. If ($hasEdit) can't be recontextualized I guess I'll have to expand my > options. Thanks for the link. > > BTW, the problem I had with opening and closing the velocity macro is that, > in a panel, closing the velocity macro signals the end of

Re: [xwiki-users] Context Macro Broken?

2015-01-13 Thread cmherman
Hm. If ($hasEdit) can't be recontextualized I guess I'll have to expand my options. Thanks for the link. BTW, the problem I had with opening and closing the velocity macro is that, in a panel, closing the velocity macro signals the end of the panel to the CSS. The entire contents of the panel appe

Re: [xwiki-users] Context Macro Broken?

2015-01-13 Thread Thomas Mortagne
If those example don't work then indeed there seems to be some regression in context macro. Would be great if you could create an issue on http://jira.xwiki.org indicating in which XWiki version you have the bug. On Tue, Jan 13, 2015 at 7:58 PM, cmherman wrote: > It doesn't even work if I do some

Re: [xwiki-users] Context Macro Broken?

2015-01-13 Thread cmherman
It doesn't even work if I do something as simple as: {{context document="OtherSpace.WebHome"}} [[WebHome]] {{/context}} or with an image. The image is broken when this is entered in, for example, Main.Context Test: {{context document="Sandbox.WebHome"}} image:XWikiLogo.png {{/context}} -- Vie

Re: [xwiki-users] Add date of account creation (without time) in User Index problem

2015-01-13 Thread Pascal BASTIEN
Yes I know that format_date parameter doesn't exist for the moment :-), I wanted to improve livetable macro (with pull request at the end I hope). I think I find where this macro is:https://github.com/xwiki/xwiki-platform/blob/master/xwiki-platform-core/xwiki-platform-flamingo/xwiki-platform-fla

Re: [xwiki-users] Add date of account creation (without time) in User Index problem

2015-01-13 Thread Clemens Klein-Robbenhaar
On 01/13/2015 03:05 PM, Pascal BASTIEN wrote: > Thxs a lot to explained me with clarity all of that and help me to understand > better XWiki. > Then with what you give me, I tried to add a format_date parameter () (or > regexp) in columns properties to improve livetable. > I failed because I di

Re: [xwiki-users] Add date of account creation (without time) in User Index problem

2015-01-13 Thread Pascal BASTIEN
Thxs a lot to explained me with clarity all of that and help me to understand better XWiki. Then with what you give me, I tried to add a  format_date parameter () (or regexp) in columns properties to improve livetable. I failed because I didn't manage to find where is store livetable macro :-))

Re: [xwiki-users] Context Macro Broken?

2015-01-13 Thread Thomas Mortagne
Actually you have to use security service since $hasEdit is not going to change whatever you put in the context macro because this is just a Velociy variable set before this page is executed, it's not resetted by context macro. On Tue, Jan 13, 2015 at 1:17 PM, Thomas Mortagne wrote: > What you ha

Re: [xwiki-users] Context Macro Broken?

2015-01-13 Thread Thomas Mortagne
What you have in your example cannot work, you have to understand how Velocity macro work: it executes the Velocity in the macro content and then the result is parsed and executed as wiki syntax, Velocity engine does not have any idea what {{context}} mean, its just plain text for it and will end u

Re: [xwiki-users] Add date of account creation (without time) in User Index problem

2015-01-13 Thread Clemens Klein-Robbenhaar
On 01/13/2015 10:45 AM, Pascal BASTIEN wrote: > Hello, > > To make it work I add this new property in XWiki.XWikiUsers class: > /bin/edit/XWiki/XWikiUsers?editor=class > Name: doc.creationDate Type: String > PrettyName: Creation date > I did not know that you can create class properties with a d

[xwiki-users] List all registered macros

2015-01-13 Thread ICLED
How can I get a list of all *registered* macros?I know how to get a list of the XWiki.WikiMacroClass with the * Query Generator * extension, but it will not show if the macro is properly registered or not.I also want to get the

[xwiki-users] Add date of account creation (without time) in User Index problem

2015-01-13 Thread Pascal BASTIEN
Hello, To make it work I add this new property in XWiki.XWikiUsers class: /bin/edit/XWiki/XWikiUsers?editor=class Name: doc.creationDate Type: String PrettyName: Creation date Custom Display: {{velocity}} {{html}}$value{{/html}} {{/velocity}} The problem is that "Custom display" is not taking in

Re: [xwiki-users] Context Macro Broken?

2015-01-13 Thread Hamster
Does it work if you change... {{context document="wiki1:Main.WebHome"}}#if ($hasEdit){{/context}}[[Wiki1>>wiki1:Main.WebHome]]#end ..to: {{context document="wiki1:Main.WebHome"}}#if ($hasEdit)[[Wiki1>>wiki1:Main.WebHome]]#end{{/context}} -- View this message in context: http://xwiki.475771.n