On May 7, 2010, at 4:32 PM, Gabriel CorrĂȘa de Oliveira wrote:

> Hi everybody
> 
> I'm having a really hard time to change the default home for my XWiki
> installation.
> 
> I'm using version 2.2 out of the box with HSQLDB.
> 
> I've edited the web.xml to enable the Redirect Servlet and make it redirect
> the user to a specific space WebHome.
> 
> <servlet>
>   <servlet-name>redirectHomeServlet</servlet-name>
>   <servlet-class>com.xpn.xwiki.web.HomePageRedirectServlet</servlet-class>
>   <init-param>
>     <description>The address to redirect to when the client hits the root
> of the application.</description>
>     <param-name>homePage</param-name>
>     <param-value>bin/MySpace/WebHome</param-value>
>   </init-param>
> </servlet>
> 
> This works fine, when I reach the root of the container
> (http://myhost:8080/), but when I click the logo.png (with the XWiki.org
> logo) it still points to view/Main.
> 
> As an attempt to make the logo point to my specific space and WebHome I
> tried to set the following properties in xwiki.cfg:
> 
> xwiki.defaultweb=MySpace
> xwiki.defaultpage=WebHome
> 
> But it had absolutely no effect.
> 
> I just can't believe there isn't a simpler way to change the home. It seems
> to me, that it's something every XWiki user would want to do

A much simpler solution IMO is to edit the home page and add:

{{velocity}}
$response.sendRedirect($xwiki.getURL("MyNewSpace.MyNewHome"))
{{/velocity}}

Thanks
-Vincent

_______________________________________________
users mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/users

Reply via email to