cancel
Showing results for 
Search instead for 
Did you mean: 

Where in classpath can presentation templates be placed?

iblanco
Confirmed Champ
Confirmed Champ
I know that I can place my custom presentation templates in the repository in Data Dictionary/Presentation Templates, but I would prefer putting it in the classpath. As far as the Alfresco wiki is concerned this is supposed to be possible, but it doesn't say where in the classpath I should put the templates.

I've tried putting them in <tomcat>/shared/classes/alfresco/extension/templates but so far no luck. Any idea ?
4 REPLIES 4

ssaravanan
Champ in-the-making
Champ in-the-making
The following folders are listed in the sequence in which Alfresco searches for Web Script implementation files:
repository folder: /Company Home/Data Dictionary/Web Scripts Extensions
repository folder: /Company Home/Data Dictionary/Web Scripts
class path folder: /alfresco/extension/templates/webscripts
class path folder: /alfresco/templates/webscripts
Within any of these folders, you can use subfolders to organize web scripts.

iblanco
Confirmed Champ
Confirmed Champ
Thank you ssaravanan but this is for web-scripts (desc.xml .js and .ftl) framework, not for "Presentation Templates".

The wiki says that templates "can be stored either on the ClassPath or in a Repository" but probably it refers to templates in general and not to the "Presentatin Templates". It seems like probably "Presentation Templates" can't be stored outside the repository, strange.

ssaravanan
Champ in-the-making
Champ in-the-making
I haven't tried though…. I have tried webscripts, it works. interesting….

huima
Champ in-the-making
Champ in-the-making
I could also use this information, if anyone has it.