[xwiki-users] Configuration to change the default space i.e main space to user created space?
Hi All, As soon as l gets login , i enter to main space webhome page . I want to change this default main space to some user created space (Basically what i need is as soon as user logs in, he should enter to user created space instead of main space) Is it configurable? Thanks.
Some search results: http://www.xwiki.org/xwiki/bin/view/FAQ/Howtochangethehomepagedestinationwhe... http://www.mail-archive.com/users@xwiki.org/msg06003.html http://lists.xwiki.org/pipermail/users/2008-June/008546.html Hope this helps, Marius On Mon, Jan 9, 2012 at 7:02 PM, mohit gupta <motgupta@gmail.com> wrote:
Hi All,
As soon as l gets login , i enter to main space webhome page . I want to change this default main space to some user created space (Basically what i need is as soon as user logs in, he should enter to user created space instead of main space) Is it configurable? Thanks. _______________________________________________ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Thanks Marius again. As per first option in the link i.e This is the simplest of all. Edit Main.WebHome and type: $response.sendRedirect($xwiki.getURL(MyUserCreatedSpace.WebHome)) where Space.Page is the page you wish to redirect to. I did above and it worked. But now i want to revert it to again old main space. I am not able to do so that because as soon as i go to the main space webhome page , i get to see the source of MyUserCreatedSpace(as i have used the redirect option). I am not able to see the original source code of Main space Webhome page so that i can revert redirect change. . On Tue, Jan 10, 2012 at 1:01 PM, Marius Dumitru Florea < mariusdumitru.florea@xwiki.com> wrote:
Some search results:
http://www.xwiki.org/xwiki/bin/view/FAQ/Howtochangethehomepagedestinationwhe... http://www.mail-archive.com/users@xwiki.org/msg06003.html http://lists.xwiki.org/pipermail/users/2008-June/008546.html
Hope this helps, Marius
On Mon, Jan 9, 2012 at 7:02 PM, mohit gupta <motgupta@gmail.com> wrote:
Hi All,
As soon as l gets login , i enter to main space webhome page . I want to change this default main space to some user created space (Basically what i need is as soon as user logs in, he should enter to user created space instead of main space) Is it configurable? Thanks. _______________________________________________ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Hi Mohit, try accessing your WebHome page using the .../xwiki/bin/edit/Main/WebHome?editor=wiki URL. Guillaume On Tue, Jan 10, 2012 at 12:03 PM, mohit gupta <motgupta@gmail.com> wrote:
Thanks Marius again. As per first option in the link i.e
This is the simplest of all. Edit Main.WebHome and type: $response.sendRedirect($xwiki.getURL(MyUserCreatedSpace.WebHome)) where Space.Page is the page you wish to redirect to.
I did above and it worked. But now i want to revert it to again old main space. I am not able to do so that because as soon as i go to the main space webhome page , i get to see the source of MyUserCreatedSpace(as i have used the redirect option). I am not able to see the original source code of Main space Webhome page so that i can revert redirect change.
.
On Tue, Jan 10, 2012 at 1:01 PM, Marius Dumitru Florea < mariusdumitru.florea@xwiki.com> wrote:
Some search results:
http://www.xwiki.org/xwiki/bin/view/FAQ/Howtochangethehomepagedestinationwhe...
http://www.mail-archive.com/users@xwiki.org/msg06003.html http://lists.xwiki.org/pipermail/users/2008-June/008546.html
Hope this helps, Marius
On Mon, Jan 9, 2012 at 7:02 PM, mohit gupta <motgupta@gmail.com> wrote:
Hi All,
As soon as l gets login , i enter to main space webhome page . I want to change this default main space to some user created space (Basically what i need is as soon as user logs in, he should enter to user created space instead of main space) Is it configurable? Thanks. _______________________________________________ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Thanks Guillaume. With the link i somehow was able to revert the redirect change. Is there any other way i can do revert back without using URL( i mean if user want revert the change from the UI screen itself without typing the url given below) On Tue, Jan 10, 2012 at 4:45 PM, Guillaume Lerouge <guillaume@xwiki.com>wrote:
Hi Mohit,
try accessing your WebHome page using the .../xwiki/bin/edit/Main/WebHome?editor=wiki URL.
Guillaume
On Tue, Jan 10, 2012 at 12:03 PM, mohit gupta <motgupta@gmail.com> wrote:
Thanks Marius again. As per first option in the link i.e
This is the simplest of all. Edit Main.WebHome and type: $response.sendRedirect($xwiki.getURL(MyUserCreatedSpace.WebHome)) where Space.Page is the page you wish to redirect to.
I did above and it worked. But now i want to revert it to again old main space. I am not able to do so that because as soon as i go to the main space webhome page , i get to see the source of MyUserCreatedSpace(as i have used the redirect option). I am not able to see the original source code of Main space Webhome page so that i can revert redirect change.
.
On Tue, Jan 10, 2012 at 1:01 PM, Marius Dumitru Florea < mariusdumitru.florea@xwiki.com> wrote:
Some search results:
http://www.xwiki.org/xwiki/bin/view/FAQ/Howtochangethehomepagedestinationwhe...
http://www.mail-archive.com/users@xwiki.org/msg06003.html http://lists.xwiki.org/pipermail/users/2008-June/008546.html
Hope this helps, Marius
On Mon, Jan 9, 2012 at 7:02 PM, mohit gupta <motgupta@gmail.com> wrote:
Hi All,
As soon as l gets login , i enter to main space webhome page . I want to change this default main space to some user created space (Basically what i need is as soon as user logs in, he should enter to user created space instead of main space) Is it configurable? Thanks. _______________________________________________ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Hi Marius, I tried all the 3 approaches given in the document . Out of 3 first worked i.e redirecting to UserCreated space but other two did not. (Both takes me to WebHome page under Main space) Actually I want to use other two as it convenient to change them and revert back. here is the brief what i did about other two approaches defined in the document. Approach A:- Change the value of xwiki.defaultweb=Main and xwiki.defaultpage=WebHome to new values. Here are the new values i gave xwiki.defaultweb=MyUserCreatedSpace xwiki.defaultpage=WebHome Gave defaultpage as webhome as it is default page of MyUserCreatedSpace Approach B :- Document also tells below approach <servlet> <servlet-name>redirectHomeServlet</servlet-name> <servlet-class>com.xpn.xwiki.web.HomePageRedirectServlet</servlet-class> <init-param> <param-name>homePage</param-name> <param-value>bin/NewHomeSpace/NewHomePage</param-value> </init-param> </servlet> Here is the modified code snippet in web.xml i gave <servlet> <servlet-name>redirectHomeServlet</servlet-name> <servlet-class>com.xpn.xwiki.web.HomePageRedirectServlet</servlet-class> <init-param> <param-name>homePage</param-name> <param-value>bin/MyUserCreatedSpace/WebHome</param-value> </init-param> </servlet> i also tried giving values as <param-value>bin/MyUserCreatedSpace</param-value> <param-value>bin/view/MyUserCreatedSpace/WebHome</param-value> But again takes me to Webhome page under Main space. Please let me know if something else also needs to be configured. On Tue, Jan 10, 2012 at 1:01 PM, Marius Dumitru Florea < mariusdumitru.florea@xwiki.com> wrote:
Some search results:
http://www.xwiki.org/xwiki/bin/view/FAQ/Howtochangethehomepagedestinationwhe... http://www.mail-archive.com/users@xwiki.org/msg06003.html http://lists.xwiki.org/pipermail/users/2008-June/008546.html
Hope this helps, Marius
On Mon, Jan 9, 2012 at 7:02 PM, mohit gupta <motgupta@gmail.com> wrote:
Hi All,
As soon as l gets login , i enter to main space webhome page . I want to change this default main space to some user created space (Basically what i need is as soon as user logs in, he should enter to user created space instead of main space) Is it configurable? Thanks. _______________________________________________ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
participants (3)
-
Guillaume Lerouge -
Marius Dumitru Florea -
mohit gupta