Alfresco community version aspect sorting

Showing results for 
Search instead for 
Did you mean: 
Member II

Alfresco community version aspect sorting

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:





( Looks like random?? ) 

Where is the defintion , how it sorted ? becaus I want an "abc-sort" ? 

thanks for help 

2 Replies
Alfresco Employee

Re: Alfresco community version aspect sorting


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 ?




Re: Alfresco community version aspect sorting


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.