03-08-2019 10:32 AM
Is it possible to create aspects without creating a custom content model ?
03-08-2019 09:01 PM
Hi Riadh Azzouz
You need to create your model where you must define your custom aspects, types, constraints,...
03-09-2019 10:04 AM
Hi
What I mean is, do I need to create the tag <types> and put under it a custom content ?
Or I can create aspects without creating a <type>. ?
Thanks.
03-09-2019 11:38 AM
Types and aspects are diferents elements in Alfresco world. If you want to create custom aspects, in you custom model you will have to declare you custom aspect into <aspects></aspects> tags. It isn’t necessary to create any <type> tag for creating aspects.
03-10-2019 09:14 AM
Thanks
03-09-2019 10:19 PM
Hi,
You can directly create aspect without type.
Aspect and Type both are different thing.
Managing custom types, aspects, and properties | Alfresco Documentation
You can create aspect and type 2 ways.
1)Using model manager - Content modeling with Model Manager | Alfresco Documentation
2)Create xxx.xml file - Content Model Tutorials | Alfresco Documentation
Thanks,
Sanjay
03-10-2019 09:16 AM
Hi,
Are there any examples about how to access these aspects in java ?
Thanks.
03-12-2019 01:07 AM
Hi,
You can get aspect property in java using nodeService.
Ex.
nodeService.hasAspect(nodeRef, model.aspect);
nodeService.getProperties(nodeRef);
Explore our Alfresco products with the links below. Use labels to filter content by product module.