AnsweredAssumed Answered

How to get 2 columns in the Advanced Search form in Alfresco 5 community?

Question asked by bwilliams on Mar 21, 2017
Latest reply on Apr 20, 2017 by neilecker

I am trying to have my search options listed in two or three columns in the advanced search menu with custom fields. The following does work for a single column layout. The two commented lines are what I believe should modify the form to be two columns after following the directions here: Providing a custom form template | Alfresco Documentation 

When I restart the server and open the advanced search I only have the keyword search field.

I am new to Alfresco I pieced all off this together from other posts. Please let me know what I am doing wrong.

 

<config replace='true' evaluator='string-compare' condition='AdvancedSearch'>
<advanced-search>
<forms>
<form labelId='search.form.label.cm_content' descriptionId='search.form.desc.cm_content'>cm:content</form>
<form labelId='search.form.label.cm_folder' descriptionId='search.form.desc.cm_folder'>cm:folder</form>
</forms>
</advanced-search>
</config>

<config evaluator='model-type' condition='cm:content'>
<forms>
<form id='doclib-common'>

<!-- <edit-form template='/2-column-edit-form.ftl' /> -->
<field-visibility>
<show id='cm:name' />
<show id='cm:title' force='true' />
<show id='cm:description' force='true' />
<show id='Proposal:TypeOfWork' force='true' />
<show id='Proposal:Client' force='true' />
<show id='Proposal:DateOfProposal' force='true' />
<show id='Proposal:ProposalAmount' force='true' />
<show id='Proposal:SkillsRequired' force='true' />
<show id='Proposal:ContractType' force='true' />
<show id='Proposal:ProposedStartDate' force='true' />
<show id='Proposal:PropsedEndDate' force='true' />
</field-visibility>
<create-form template='../documentlibrary/forms/doclib-common.ftl' />
<appearance>
<field id='cm:title'>
<control template='/org/alfresco/components/form/controls/textfield.ftl' />
</field>
</appearance>
</form>
<form id='search'>
<!-- <edit-form template='/2-column-edit-form.ftl' /> -->
<field-visibility>
<show id='cm:name' />
<show id='cm:title' force='true' />
<show id='cm:description' force='true' />
<show id='Proposal:TypeOfWork' force='true' />
<show id='Proposal:Client' force='true' />
<show id='Proposal:DateOfProposal' force='true' />

<show id='Proposal:ProposalAmount' force='true' />
<show id='Proposal:SkillsRequired' force='true' />
<show id='Proposal:ContractType' force='true' />
<show id='Proposal:ProposedStartDate' force='true' />
<show id='Proposal:PropsedEndDate' force='true' />
</field-visibility>
<appearance>
<field id='cm:title'>
<control template='/org/alfresco/components/form/controls/textfield.ftl' />
</field>
<field id='Proposal:TypeOfWork'>
<control template='/org/alfresco/components/form/controls/selectmany.ftl' />
</field>
<field id='Proposal:Client'>
<control template='/org/alfresco/components/form/controls/textfield.ftl' />
</field>
<field id='Proposal:DateOfProposal'>
<control template='/org/alfresco/components/form/controls/daterange.ftl' />
</field>
<field id='Proposal:ProposalAmount'>
<control template='/org/alfresco/components/form/controls/textfield.ftl' />
</field>
<field id='Proposal:SkillsRequired'>
<control template='/org/alfresco/components/form/controls/selectmany.ftl' />
</field>
<field id='Proposal:ContractType'>
<control template='/org/alfresco/components/form/controls/selectmany.ftl' />
</field>
<field id='Proposal:ProposedStartDate'>
<control template='/org/alfresco/components/form/controls/daterange.ftl' />
</field>
<field id='Proposal:ProposedEndDate'>
<control template='/org/alfresco/components/form/controls/daterange.ftl' />
</field>
</appearance>
</form>
</forms>
</config>

Outcomes