cancel
Showing results for 
Search instead for 
Did you mean: 

Display child-association properties in the properties page.

robain
Champ in-the-making
Champ in-the-making
I want to display the attributes of the child node. the default display seems to display a list of the URLs of the child nodes but I want to display certain attributes of the child nodes.

<config evaluator="aspect-name" condition="my:isAble">
   <property-sheet>
      <show-child-association name="my:myattributelist" />
   </property-sheet>
</config>

<aspects>
               
      <aspect name="my:isAble">
             <title>Is Able</title>
            <associations>
            <child-association name="my:myattributelist">
               <title>attributes</title>
               <source>
                  <mandatory>false</mandatory>
                  <many>true</many>
               </source>
               <target>
                  <class>my:attributes</class>
                  <mandatory>false</mandatory>
                  <many>true</many>
               </target>
            </child-association>
         </associations>
          </aspect>
          
   </aspects>

<type name="my:attributes">
             <title>Attributes</title>
             <parent>sys:base</parent>
            <properties>
            <property name="my:attribute1">
               <type>d:text</type>
               <mandatory>false</mandatory>
               <multiple>false</multiple>
            </property>
            <property name="my:attribute2">
               <type>d:text</type>
               <mandatory>false</mandatory>
               <multiple>false</multiple>
            </property>

         </properties>
          </type>

so now I want to display attribute1 and attribute2 for each child-association that a content with aspect "my:isAble". I understand I should be using custom generator which is available in enterprise version but do not see how I manipulate the values. i dont need to be able to edit those attributes, just display the attributes. please help.
1 REPLY 1

jbarmash
Champ in-the-making
Champ in-the-making
This question is also posted here:

http://forums.alfresco.com/viewtopic.php?f=12&t=11924
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.