Hi, I'm trying to set up my own space hierarchy. for example: Client contains Orders . Order contains items. I want to avoid adding something else in this structure, trough the WI or through the API. What are the solutions? Can I create new child-associations and remove/override the cm:contains? Should I code some integrity rules? Where? Thanks. Gilles
Thanks for responding, but my goal is to keep the folder type structure. I want to avoid having a cm:folder being created inside my my:client space. My my:client spaces must only contains myrder sub-spaces, and my myrder spaces must only contains my:item types. Any clue?
You might try defining your custom types my:client, myrder, and my:item to extend the cm:folder type, and override the cm:contains child-relationship in each, so that the target only allows the appropriate type. For example, the target type for cm:contains in my:client would be set to cmrder, and the target type for cm:contains in myrder would be set to my:item.
What you are trying to do is a lot like the Forum content model in Alfresco. Open up your alfresco.war and look at the forumModel.xml, web-client-config-wizards.xml and web-client-config-forum-actions.xml. These might help.