AnsweredAssumed Answered

Content type with multiple d:content properties

Question asked by aspa on Mar 2, 2009
Latest reply on Feb 8, 2011 by jamen
Hi,

I'm trying to define a content type that would allow multiple items of d:content to be attached.
I created a custom type based on cm:content with the following definition

    <type name="my:content">
      <parent>cm:cmobject</parent>
      <properties>
        <property name="my:content">
          <type>d:content</type>
          <multiple>true</multiple>
        </property>
      </properties>
    </type>
but model validation fails if I set multiple=true.

It seems that Alfresco doesn't allow properties of this type to be multivalued.
I would need to attach multiple files to a content item.

What would be the best way to achieve this?
Should I model the compound content type by extending cm:content and using association?
Or extend cm:folder and use containment?

Outcomes