Change the order comments inside of tickets in end-user view
답변함Is it possible to change the order in which End-users see comments for their tickets in "My activities" page.
I want to change it, so the most recent comment is on the top.
Is it also possible to change where the exact date and time is displayed on the comments rather than "2 months ago"
-
Hey Ash,
Add the given CSS to your style.css file at the bottom area.
.table.my-activities-table tbody {
display: flex;
flex-direction: column-reverse;
}
.my-activities-table.table tr {
display: flex;
}
.my-activities-table th:first-child,
.my-activities-table td:first-child {
width: 50%;
display: block;
}
.my-activities-table td:not(:first-child),
.my-activities-table.table th:not(:first-child) {
display: none;
width: 15%;
}
@media (min-width:768px){
.my-activities-table td:not(:first-child),
.my-activities-table.table th:not(:first-child) {
display: table-cell;
}
}
Screenshot for the same:
Output is:
Default order is:2nd is:
Is it also possible to change where the exact date and time is displayed on the comments rather than "2 months ago"
Currently code is: without format='long'
Default output is:-
After adding the format:- format='long', see this
Output after adding the format=long:-
Thanks
-
Hi Ifra,
Thank you! But is there any way to change the order of the comments inside the tickets for the end users? Currently this still shows the oldest comment on top
-
Hi Holly,
Which version are you using? Can you share the public URL?, actually I don't have content to test order of table rows.
-
Hi Ifra!
I appreciate the reply but unfortunately can't share the public URL. Thank you for the offer though. I'll keep on messing around with the instance!
-
I agree with Holly,
When the ticket is opened, we should show the comments ordered by the last comment, not by the first. This will be easier for the customer to interact with the ticket because the button ">>" is not sending to the last comment, they need to click on "Next" many times to add their comments.
댓글을 남기려면 로그인하세요.
5 댓글