cancel
Showing results for 
Search instead for 
Did you mean: 

Custom way of displaying a property (or association)

ipirat
Champ in-the-making
Champ in-the-making
To be able to develop a custom way to display a single property (or association), I understand I need to implement an ftl.

Is there a starting point for implementing One?

I found this: http://wiki.alfresco.com/wiki/Template_Guide and that: http://wiki.alfresco.com/wiki/FreeMarker_Template_Cookbook
Both seem to discuss templates for displaying a full document or to be explicitly executed.

What is not quite clear to me (I may have overlooked this information):

* I'd like to implement an FTL and specify it in a <field><control template="…"> configuration for a property or an association
* how is it getting called
* where to place such an FTL file in my project
* how to let alfresco know about its existence (if at all necessary)
* how to debug it


Thanks!
2 REPLIES 2

aaditvmajmudar
Confirmed Champ
Confirmed Champ
Hi,

You can start looking into OOTB available form controls ftl files under /share/WEB-INF/classes/alfresco/site-webscrtipts/org/alfresco/components/form/controls.

After creating your custom ftl file, you can place it under "shared" location that is tomcat/shared/classes/alfresco/web-extension/site-webscrtipts/org/alfresco/components/form/comtrols.

And in your share-config-custom file, you can provide your custom ftl file path like,

                - <control template="/org/alfresco/components/form/controls/custom-control.ftl">.

Hope this helps.

thanks for your reply. What would be the appropriate file in a SHARE Project?
src/main/amp/config/alfresco/web-extension/… ?

Is there any way to debug those FTL Scripts?