Expand my Community achievements bar.

Re-Arranging of assets

Avatar

Level 1

Hi Team ,

 

I Have a requirement like i need to re arrange the assets in card view .The re arranging of assets which is available in list view is there a way to customize same in the card view to re-arrange the assets.

 

Screenshot 2024-10-16 114349.png 

3 Replies

Avatar

Administrator

@Rohan_Garg @Harwinder-singh @B_Sravan @diksha_mishra @khamat_bn @digarg Curious to hear your perspectives on this question. Do you all mind sharing your thoughts?



Kautuk Sahni

Avatar

Community Advisor

Hi @muthu_22,

Each view in AEM is implemented with a fixed set of requirements.
Could you clarify why the list view alone isn't sufficient for authors to toggle to reorder the elements?

The functionality for reorder in list view comes from the below JSP as the list view is implemented as a table - 

/libs/dam/gui/coral/components/admin/contentrenderer/row/common/reorder.jsp

 

<td is="coral-table-cell" style ="display:none">
    <button is="coral-button" variant="minimal" icon="dragHandle" coral-table-roworder></button>
</td>
The list view is implemented as a table and the reorder button is rendered via logic as shown below - 
Rohan_Garg_0-1729170052482.png

 

Implementing the same functionality in card view would be tricky as the card view is implemented as <coral-card> with corresponding listeners.

 

Hope this gives you some insight!

 

Thanks,

 

Avatar

Level 1

Hi @Rohan_Garg ,

The issue with sorting in the list view is that the preview option is very small and difficult to see. Additionally, the functionality could be much faster and more convenient. The ability to sort in the card view will speed up the ability to set assets up as needed much quicker.