cancel
Showing results for 
Search instead for 
Did you mean: 

[share]How to change initialize page after login

junminya
Champ on-the-rise
Champ on-the-rise
I'm using Alfresco Community edition 4.2.

Installing it, Alfresco share site displays dashboard pages, after user login.

I wanna that initialize page to be repository page.

Please tell me how to config.
3 REPLIES 3

kaynezhang
World-Class Innovator
World-Class Innovator
alfresco share is builded on spring surf framework,so
1.root page is configured in /WEB-INF/classes/alfresco/site-data/configurations/slingshot.site.configuration.xml,It looks like
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
   <name>Slingshot Project</name>
   <description>Slingshot Project</description>
   <source-id>site</source-id>
   <properties>
      <theme>lightTheme</theme>
      <root-page>site-index</root-page>       <!– you can customize initialize page here–>
   </properties>
</configuration>
2.you'll see root page is "site-index",it's definition locates in  /WEB-INF/classes/alfresco\site-data\pages\site-index.xml,open it you 'll see
<?xml version='1.0' encoding='UTF-8'?>
<page>
   <title>Welcome</title>
   <title-id>page.siteIndex.title</title-id>
   <description>Landing page for all users - will forward to user site dashboard</description>
   <description-id>page.siteIndex.description</description-id>
   <template-instance>site-index</template-instance>
   <authentication>user</authentication>
</page>
3.that means it use a template-instance called site-index,this template-instance's definition locates in  /WEB-INF/classes/alfresco\site-data\template-instances\site-index.xml,open it you 'll see
<?xml version='1.0' encoding='UTF-8'?>
<template-instance>
   <template-type>site-index</template-type>
</template-instance>
4.that means it use a template type called site-index,this template type's definition locates in  /WEB-INF/classes/alfresco\site-data\template-types\site-index.xml,open it you 'll see
<?xml version="1.0" encoding="UTF-8"?>
<template-type>
   <title>Site index landing page template type</title>
   <description>Site index landing page JSP Template Type</description>

   <!– Define the rendering processors for this template type –>   
   <processor mode="view">
      <id>jsp</id>
      <jsp-path>/site-index.jsp</jsp-path>
   </processor>

</template-type>
5.that is a jsp file called "site-index.jsp",open it you 'll see sourcode that redirect you to your customize dashboard or default dashboard.

<!– you can also customize initialize page insite-index.jsp –>


I have completed customized initial page what i want.
And I understand why we need modify site-index.jsp, your answer is very usefull.
(and i feel i have to study about architecture of spring surf framework , because i dont know it.)

thank you, kaynezhang.

junminya
Champ on-the-rise
Champ on-the-rise
.