Expand my Community achievements bar.

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

Mark Solution

This conversation has been locked due to inactivity. Please create a new post.

SOLVED

Can we sort replies in forum component in desc order

Avatar

Level 5

Hi,

I am going through the community forum component. Default setting for replies on forum is; ascending order(old reply will be on top and new reply will get append at the bottom). Can change the appearance of these replies? instead of ascending order can we show replies in descending order? I mean latest reply get append at the top and most old reply appear on the bottom.Please suggest me how can i achieve this?

Thank You in advance!

1 Accepted Solution

Avatar

Correct answer by
Level 1

Hi Rashid,

You can overlay the list-item.hbs present at /libs/social/forum/components/hbs/topic/list-item.hbs .

In this you can update the friendly url present at 

<a href="{{friendlyUrl}}"><h3 class="scf-topic-title">{{subject}}</h3></a>

to 

<a href="{{friendlyUrl}}?sortby=added"><h3 class="scf-topic-title">{{subject}}</h3></a>

i.e. appending the sort fields in request params to friendlyUrl.

View solution in original post

2 Replies

Avatar

Correct answer by
Level 1

Hi Rashid,

You can overlay the list-item.hbs present at /libs/social/forum/components/hbs/topic/list-item.hbs .

In this you can update the friendly url present at 

<a href="{{friendlyUrl}}"><h3 class="scf-topic-title">{{subject}}</h3></a>

to 

<a href="{{friendlyUrl}}?sortby=added"><h3 class="scf-topic-title">{{subject}}</h3></a>

i.e. appending the sort fields in request params to friendlyUrl.

Avatar

Level 1

That was kind of a hack, you should follow this documentation

https://docs.adobe.com/docs/en/aem/6-2/author/communities/comments.html