AnsweredAssumed Answered

Show association in both documents

Question asked by gcoleman on May 16, 2007
Latest reply on May 21, 2007 by gavinc
I defined an association between two documents. I want to see this association in the web-client for both documents.

To clarify;
   I define an association called usedBy.
   I edit the attributes of document1 in the web client to show that document1 is usedBy document2.
   If I view the attributes of document2 I want to see that document2 uses document1.

Is this possible?
It seems I need something like
<show-association>
but that works in reverse.

from aimsModel.xml:

    
<types>
      <type name="idb:aims">
         <title>AIMS Image</title>
         <parent>cm:content</parent>
            <properties>
                <property name="idb:depth">
                    <type>d:text</type>
                </property>
      </properties>

      <associations>

         <association name="idb:usedby">
            <source>
               <mandatory>false</mandatory>
               <many>false</many>
            </source>
                      <target>
                        <class>idb:aims</class>
                        <mandatory>false</mandatory>
                        <many>true</many>
                     </target>
               </association> 

      </associations>
         

   </type>

   </types>

from web-client-custom-config.xml:


    <config evaluator="node-type" condition="idb:aims">
        <property-sheet>
            <show-property name="idb:depth" />
       <show-association name="idb:usedby"/>
     </property-sheet>
    </config>

Outcomes