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!
Solved! Go to Solution.
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.
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.
That was kind of a hack, you should follow this documentation
https://docs.adobe.com/docs/en/aem/6-2/author/communities/comments.html
Views
Replies
Total Likes
Views
Likes
Replies