Re: [xwiki-users] How to get the document name WITH spaces

2008-07-28 Thread Sergiu Dumitriu
Hosam Hassan wrote: > Hello Sergiu, > > The $doc.displayTitle still removes the spaces from the title. As for the > > $doc.name.replaceAll('([a-z])([A-Z])', '$1 $2') > > I get that exception when I execute it That's a problem with the current backlink gathering mechanism. Try using: $doc.name

Re: [xwiki-users] How to get the document name WITH spaces

2008-07-26 Thread Sergiu Dumitriu
Hosam Hassan wrote: > Yes I know this already but for example if u want to create a new page called > > World cup > > The page will be called worldcup > > if u do a [$doc.name] Here the name of the link will be normal "World Cup" > > BUT if u do a $doc.name u will get worldcup. > > My problem

Re: [xwiki-users] How to get the document name WITH spaces

2008-07-25 Thread Vincent Massol
What we need (do we have it already?) is an API to render a camel case name with spaces. I was looking for one some months ago. I think this would be useful. I need it for example for the level 1 titles on xwiki.org -Vincent On Jul 25, 2008, at 2:52 PM, Hosam Hassan wrote: > Yes I know this

Re: [xwiki-users] How to get the document name WITH spaces

2008-07-25 Thread Thomas Mortagne
On Fri, Jul 25, 2008 at 2:52 PM, Hosam Hassan <[EMAIL PROTECTED]> wrote: > Yes I know this already but for example if u want to create a new page called > > World cup > > The page will be called worldcup > > if u do a [$doc.name] Here the name of the link will be normal "World Cup" > > BUT if u do

Re: [xwiki-users] How to get the document name WITH spaces

2008-07-25 Thread Thomas Mortagne
Hi, On Fri, Jul 25, 2008 at 10:42 AM, Hosam Hassan <[EMAIL PROTECTED]> wrote: > Hello Guys, > > I want to get the document name but WITH the spaces. I do it like that > $doc.name but it prune the white spaces for some reason!. Any idea how to get > the normal name of the document?. $doc.space =