<
From version < 15.2 >
edited by Evandro Fonseca
on 2014/02/14
To version < 16.3 >
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.tecnicoactu
1 +XWiki.VincentMassol
FAQCode.FAQClass[0]
answer
... ... @@ -1,4 +1,13 @@
1 -The short answer is that you can't. However what you can do is modify the content of the home page (i.e. ##Main.WebHome##) so that it displays what you want. You have several options:
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 +
3 +== Since 6.4RC1 ==
4 +
5 +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.
6 +
7 +== Workarounds for older versions ==
8 +
9 +You have several options:
10 +
2 2  * Option 1: Simply edit ##Main.WebHome## using the wiki editor or the WYSIWYG editor and replace the content by your content
3 3  * Option 2: Include the page you wish to display from the home page, e.g. have the following in ##Main.WebHome##:(((
4 4  {{code}}
... ... @@ -5,7 +5,7 @@
5 5  {{include reference="MySpace.MyPage"/}}
6 6  {{/code}}
7 7  )))
8 -* 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##:(((
9 9  {{code}}
10 10  {{velocity}}
11 11  $response.sendRedirect($xwiki.getURL('MySpace.MYPage'))
... ... @@ -12,7 +12,7 @@
12 12  {{/velocity}}
13 13  {{/code}}
14 14  )))
15 -* 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:(((
16 16  {{code}}
17 17  <servlet>
18 18   <servlet-name>redirectHomeServlet</servlet-name>
XWiki.XWikiComments[0]
Date
... ... @@ -1,1 +1,1 @@
1 -2014-02-14 18:22:15.200
1 +2014-02-14 18:22:15.0

Get Connected