cancel
Showing results for 
Search instead for 
Did you mean: 

Customize presets.xml - Alfresco 4.1.1

dmralfing
Champ in-the-making
Champ in-the-making
I´m trying to extend the presets.xml creating a file "presets.xml" in the path TOMCAT\shared\classes\alfresco\web-extension\site-data\presets.
This is the code it contains:

<presets>
  <preset id="user-dashboard">
      <components>
         <component>
            <scope>page</scope>
            <region-id>component-1-1</region-id>
            <source-id>user/${userid}/dashboard</source-id>
            <url>/components/dashlets/my-sites</url>
         </component>
      </components>
      <pages>
         <page id="user/${userid}/dashboard">
            <title>User Dashboard</title>
            <title-id>page.userDashboard.title</title-id>
            <description>Users dashboard page</description>
            <description-id>page.userDashboard.description</description-id>
            <template-instance>dashboard-2-columns-wide-right</template-instance>
            <authentication>user</authentication>
         </page>
      </pages>
   </preset>
</presets>

it doesn´t recognize my file. Also, I have read in a forum that you have to configurate some beans in the custom-slingshot-application-context.xml file, but it doesn´t work anyway.
Somebody know how to customize the presets.xml in alfresco 4.1.1?. I don´t see it in the Wiki for this version, it should be easier!
3 REPLIES 3

kaynezhang
World-Class Innovator
World-Class Innovator
you don't need to configure custom-slingshot-application-context.xml file,by default surf will load file alfresco/web-extension/site-data/presets/presets.xml under your classpath.
make sure  TOMCAT\shared\classes is in your classpath ;
make sure after you created "presets.xml" in the path TOMCAT\shared\classes\alfresco\web-extension\site-data\presets,you retarted your  share application

kaynezhang
World-Class Innovator
World-Class Innovator
you don't need to configure custom-slingshot-application-context.xml file,by default surf will load file alfresco/web-extension/site-data/presets/presets.xml under your classpath.
make sure  TOMCAT\shared\classes is in your classpath ;
make sure after you created "presets.xml" in the path TOMCAT\shared\classes\alfresco\web-extension\site-data\presets,you retarted your  share application

dmralfing
Champ in-the-making
Champ in-the-making
Ok, I don´t know why it has started to work appropiately. Thank you so much!