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
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
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.
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.