cancel
Showing results for 
Search instead for 
Did you mean: 

Custom landing page.

anand6105
Champ in-the-making
Champ in-the-making
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.
1 REPLY 1

aevans713
Champ in-the-making
Champ in-the-making
Hi,

Could you post your log file, it may offer clues as to what happens when you follow these steps.