Hi Guillaume On Aug 31, 2009, at 12:28 AM, Guillaume Lerouge wrote:
scripted part of the Blog over to Groovy and keep the rest in the Blog Plugin. I don't have any experience with Groovy inside XWiki but for sure the documentation of Groovy outside is excellent compared to Velocity. I will use the next week to get up to speed and try to convert a piece of the Blog over to Groovy.
Then go ahead and give it a go :-)
One thing you need to be aware of when using Groovy inside the wiki is that your pages will haveto be saved using programming rights. This can cause a number of issues, don't forget to code with an user that has them, it will save yo ua lot of hassle ;-)
I encounter this issue when I tried to create a new blog entry within a Groovy script. That wouldn't be such a problem if I could understand what is going on but I don't. First I don't know when the programming rights are checked and second even if I have programming rights (as user Admin) I still cannot pass that check. The Create Post which calls the inline blog edtior (see CreatePost when a name is given) falls even though no page is created yet. For now it seems I cannot only create a new post when both the CreatePost page as well as the BlogPostTemplate is written in velocity. BTW I use 2.0m4 as the code base. Cheers - Andy