cancel
Showing results for 
Search instead for 
Did you mean: 

Content Type vs Aspect

lascaux
Champ on-the-rise
Champ on-the-rise
Hi,

I need some support for my needs.

I need to create a new document type to be able to manage a bunch of properties.

I've got 2 possibilities for that :
- create a new content type (what I already did)
- create a new aspect for the content type "cm:content"

Now, here are my needs :
I would like my document added to some workspace structure to be set as the previously defined content type / aspect (in order to set the properties values during the creation of a new document).
I also need my document to be versionable
and I also need to be able to make check in/out on the document.

What is the best solution to achieve this ?
- a new content type + defining the aspects for this content type ?
- a new aspect which inheritate from the others ?

How to make a rule which define that each new document added in my workspace structure will be set as the defined type (with the new properties) ?

Thanks a lot for help !

Sylvain
10 REPLIES 10

lascaux
Champ on-the-rise
Champ on-the-rise
Property names must be unique within a model.

Thanks a lot !
I am moving fast with your help 🙂

I have a latest question for this Aspect stuff :

regarding my 2 aspects (asp1 and asp2), when I move the document from one workspace to the second one, the second workspace has the following rules applied :
- call a script :
       - add aspect asp2 to the document if it has aspect asp1
       - copy the properties from asp1 to asp2
- remove aspect asp1 from the document (I do not find the script method for that)

Now, if the attr2 was empty in asp1, it is empty in asp2.
It is not a problem has other user will have to review the document before performing new action.
But I need now to ensure that this attribute will be set before the next Simple Workflow could start … How can we do this ?

I though to create a script which would be call before the start of a Simple Workflow, but the simple workflow cannot run a script … just move a document to another place …

Sylvain