IRC Archive for channel #xwiki on 31 March 2017

Last modified by Vincent Massol on 2017/03/31 22:56

<xwikibot> has joined #xwiki
09:41 <vmassol> !help
09:41 <tmortagne> but even after the stop some changes where logged to IRC and some not
09:41 <vmassol> welcome back bot :)
09:50 <Pbas> hum, yesterday night I dreamt that vmassol sent me a postcard from 'south of France: du Boulou (66)', he wrote me told me he working here now .... I must consult?
09:52 <Slashman> has joined #xwiki
09:52 <Slashman> has quit
09:52 <vmassol> :)
09:52 <vmassol> I'd say yes you should !
09:53 <Pbas> anyway you just talking to the bot ;-))
09:53 <vmassol> now I wouldn't mind moving to south of France
09:53 <vmassol> hehe
09:53 <vmassol> so I should consult too :)
09:53 <Pbas> :-D
10:00 <KermitTheFragger> has joined #xwiki
10:00 <floflobel> has joined #xwiki
10:02 <Slashman> has joined #xwiki
10:15 <Slashman> has quit
10:39 <Slashman> has joined #xwiki
10:46 <evalica> has joined #xwiki
10:50 <msmeria> has joined #xwiki
10:51 <msmeria1> has quit
11:06 <vmassol> guys I'm going into a direction when I need your input. If you have some time, could you check the comments for ? I can explain to make it simpler to understand if need be. thx
11:14 <vmassol> ok I need to decide if I go ahead. I'll leave 5 minutes and then I'll start the refactoring
11:16 <vmassol> ideas:
11:16 <vmassol> - new filter name 'escapeLike'
11:16 <vmassol> - add an ESCAPE clause to LIKEs
11:16 <vmassol> - also escape parameters, except those protected by {{{...}}}
11:18 <vmassol> - this would mean that {{{...}}} in a parameter is not supported
11:18 <vmassol> - we could use another protection syntax
11:19 <vmassol> - it could be character based too
11:46 <KermitTheFragger> has quit
12:01 <KermitTheFragger> has joined #xwiki
12:12 <vmassol> so after discussing with tmortagne here's the new proposal:
12:15 <tmortagne> small fix in your comment
12:19 <vmassol> thx
14:25 <OSIMasson1> has joined #xwiki
14:36 <KermitTheFragger> has quit
14:49 <KermitTheFragger> has joined #xwiki
15:22 <Pbas> Hello, vmassol: you didn't like my space folder icones of nested page from {{spaceindex sort="modificationDate" count="20" /}}
15:22 <Pbas> then here another nice screen: (Users can identify terminal/nested page)
15:39 <vmassol> Pbas: I don't see why it's important to know if there are childnre or not
15:39 <vmassol> since all pages are supposed to be of the same type
15:39 <vmassol> if you want your users to navigate then you need a tree
15:39 <vmassol> for me you're confusing your users
15:39 <Pbas> he he I knew you don't like it!
15:39 <vmassol> :)
15:40 <Pbas> It is for a space only
15:41 <acotiuga> has joined #xwiki
15:43 <acotiuga> has left #xwiki
15:46 <Pbas> One question: How do you manage to order pages if all pages are nested? simple user understand where he must store the page?
15:47 <vmassol> WDYM order?
15:47 <Pbas> when simple user create a page, by default the new page is created on current "space"
15:48 <vmassol> by default a page is created as a subpage of the current page
15:48 <Pbas> yes then after a while it is messy
15:48 <vmassol> unless the user changes the location in the create dialog
15:48 <vmassol> no
15:48 <vmassol> it's the opposite
15:48 <vmassol> if you create everything at the same level then it's messy
15:49 <Pbas> yes but a normal user didn't think about ordering
15:49 <vmassol> and users have to invent naming conventions
15:49 <vmassol> to differentiate pages
15:49 <vmassol> I don't understand what you mean by ordering
15:49 <vmassol> there's no order between pages
15:50 <tmortagne> Pbas: depends what you call "normal user", you are basically saying that people can't handle folders
15:50 <Pbas> I meanin "ranger"
15:50 <Pbas> "classer"
15:50 <vmassol> so organization
15:50 <vmassol> again one folder is much more messy
15:51 <vmassol> take a drawer at home and put all your invoices into a single drawer
15:51 <vmassol> then dare tell me it's clean and easy to find what you want afterwards :)
15:51 <vmassol> that's why you have different binders
15:51 <vmassol> and different drawers
15:52 <vmassol> I'm not sure why you think that a single level (a la wikipedai) is better
15:52 <vmassol> if you do that you're forcing users to invent categorization
15:52 <vmassol> by creating naming conventions when they create their pages
15:52 <vmassol> Client1Invoice1
15:52 <vmassol> Client1Invoice2
15:52 <vmassol> Client2Invoice1
15:53 <vmassol> instead of Client1 > Invoice1, Invoice2
15:53 <vmassol> Client 2 > Invoice1
15:54 <vmassol> also don't forget the concept of wikis, it's meant to be self organized, if you create too much strucrure you're going to fail and remove serendipity and initiative from people who contribute
15:55 <Pbas> agree it is for this raeson that nested affraid boss
15:55 <Pbas> simple users haven't right enough to create new space on xwiki 7.0.1
15:55 <Pbas> Need news space/folder? ask to advanced user
15:56 <vmassol> as I said it's the same
15:56 <vmassol> at worst you'll have everything at the same level
15:57 <vmassol> with bad naming
15:57 <Pbas>  anyway I must explain the nested concept to my boss
15:57 <vmassol> but it won't be simpler at all
15:58 <vmassol> hire me and I'll come do a training in the south :)
15:58 <vmassol> (which would be nice since it's raining here :))
15:58 <Pbas> ha yes you want send a postcard!
15:58 <vmassol> :)
15:58 <vmassol> see, it'll come true!
15:59 <Pbas> ha ha
15:59 <Pbas> now the sun shining and the weather is warm
15:59 <Pbas> but tomorrow raining ... maybe
16:03 <Pbas> tmortagne: "normal usser" is the oposite of "advanced user" , with wysiwig editor only
16:03 <msmeria> has quit
16:07 <Pbas> I have to go, have a nice WE xwiki team! :-)
16:08 <Pbas> has quit
16:54 <floflobel> has quit
17:02 <mflorea> has quit
17:17 <OSIMasson1> has quit
17:46 <Slashman> hello
17:46 <Slashman> I am trying to escape (n) to avoid the 'thumb_down'
17:46 <Slashman> but ~(n~) doesn't work, any idea?
17:47 <vmassol> hi Slashman
17:47 <vmassol> see
17:48 <Slashman> vmassol: thanks!
17:52 <Slashman> vmassol: any idea at which version the emoticon (n) was added? :p
17:52 <vmassol> a long time ago
17:52 <vmassol> probably XWiki 1.x ou 2.x
17:52 <vmassol> 10 years ago or so
17:53 <Slashman> I see, thanks! because ofc my users are telling me that (n) was displayed normally before :D
17:54 <vmassol> maybe you didn't have the icon transformation defined in xwiki.propreties
17:54 <vmassol> (it's the default though)
17:55 <Slashman> I never touched it so I guess not
17:55 <vmassol> actually
17:55 <vmassol> #-# [Since 2.6RC1]
17:55 <vmassol> it was introduced in 2.6RC1
17:55 <evalica> has quit
17:55 <vmassol> so quite a while ago :)
17:55 <evalica> has joined #xwiki
17:55 <Slashman> this wiki is not that old, I think it was created at version 6.something
17:56 <evalica> has quit
17:58 <Slashman> vmassol: any way to replace all (n) by {{{(n)}}} globally maybe?
17:58 <Slashman> or to disable a specific emoticon
17:58 <vmassol> yes you can do that
17:58 <vmassol> it's fully configurable
17:59 <vmassol> hmmm
17:59 <vmassol> actually you can add new ones
17:59 <vmassol> not sure if you can remove existing one
17:59 <vmassol> maybe setting them to empty will work
17:59 <vmassol> check your
17:59 <vmassol> #-# rendering.transformation.icon.mappings = (n) = thumb_down
18:00 <vmassol> I wonder if it works if you set:
18:00 <vmassol> no
18:00 <vmassol> forget that it won't
18:00 <Slashman> :p
18:02 <vmassol> otp
18:05 <vmassol> you can disable all emoticons but not a specific default one
18:16 <sorinello> has quit
18:19 <Slashman> vmassol: okay, thanks again, I'll check and see what's better for us, no way to sed "s/(n)/{{{(n)}}}/g" all wiki I guess?
18:19 <vmassol> yes that's possible to do in xwiki
18:19 <vmassol> with a small script
18:19 <vmassol> velocity or groovy for ex
18:20 <vmassol> would be an interesting snippet to add to
18:20 <Slashman> hm, I have never done this, I'll have to look at the documentation
18:20 <vmassol> I coded this one a long time ago:
18:21 <vmassol> be careful when you do this though
18:21 <vmassol> can be dangerous :)
18:22 <Slashman> yeah I bet, I'll do a snapshot before, then we'll have to check
18:22 <Slashman> seems to be exactly what I need in this case
18:22 <vmassol> this example only search in page content
18:22 <vmassol> if you also want to replace in xobjects then it needs to be modified
18:23 <Slashman> no clue what a xobjects is so I guess I'll try your snippet as it is for now :D
18:23 <vmassol> for example if you have blog posts they won't be changed
18:24 <vmassol> since blog posts's content are saved in xobjects in blog pages
18:24 <vmassol> to undestand xobjects:
18:24 <vmassol> (it's what we call Objects)
18:24 <Slashman> that's fine then, this wiki is strictly documentation, no blog, only pages
18:25 <vmassol> but I do'nt think the replace is a nice solution
18:25 <vmassol> since when new user enter (n) the problem will remain
18:27 <Slashman> that's right, as we know how users works, we'll tell them and they'll forget, but I don't see a way around that, at least we'll have the snippet ready
18:27 <vmassol> with a bit fo work
18:27 <vmassol> but not too much
18:27 <vmassol> I'm sure it's possible to disable a given emoticon mapping
18:27 <vmassol> checking something
18:28 <vmassol> yes it's easy
18:28 <vmassol> well
18:28 <vmassol> easy if you know java
18:28 <vmassol> you just need to create a jar with an overridden component to replace this:
18:29 <Slashman> I'm not sure I want to go that route, will it stay between xwiki updates?
18:30 <vmassol> well this class has't been changed since 2.6RC1 so far
18:30 <vmassol> and we don't break component interfaces
18:30 <KermitTheFragger> has quit
18:30 <vmassol> so it's pretty safe
18:31 <vmassol> I'm checking somrthing more
18:31 <vmassol> 2mn
18:31 <vmassol> ah too bad
18:32 <vmassol> with a one line change I can implement support for removing emoticon mapping :)
18:32 <Slashman> :D
18:32 <vmassol> would jsut need to check for an empty value at
18:33 <vmassol> and then you'd configure the followxing in your
18:33 <vmassol> #-# rendering.transformation.icon.mappings = (n) =
18:33 <vmassol> (without the leading comments)
18:33 <vmassol> rendering.transformation.icon.mappings = (n) =
18:33 <sorinello> has joined #xwiki
18:33 <Slashman> I'm not sure it's worth it for xwiki, it's only that we have ceazy users :p
18:33 <vmassol> it's interesting
18:34 <Slashman> s/ceazy/crazy/g
18:34 <vmassol> let me check if we have a jira issue already for this
18:34 <Slashman> I was about to ask if I should raise a ticket then :p
18:35 <vmassol> nope I don't see one
18:35 <vmassol> so yes you could raise a jira
18:35 <vmassol> in XWiki Rendering
18:35 <vmassol> component = Transformation,
18:37 <Slashman> omw
18:41 <edvorg> has joined #xwiki
18:43 <Slashman> vmassol:
18:43 <vmassol> ok thanks
18:43 <Slashman> funny fact: jira also translate (n) with the same emoticon ;)
18:46 <vmassol> I know
18:46 <vmassol> I took the syntax from confluence initially :)
18:50 <vmassol> Slashman: ok works with my one line change :)
18:51 <vmassol> which version of XWiki are you on?
18:53 <Slashman> vmassol: shame on us but it's XWiki Enterprise 7.1.2
18:54 <vmassol> fixed
18:54 <vmassol> but you'll get it only in 8.4.5 and 9.3
18:54 <vmassol> now
18:55 <vmassol> since this file hasn't changed forever
18:55 <vmassol> you can just take the JAR for itand replace the one you have by this one
18:55 <vmassol> do you have access to your server's WEB-INF/lib?
18:57 <Slashman> yep
18:57 <vmassol> ok cool
18:57 <vmassol> so when our CI will have built it
18:57 <vmassol> you can take the JAR from
18:58 <vmassol> remove yours and replace with the one from
18:58 <vmassol> you need to wait for date for the JAR later than now though
18:58 <vmassol> the version there is from this morning ATM
18:58 <vmassol> is that clear?
18:58 <vmassol> :)
18:59 <Slashman> ok, then can you remind me what I must add to the to unbind the emoticon?
18:59 <vmassol> see the issue
18:59 <vmassol> I commented there :)
18:59 <Slashman> rendering.transformation.icon.mappings = (n) = ?
18:59 <vmassol> without the question mark yes
18:59 <Slashman> without the ? :p
18:59 <Slashman> okay great, thank you!
19:03 <vmassol> yw
19:07 <edvorg> has quit
19:41 <vmassol> Slashman: it's now documented at
19:42 <vmassol> the jar is now available BTW.
19:42 <vmassol> for example you can take:
19:51 <sgc072> has joined #xwiki
20:17 <Slashman> yes thanks, I'll do the fix Monday I think :p
20:18 <Slashman> has quit
20:24 <OSIMasson1> has joined #xwiki
20:32 <sgc072> has quit
20:43 <sgc072> has joined #xwiki
21:03 <sgc072> has quit
22:56 <OSIMasson1> has quit

Get Connected