AnsweredAssumed Answered

Display child-association properties in the properties page.

Question asked by robain on Apr 10, 2008
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.

Outcomes