Custom model with complex properties

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2017 02:55 AM
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?
- Labels:
-
Alfresco Content Services
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2017 03:31 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-29-2017 06:10 AM
Maybe every author info may be stored in a datalist for example.
