Changes for page How to change the home page destination?
Last modified by Gunter Ohrner on 2020/01/28
From version 16.3
edited by Vincent Massol
on 2017/10/06
on 2017/10/06
Change comment:
There is no comment for this version
To version 16.2
edited by Eduard Moraru
on 2016/01/05
on 2016/01/05
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
-
Objects (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki. VincentMassol1 +XWiki.enygma
- FAQCode.FAQClass[0]
-
- answer
-
... ... @@ -1,13 +1,10 @@ 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 - 5 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 6 7 7 == Workarounds for older versions == 8 - 9 9 You have several options: 10 - 11 11 * Option 1: Simply edit ##Main.WebHome## using the wiki editor or the WYSIWYG editor and replace the content by your content 12 12 * Option 2: Include the page you wish to display from the home page, e.g. have the following in ##Main.WebHome##:((( 13 13 {{code}} ... ... @@ -14,7 +14,7 @@ 14 14 {{include reference="MySpace.MyPage"/}} 15 15 {{/code}} 16 16 ))) 17 -* Option 3: [[Redirect>> snippets:Extension.Redirect]] the home page to your page, using a script, e.g. have the following in ##Main.WebHome##:(((14 +* Option 3: [[Redirect>>extensions:Extension.Redirect]] the home page to your page, using a script, e.g. have the following in ##Main.WebHome##:((( 18 18 {{code}} 19 19 {{velocity}} 20 20 $response.sendRedirect($xwiki.getURL('MySpace.MYPage')) ... ... @@ -21,7 +21,7 @@ 21 21 {{/velocity}} 22 22 {{/code}} 23 23 ))) 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:(((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:((( 25 25 {{code}} 26 26 <servlet> 27 27 <servlet-name>redirectHomeServlet</servlet-name>