Re: [xwiki-users] renaming caused an unreachable page

2009-12-23 Thread Michael Beetz
Caleb, Fine! ... and now I am going to play with macros (The task manager application (new.task) doesn't work in a wiki farm ...) Thanks mb -Original Message- From: users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] On Behalf Of Caleb James DeLisle Sent: Donnerstag, 24. Dezember

Re: [xwiki-users] renaming caused an unreachable page

2009-12-23 Thread Caleb James DeLisle
Whoops, I forgot the $ The if line was for checking that the first command succeeded so it checks that the value is not null. try this. {{velocity}} #set($renamedDoc = $xwiki.getDocument("Blog.AB5/CD6")) #if($renamedDoc) $renamedDoc.rename("Blog.safeDocName") Looks like it Worked! [[Blog.s

Re: [xwiki-users] renaming caused an unreachable page

2009-12-23 Thread Michael Beetz
Caleb, Thanks, however it leads to my second problem: I am running a wiki farm, therefore I am getting "Failed to execute macro: velocity" I am running it as admin. What rights do I have to set? Is there HowTo for to set rights in a wiki farm? Thanks mb It works for {{velocity}} #set($rena

Re: [xwiki-users] renaming caused an unreachable page

2009-12-23 Thread Caleb James DeLisle
You should be able to get hold of the Document using velocity or groovy code, something like: {{velocity}} #set($renamedDoc = $xwiki.getDocument("Blog.AB5/CD6")) #if(renamedDoc) $renamedDoc.rename("Blog.safeDocName") Looks like it Worked! [[Blog.safeDocName]] #else Failed to get doc do

[xwiki-users] renaming caused an unreachable page

2009-12-23 Thread Michael Beetz
Hi all, I've done a mistake: Renaming a (blog) page to a page having a "/" in the name: "AB5 / CD6". The page is listed in the blog overview and in the document index. However I am not able to access / delete / rename that page. I am using 2.1.1. Any hints? (except exporting the wiki, dele

Re: [xwiki-users] Restful API create object

2009-12-23 Thread Fabio Mancinelli
On Dec 23, 2009, at 2:30 PM, Fabio Mancinelli wrote: > > So a request like this: > > className=Foo > property#a=aaa > property#b=bbb > ... > > Will create an object of type Foo whose property "a" will be set to "aaa" and > property "b" will be set to "bbb". > Of course the previous pair list

Re: [xwiki-users] Restful API create object

2009-12-23 Thread Fabio Mancinelli
On Dec 23, 2009, at 5:05 AM, Radek Rekas wrote: > We are posting a string of name=value pairs seperated by > ampersands with a className property at the end set to the type of > xwiki class that we would like to create. > > The object of the correct type is getting created and attached to the pa

Re: [xwiki-users] Reserved names for fields in livetables

2009-12-23 Thread Guillaume Lerouge
Hi Radek, On Wed, Dec 23, 2009 at 1:11 AM, Radek Rekas wrote: > When using a field named "title" in a live table the caption for that field > in the livetables header displays as "Browser Title Bar Text". If I change > the name for that field then it displays correctly. > > Is this is a bug or ar

[xwiki-users] section editing

2009-12-23 Thread Sophie Alexandre
Hello, The icon (then pen) indicating the section editing appears even on pages on which the only right access is "view". I am sure that the users have no rights to "edit" these pages. The parameter in xwiki.cfg is configured like that : xwiki.section.edit=1 I have XWiki Entreprise 2.0. How can