01-17-2013 07:10 AM
1.Make the new page the default landing page.
Spring Surf supports the notion of a default page which is defined in the configuration for the entire web site. By default the landing page is site-index.jsp, which redirects to the authenticated user's dashboard page. The site default landing page will be rendered when a request is mapped to the Spring MVC RequestDispatcher (which by default is at /page and /p) but no page is included in the request, for example, /share/page. This is also configured as the welcome-file in the Share web.xml file.
In order to change the landing page for the application you can override the default site configuration for Alfresco Share. The site configuration used is defined in surf.xml and is set to slingshot.site.configuration by default.
a.Create a file called slingshot.site.configuration.xml
The file should contain the following code:
<configuration>
<source-id>site</source-id>
<properties>
<root-page>home-page</root-page>
</properties>
</configuration>
b.Build slingshot.site.configuration.xml into a JAR file at the location /alfresco/web-extension/site-data/configurations.
Note that the file is located on the web-extension path so that it is resolved before the Alfresco Share default.
c.Copy the JAR file to webapps/share/WEB-INF/lib.
d.Restart the Tomcat server (or other web server you are using).
e.Load the page http://localhost:8080/share, assuming you are running the server locally and using the default port.
After logging in your new landing page will be displayed.
01-17-2013 10:20 PM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.