How to order assets in an Orderable folder in AEM 6.5.7?

Avatar

Avatar

Deenamo

Avatar

Deenamo

Deenamo

21-01-2021

I have a custom component that relies on JCR order for displaying assets (specifically, Content Fragments) in a particular order. The order should be customizable by Authors.

In AEM 6.5.6 and prior, the assets could be ordered in the List View by drag and dropping a handle at the right hand side of the list – as long as the parent folder was set to "Orderable" (i.e. had a "sling:OrderedFolder" type in JCR).

However, after upgrading to AEM 6.5.7 (Service Pack 7) the handles are no longer visible.

They appear to be hidden via a CSS class, possibly related to the introduction of the sorting functionality in the Card View and Column View.

I am wondering, is this a defect in AEM 6.5.7 or is the ordering functionality gone for good?

Is there any alternative way for Authors to order Assets?

aem-6.5.6-dam-list-view.png

aem-6.5.7-dam-list-view.png

AEM 6.5.7 Assets DAM
View Entire Topic

Avatar

Avatar

davidjgonzalezzzz

Avatar

davidjgonzalezzzz

davidjgonzalezzzz

19-02-2021

Hi, Unfortunately, this looks like a regression. Please log an issue with Adobe Support so AEM Engineering team can resolve.

 

You could look at injecting some CSS that resolves this issue in the interim.

 

1. Make a new cq:ClientLibraryFolder under /apps to hold your temp fix. Assign this ClientLibrary the following category: cq.listview.coral.columns.personalization

2. Add a new CSS file (ex. fix.css) to this folder with the CSS rule:

.coral-Table-wrapper.is-sorted .coral-Table-row button[icon="dragHandle"] { visibility: visible !important; }

3. Add a css.txt to this folder that lists your CSS file name.

 

2021-02-19 at 1.47 PM.png