cancel
Showing results for 
Search instead for 
Did you mean: 

Displaying associations in Edit Metadata form

ashokharnal
Champ in-the-making
Champ in-the-making
Is it possible to display in Edit Metadata form in Alfresco Share, a search box
to pick up associations for a document as defined in the content model just as in Alfresco Explorer?
For Alfresco Explorer, in web-client-config-*-custom.xml the following entry
in property-sheet does the job.

<show-association name="kb:related"/> 

What is to be done in Alfresco Share in share-config-custom.xml file?

I shall be grateful for help.
3 REPLIES 3

dgenard
Champ on-the-rise
Champ on-the-rise
Have you tried something like this in share-custom-config.xml ?

                 <field id="custom:factureProjet" label-id="customModel.aspect.facture.projet" set="factureSet">
                    <control template="/org/alfresco/components/form/controls/association.ftl">
                     <control-param name="displayMode">items</control-param>
                     <control-param name="showTargetLink">true</control-param>
                     <control-param name="compactMode">true</control-param>
                  </control>
               </field>
Reference documentation available on http://wiki.alfresco.com/wiki/Forms
Denis

ashokharnal
Champ in-the-making
Champ in-the-making
Many thanks  for your quick help. The suggested code did
the job.

alarocca
Champ in-the-making
Champ in-the-making
I would like to show associations as displayMode=items does (picture below), but just an item for row.

I gave a look to association.ftl and picker.inc.ftl but I don't understand how this is rendered. Any hint? Thanks.

[img]http://i54.tinypic.com/2zj9cp1.png[/img]