cancel
Showing results for 
Search instead for 
Did you mean: 

forms, association.ftl & displayMode = list

boneill
Star Contributor
Star Contributor
Hi Guys,

I am trying to figure out how the display for the assoication control is rendered when the displayMode is set to "list".  The config below is an example config for the association.  With this config I get a list of items and for each item it shows a link to the item, a description and modified date for the item.  What I want to do is change the display to change what fields are displayed so it includes properties from the target item.  So I need to track down how items in the list are displayed. 

eg:

    <field id="vers:documentAgentAssoc" label-id="seedim.documentAgentAssoc" set="seed-document-properties" >
               <control>
                     <control-param name="showTargetLink">true</control-param>
                     <control-param name="displayMode">list</control-param>
                     <control-param name="selectActionLabel">Add an Agent</control-param>
                     <control-param name="forceEditable">true</control-param>
                     <control-param name="startLocation">/app:company_home/cm:VERS/cm:Agents</control-param>
                     <control-param name="allowNavigationToContentChildren">true</control-param>
                  </control>
            </field>


So far I have looked at the association.ftl template and I cannot tell from that.  I assume that the list must be being built in javascript somewhere as the ftl does not build it but merely includes an element that must be being replaced. Can anyone explain to me how the list items are being rendered.

Regards

Brian
1 REPLY 1

lementree
Champ on-the-rise
Champ on-the-rise
Hi,

This rendition showing the name as link and description,modified date comes from <strong>object-finder.js</strong>. If you look at that file you will get some idea.