AnsweredAssumed Answered

Custom landing page.

Question asked by anand6105 on Jan 17, 2013
Latest reply on Jan 18, 2013 by aevans713
Hi ,

I followed the steps meintioned in Alfresco doc to create my custom landing page in alfresco share. But the change is not reflecting on Alfresco.
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.


Can anyone suggest what I am missing. I am able to add the page on Alfresco share.

Thanks
Anand.

Outcomes