AnsweredAssumed Answered

customize root page

Question asked by kaynezhang on Feb 27, 2015
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 –>

Outcomes