cancel
Showing results for 
Search instead for 
Did you mean: 

Customize Packageitem

arunullas
Champ in-the-making
Champ in-the-making
Hello,
I am new to Alfresco using lastest community version.I am developing a workflow for the approval/rejection of selected documents.
Now the requirement has changed to restrict the number of documents selected to one.
Is it possible to customize the "packageitems", allowing only one document to select at a time?
Please help/suggest a solution.
Thank you
Arun
2 REPLIES 2

vdewillem
Champ in-the-making
Champ in-the-making
the packageItems.ftl control uses a picker which has a "multipleSelectMode" option, I guess if you set that to false, you can only select one file

arunullas
Champ in-the-making
Champ in-the-making
Thanks for your support. I have tried supplying the value by overiding the packageitems in <forms> —> <default-controls> as below.
<type name="associationSmiley TongueackageItems" template="/org/alfresco/components/form/controls/workflow/packageitems.ftl" >
       <control-param name="rootNode">{siteshome}</control-param>
       <control-param name="endpointMany">false</control-param>
</type>