Create a custom ftl in Alfresco SDK

cancel
Showing results for 
Search instead for 
Did you mean: 
cfreitez
Member II

Create a custom ftl in Alfresco SDK

Jump to solution

Hello everybody.

 

I want to create a custom ftl very parecido a selectone.ftl in Alfresco SDK all in one  4.1.  Where can I create this file? and what is the path that I should add in the template tag in share-config-custom?

 

Currently, I managed to solve this situation by creating a selectTD.ftl file and with the Dockerfile I copy it in the corresponding path

 

Spoiler
COPY ftl/*.ftl     $TOMCAT_DIR/webapps/share/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/components/form/controls/

 

 

My hare-config-custom.xml

 

<!-- View and Edit forms for rrhh:doc -->
    <config evaluator="node-type" condition="rrhh:doc">
        <forms>
            <!-- Default form configuration for the cm:content type -->
            <!-- Ver propiedades de documento dentro de visualizador -->
            <form>
                <field-visibility>
                    <show id="cm:name"/>
                    <show id="rrhh:rut"/>
                    <show id="rrhh:nombre"/>
                    <show id="rrhh:apellido"/>
                    <show id="rrhh:tipoDocumento"/>
                    <show id="rrhh:fecha"/>
                </field-visibility>
                <appearance>
                    
                </appearance>
            </form>

            <!-- Document Library pop-up Edit Metadata form -->
            <!-- Editar propiedades fuera de visualizador -->
            <form id="doclib-simple-metadata">
                <field-visibility>
                    <show id="cm:name"/>
                    <show id="rrhh:rut"/>
                    <show id="rrhh:nombre"/>
                    <show id="rrhh:apellido"/>
                    <show id="rrhh:tipoDocumento"/>
                    <show id="rrhh:fecha"/>
                </field-visibility>
                <appearance>
                    <field id="rrhh:tipoDocumento">
                        <control template="/org/alfresco/components/form/controls/selectTD.ftl"/>
                    </field>
                </appearance>
            </form>
        </forms>
    </config>

 

selectTD.ftl is the custom file that I want to create, but I don't know the path where it is created in Alfresco SDK all in one 4.1

 

Bye

 

1 Solution

Accepted Solutions
angelborroy
Alfresco Employee

Re: Create a custom ftl in Alfresco SDK

Jump to solution
1 Reply
angelborroy
Alfresco Employee

Re: Create a custom ftl in Alfresco SDK

Jump to solution

Check documentation available in

https://docs.alfresco.com/content-services/6.1/develop/share-ext-points/form-controls/

Hyland Developer Evangelist