Custom model with complex properties

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Active Member

Custom model with complex properties

I need to create a custom model to save something like:

<doc>
  <title>Title</title>
  <genre>Fantasy</genre>
  <authors>
    <author>
      <name>Author 1</name>
      <email>author1@email.com</email>
    </author>
    <author>
      <name>Author 2</name>
      <email>author2@email.com</email>
    </author>
  </authors>
</doc>

As you can see,  my property "author" is multiple, and contains two other properties, "name" and "email".

However, Alfresco doesn´t allow to create complex properties.

How should I model somethig like this?

2 Replies
Highlighted
Alfresco Employee

Re: Custom model with complex properties

You should use empty nodes to store every author with a peer-to-peer association with content node. Probably you have also to create some custom control/form to display the info in Share.

Software Engineer in Alfresco Search Team.
Highlighted
Customer

Re: Custom model with complex properties

Maybe every author info may be stored in a datalist for example.