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 is i want to get the normal name of the page which is displayed 
> when u do a [$doc.name]
> 

That is not the document name, but the document title. You can get it
with $doc.displayTitle

If you want to camelcase the document name, you can use:

$doc.name.replaceAll('([a-z])([A-Z])', '$1 $2')
-- 
Sergiu Dumitriu
http://purl.org/net/sergiu/
_______________________________________________
users mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/users

Reply via email to