cancel
Showing results for 
Search instead for 
Did you mean: 

Create a custom ftl in Alfresco SDK

cfreitez
Champ in-the-making
Champ in-the-making

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 ACCEPTED ANSWER

angelborroy
Community Manager Community Manager
Community Manager
1 REPLY 1

angelborroy
Community Manager Community Manager
Community Manager

Check documentation available in

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

Hyland Developer Evangelist