cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamically add content type/properties programmatically

deepacp
Champ in-the-making
Champ in-the-making
Hi,

I am looking at dynamically adding a content type as well as its properties based on user input. I understand it is possible to generate a custom model xml and set the property "cm:modelActive" to true. I was exploring if this can be done programmatically in Java.

Any help in this regard would be great.

Thanks
Deepa
2 REPLIES 2

mrogers
Star Contributor
Star Contributor
Yes you can create a dynamic model via code.    I'm sure you will find some of the unit tests do that.

deepacp
Champ in-the-making
Champ in-the-making
Thanks a lot! It will be great if you can provide me some pointers to this.