[xwiki-users] section editing
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 I do to hide this icon ? Thanks, S.A ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Reserved names for fields in livetables
Hi Radek, On Wed, Dec 23, 2009 at 1:11 AM, Radek Rekas radek.re...@evalua.com.auwrote: 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 are there reserved names that cant be used as fieldnames in livetables? Some translations are reserved names. Either you should change the name or use the livetable's translation prefix property and register a matching translation page somewhere on your wiki. Guillaume Below is the macro code that I am using to create the livetable: #set($collist = [council, region,title, description]) #set($colprops = { council : { type : list , size : 1, link : view}, region : { type : text , size : 10, link : view}, title : { type : text , size : 20, link : none}, description : { type : text , size : 10, link : none} }) #set($options = { className:Tenders.TendersClass, tagCloud : true, rowCount: 10 }) #livetable(Tenders $collist $colprops $options) Radek Rekas ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users -- Guillaume Lerouge Product Manager - XWiki SAS Skype: wikibc Twitter: glerouge http://guillaumelerouge.com/ ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Restful API create object
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 page however all of the fields in that object are empty. What is the correct format needed to post the name=value pairs? What is the significance of the property# bit in the object resources section of the restfulapi doco (http://platform.xwiki.org/xwiki/bin/view/Features/XWikiRESTfulAPI). Do the name=value pairs need to be prefixed with property#? That's it. The property# is a prefix to be added to the name=value pair in order to make the processing logic recognize that which pairs are talking about a property of the object and which about some data concerning the representation (like the className and other attributes that could be taken into account in the future). 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. -Fabio ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] renaming caused an unreachable page
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, deleting it from that file - it's a subdirectory within that file, dropping wiki and importing it again) Thanks mb ... and by the way: Thanks to all for that great version 2! Merry Christmas and a lot of fun success in 2010 ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] renaming caused an unreachable page
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($renamedDoc = $xwiki.getDocument(Blog.AB5/CD6)) {{/velocity}} It fails for {{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 you have enough permissions? #end {{/velocity}} and fails also running {{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 you have enough permissions? #end {{/velocity}} -Original Message- From: users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] On Behalf Of Caleb James DeLisle Sent: Donnerstag, 24. Dezember 2009 04:01 To: XWiki Users Subject: Re: [xwiki-users] renaming caused an unreachable page 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 you have enough permissions? #end {{/velocity}} Caleb Michael Beetz wrote: 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, deleting it from that file - it's a subdirectory within that file, dropping wiki and importing it again) Thanks mb ... and by the way: Thanks to all for that great version 2! Merry Christmas and a lot of fun success in 2010 ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] renaming caused an unreachable page
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.safeDocName]] #else Failed to get doc do you have enough permissions? #end {{/velocity}} Caleb Michael Beetz wrote: 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($renamedDoc = $xwiki.getDocument(Blog.AB5/CD6)) {{/velocity}} It fails for {{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 you have enough permissions? #end {{/velocity}} and fails also running {{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 you have enough permissions? #end {{/velocity}} -Original Message- From: users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] On Behalf Of Caleb James DeLisle Sent: Donnerstag, 24. Dezember 2009 04:01 To: XWiki Users Subject: Re: [xwiki-users] renaming caused an unreachable page 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 you have enough permissions? #end {{/velocity}} Caleb Michael Beetz wrote: 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, deleting it from that file - it's a subdirectory within that file, dropping wiki and importing it again) Thanks mb ... and by the way: Thanks to all for that great version 2! Merry Christmas and a lot of fun success in 2010 ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] renaming caused an unreachable page
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 2009 08:10 To: XWiki Users Subject: Re: [xwiki-users] renaming caused an unreachable page 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.safeDocName]] #else Failed to get doc do you have enough permissions? #end {{/velocity}} Caleb Michael Beetz wrote: 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($renamedDoc = $xwiki.getDocument(Blog.AB5/CD6)) {{/velocity}} It fails for {{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 you have enough permissions? #end {{/velocity}} and fails also running {{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 you have enough permissions? #end {{/velocity}} -Original Message- From: users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] On Behalf Of Caleb James DeLisle Sent: Donnerstag, 24. Dezember 2009 04:01 To: XWiki Users Subject: Re: [xwiki-users] renaming caused an unreachable page 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 you have enough permissions? #end {{/velocity}} Caleb Michael Beetz wrote: 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, deleting it from that file - it's a subdirectory within that file, dropping wiki and importing it again) Thanks mb ... and by the way: Thanks to all for that great version 2! Merry Christmas and a lot of fun success in 2010 ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users