내 커뮤니티 업적 표시줄을 확대합니다.

Submissions are now open for the 2026 Adobe Experience Maker Awards.

Mark Solution

활동이 없어 이 대화는 잠겼습니다. 새 게시물을 작성해 주세요.

해결됨

List Order By published or lastReplicated date

Avatar

Level 3

I have a component which extends from List component. Currently we only have option to Order By title or Last Modified date but we want the list to be Order by published or lastReplicated date. What will be best approach to do this? I was thinking to pull the list in component.js file and create a method to sort the list but wanted to see if AEM offer an easier solution to solve this issue and if any see issue with this solution. 

1 채택된 해결책 개

Avatar

정확한 답변 작성자:
Community Advisor

@snowwhite92 - If it's already implemented you can use it, otherwise I would go with server side implementation.


Santosh Sai

AEM BlogsLinkedIn


원본 게시물의 솔루션 보기

3 답변 개

Avatar

Community Advisor

Hi @snowwhite92 ,

If your custom component have sling model/services implemented you may add the logic in existing services which will be responsible to fetch published or lastReplicated date. 

The best approach I can consider is to delegate "com.adobe.cq.wcm.core.components.models.List" and have business logic to it.

Hope that helps!

Regards,

Santosh


Santosh Sai

AEM BlogsLinkedIn


Avatar

Level 3

Thank you @SantoshSai We have javascript file in component with use-api. I guess we can use that to write logic. 

Avatar

정확한 답변 작성자:
Community Advisor

@snowwhite92 - If it's already implemented you can use it, otherwise I would go with server side implementation.


Santosh Sai

AEM BlogsLinkedIn