Re-Arranging of assets | Community
Skip to main content
October 16, 2024

Re-Arranging of assets

  • October 16, 2024
  • 2 replies
  • 665 views

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.

 

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

2 replies

kautuk_sahni
Community Manager
Community Manager
October 17, 2024

@rohan_garg @harwinder-singh @b_sravan @diksha_mishra @khamat_bn @digarg17 Curious to hear your perspectives on this question. Do you all mind sharing your thoughts?

Kautuk Sahni
Rohan_Garg
Community Advisor
Community Advisor
October 17, 2024

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 - 

 

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,

 

muthu_22Author
October 20, 2024

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.