In the old Alfresco Explorer interface it is possible to specify a path in the advanced search screen (Look in location) to only find files located in a specific folder or its subfolders. Is it possible to add a similar path field to the advanced search form in Share?I tried using the confguration below but it generates an error:
<config evaluator="model-type" condition="cm:content">
<forms>
<form id="search">
<field-visibility>
<!– … (other fields here) –>
<show id="path"/>
</field-visibility>
<appearance>
<!– … (other fields here) –>
<field id="path" label="Path">
<control template="/org/alfresco/components/form/controls/association.ftl" />
</field>
</appearance>
</form>
</forms>
</config>
This is the error I see in the log:
ERROR [freemarker.runtime] [http-8080-36] Template processing error: "Expression field.endpointType is undefined on line 22, column 20 in org/alfresco/components/form/controls/association.ftl."
Expression field.endpointType is undefined on line 22, column 20 in org/alfresco/components/form/controls/association.ftl.
The problematic instruction:
———-
==> ${field.endpointType} [on line 22, column 18 in org/alfresco/components/form/controls/association.ftl]
in include "${field.control.template}" [on line 90, column 7 in org/alfresco/components/form/form.lib.ftl]
in user-directive renderField [on line 121, column 13 in org/alfresco/components/form/form.lib.ftl]
in user-directive formLib.renderSet [on line 23, column 16 in org/alfresco/components/form/form.get.html.ftl]
in user-directive formLib.renderFormContainer [on line 20, column 7 in org/alfresco/components/form/form.get.html.ftl]
———-