09-25-2017 07:30 AM
Hey everyone,
Information: working with alfresco community Edition 5.2 on Windows Server
My question : I create a model with properties and aspects . How are the aspects sorted?
When I create in my test model 4 aspects ( they called x1 , x2 ,x3 , x4 ) , they are sorted like:
xxx:x4
xxx:x1
xxx:x3
xxx:x2
( Looks like random?? )
Where is the defintion , how it sorted ? becaus I want an "abc-sort" ?
thanks for help
09-26-2017 03:29 AM
Hi,
Can you please provide some details about how you create your model &/or where you're seeing the aspect listed ?
Are you using the Share Model Manager to create dynamic models or are you creating / deploying the models directly to the ACS repository ? Are you displaying the aspects in a Share view/edit form or in another dialog (eg. Manage Aspects) ? Are you accessing the model / aspects via a different API, eg. CMIS ?
Thanks,
Jan
09-26-2017 06:10 PM
Hi:
The aspects are shown in the document properties view form, in the order that you specify or configure in Alfresco Share forms. If not configured these XML forms properly, it may seem that they appear ramdomly. If you are using Model Manager instead, you can sort and edit these forms with Layout designer, viewing their final form.
If you refer to the sorting order in Manage Aspect dialog as Jan mentioned, you should see the order listed in the visible aspects of the DocumentLibrary section in share-config-custom.xml file. And after these visible ones, they should appear the aspects defined in Model Manager. But for those aspects, I would say that the order I see in Manage Aspect dialog is the creation order in the model (although in Model Manager page, the aspects are sorted by aspect name). Surely, this order may be replaced in share-config-custom.xml config or even exporting/changing order/importing the model from Model Manager.
Regards.
--C.
Explore our Alfresco products with the links below. Use labels to filter content by product module.