cancel
Showing results for 
Search instead for 
Did you mean: 

4.0.C How to Custome Add Component Page in Share

student
Champ in-the-making
Champ in-the-making
I'm follow this page http://blogs.alfresco.com/wp/ddraper/2011/11/01/advanced-share-customization-part-1/,
My Problem is Completed Page:http://localhost:8080/share/page/home Redirect site-index.jsp.
I'm use 4.0.C Code.


source code:

1. Page definition file path:config/alfresco/site-data/pages/home.xml

<?xml version='1.0' encoding='UTF-8'?>
<page>
   <template-instance>home</template-instance>
   <authentication>user</authentication>
</page>


2.Template-Instance definition file path:config/alfresco/site-data/template-instance/home.xml

<?xml version='1.0' encoding='UTF-8'?>
<template-instance>
   <template-type>org/alfresco/home</template-type>
</template-instance>

3.FreeMarker template file path:config/alfresco/site-webscripts/components/home/home.ftl

<#include "/org/alfresco/include/alfresco-template.ftl" />
<html>
   <head>
      <title>Blog Application</title>
   </head>
   <body>
      Welcome To Extreme Share Customization!
   </body>
</html>

Please tell me what the problem? Thanks
5 REPLIES 5

mikeh
Star Contributor
Star Contributor
This:
3.FreeMarker template file path:config/alfresco/site-webscripts/components/home/home.ftl
Should be this:
3.FreeMarker template file path:config/alfresco/templates/org/alfresco/home.ftl
Thanks,
Mike

mikeh
Star Contributor
Star Contributor

student
Champ in-the-making
Champ in-the-making
Changed Path to path:config/alfresco/templates/org/alfresco/home.ftl.
But the status  is still the same, redirect site-index.jsp

mikeh
Star Contributor
Star Contributor
Could you give some more detail about exactly how you're deploying these files please?

Also, did you see the linked post?

Thanks,
Mike

student
Champ in-the-making
Champ in-the-making
Dear  MikeH,

        My problem has been solved. FreeMarker template file path is a problem.
        The most important thing is the problem the named.
        Use page name home, redirect site-index.jsp.
        Use page name home-page, no problem.
     
        Thanks for your help.