cancel
Showing results for 
Search instead for 
Did you mean: 

Custom model with complex properties

antonio_sanchez
Champ on-the-rise
Champ on-the-rise

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 2

angelborroy
Community Manager Community Manager
Community Manager

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.

Hyland Developer Evangelist

cesarista
World-Class Innovator
World-Class Innovator

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