[xwiki-users] XMLRPC Page Creation problem

David Brain dbrain at bandwidth.com
Fri Jun 6 23:32:39 CEST 2008


Hi,

Quick followup on the issue I was having with the XML RPC API.

I think I have found a 'solution' - or at least a work around for this  
issue.  If I set the 'id' of the page when I create the page, then I  
can use spaces.  I just have to set the id to <space>.<title> and it  
seems to work.

David.

On Jun 3, 2008, at 9:31 AM, David Brain wrote:

> I did try setting the spaces to '+' but that didn't work either (it
> embeds the '+' in the title rather than a space).
>
> Thanks,
>
> David.
>
> On Jun 3, 2008, at 3:00 AM, Vincent Massol wrote:
>
>>
>> On Jun 2, 2008, at 9:36 PM, Guillaume Lerouge wrote:
>>
>>> Actually using the wiki as a page creation interface your spaces
>>> would be
>>> replaced with "+" instead of "_" : is that any better to you ? This
>>> is
>>> required because you cannot have URLs with spaces within them, e.g.
>>> your
>>> resulting URL will be .../xwiki/bin/view/Main/My+Test+Page anyway...
>>
>> AFAIK (I may be wrong) the "+" are only used to display the page's
>> name in the URL but the real page name is with spaces.
>>
>> -Vincent
>>
>>> On Mon, Jun 2, 2008 at 8:59 PM, Vincent Massol <vincent at massol.net>
>>> wrote:
>>>
>>>> Hi David,
>>>>
>>>> This looks like a bug to me since you should be able to create the
>>>> same page names with XMLRPC than you can by using the wiki  
>>>> directly.
>>>> Feel free to create a jira issue on http://jira.xwiki.org to report
>>>> the problem.
>>>>
>>>> Thanks
>>>> -Vincent
>>>>
>>>> On Jun 2, 2008, at 8:10 PM, David Brain wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> I'm trying to create pages via the XMLRPC api - while this seems  
>>>>> to
>>>>> mostly work, I am encountering one problem.  When my page titles
>>>>> contain spaces (e.g. 'My Test Page') this is saved into XWiki with
>>>>> the
>>>>> spaces replaced by underscores e.g. 'My_Test_Wiki'.
>>>>>
>>>>> Is there a correct approach to take to allow spaces in the page
>>>>> titles
>>>>> within XWiki?  I see that in order to link to pages with spaces in
>>>>> the
>>>>> titles slightly different markup is needed ('[My Test Page>view.My
>>>>> Test Page]'), but I can handle doing this in my code.
>>>>>
>>>>> Thanks,
>>>>>
>>>>> David.
>> _______________________________________________
>> users mailing list
>> users at xwiki.org
>> http://lists.xwiki.org/mailman/listinfo/users
>
> David Brain
> dbrain at bandwidth.com
> 919.297.1078
>
>
>
> _______________________________________________
> users mailing list
> users at xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users

David Brain
dbrain at bandwidth.com
919.297.1078





More information about the users mailing list