[xwiki-users] Changing the default page for a space
Vincent Massol
vincent at massol.net
Fri May 18 21:32:47 CEST 2007
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
More information about the users
mailing list