Changing the default page for a space
Hi, I devlopped a XWiki based site for french users and I'd like to change the name of the default page for a space from "Space.WebHome" to "Space.SomeOtherName" which woud be more meaningful in french. Is this possible or is the "WebHome" name hard-coded somwhere? BTW, I would be interested to change the default space name also ("Main" means "Hand" in french...) Thanks in advance for your answers Daniel -- View this message in context: http://www.nabble.com/Changing-the-default-page-for-a-space-tf3775286.html#a... Sent from the XWiki- Users mailing list archive at Nabble.com.
Hi Daniel, On May 18, 2007, at 3:35 AM, Daniel Zaugg wrote:
Hi,
I devlopped a XWiki based site for french users and I'd like to change the name of the default page for a space from "Space.WebHome" to "Space.SomeOtherName" which woud be more meaningful in french.
Is this possible or is the "WebHome" name hard-coded somwhere?
I think this is hard coded. It would be good to externalize it.
BTW, I would be interested to change the default space name also ("Main" means "Hand" in french...)
hmm... good question. I think it should be possible... However when a space isn't specified in operations we use "Main" as the default space name so there might be some edge cases. It would be good to try if it works. To do it you can write a small velocity script that calls $doc.rename("newname") for each page in the Main space. Another option would be to use the new inbound/outbound rewrite feature recently added in 1.1 B1 (not released yet - 1.1B1 should be released at end of May). This allows to rewrite URLs to the format you want so I guess it should be possible to internally redirect for example */Principal/* to */Main/* and */WebHome* to */Accueil* or something similar. Note that this feature isn't documented yet. Thanks -Vincent
participants (2)
-
Daniel Zaugg -
Vincent Massol