Last modified by Gunter Ohrner on 2020/01/28

<
From version < 16.2 >
edited by Eduard Moraru
on 2016/01/05
To version < 16.4 >
edited by Vincent Massol
on 2017/10/06
>
Change comment: There is no comment for this version

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.enygma
1 +XWiki.VincentMassol
FAQCode.FAQClass[0]
answer
... ... @@ -1,10 +1,13 @@
1 1  Before XWiki 6.4RC1, this was not possible and modifying the content of the home page (i.e. ##Main.WebHome##) was the only solution to work around this limitation.
2 2  
3 3  == Since 6.4RC1 ==
4 +
4 4  Go to the wiki's [[##Administration > Wikis > Descriptor##>>extensions:Extension.Wiki Application||anchor="HConfigureWiki"]] section and set the ##Homepage## field with the location of the page you want to use as homepage for your wiki.
5 5  
6 6  == Workarounds for older versions ==
8 +
7 7  You have several options:
10 +
8 8  * Option 1: Simply edit ##Main.WebHome## using the wiki editor or the WYSIWYG editor and replace the content by your content
9 9  * Option 2: Include the page you wish to display from the home page, e.g. have the following in ##Main.WebHome##:(((
10 10  {{code}}
... ... @@ -11,7 +11,7 @@
11 11  {{include reference="MySpace.MyPage"/}}
12 12  {{/code}}
13 13  )))
14 -* Option 3: [[Redirect>>extensions:Extension.Redirect]] the home page to your page, using a script, e.g. have the following in ##Main.WebHome##:(((
17 +* Option 3: [[Redirect>>snippets:Extension.Redirect]] the home page to your page, using a script, e.g. have the following in ##Main.WebHome##:(((
15 15  {{code}}
16 16  {{velocity}}
17 17  $response.sendRedirect($xwiki.getURL('MySpace.MYPage'))
... ... @@ -18,7 +18,7 @@
18 18  {{/velocity}}
19 19  {{/code}}
20 20  )))
21 -* Option 4: Modify the ##web.xml## file to control what ##http:~//<yourserver>/## should redirect to. Specifically, edit ##WEB-INF/web.xml##, locate the section with the servlet responsible for the redirect (the one with the line {{code}}<servlet-class>com.xpn.xwiki.web.HomePageRedirectServlet</servlet-class>{{/code}}, and change that section to contain something like:(((
24 +* Option 4: Modify the ##web.xml## file to control what ##http:~/~/<yourserver>/## should redirect to. Specifically, edit ##WEB-INF/web.xml##, locate the section with the servlet responsible for the redirect (the one with the line {{code}}<servlet-class>com.xpn.xwiki.web.HomePageRedirectServlet</servlet-class>{{/code}}, and change that section to contain something like:(((
22 22  {{code}}
23 23  <servlet>
24 24   <servlet-name>redirectHomeServlet</servlet-name>
... ... @@ -30,4 +30,4 @@
30 30  </servlet>
31 31  {{/code}}
32 32  )))
33 -* Option 5: Keep the dashboard but change the displayed widgets. To do so go to ##Dashboard.WebHome## and edit in inline mode. You can also edit the home page and click the included page in the panel on the right to navigate to ##Dashboard.WebHome##
36 +* Option 5: (only if your version has the Dashboard displayed on the hom page) Keep the dashboard but change the displayed widgets. To do so go to ##Dashboard.WebHome## and edit in inline mode. You can also edit the home page and click the included page in the panel on the right to navigate to ##Dashboard.WebHome##

Get Connected