Customers - My Activities -> Turn Page Around.
I was searching for a way to change "My Activities"-page, so the comment is on top of my template, and the messages where showing with the newest one start from the top.
If anyone should have the same problem, i solved it by changing the HTML template for the "My Activities" by moving around the two areas. In my template i had to give some margin in the CSS too. For reversing the order of the list, i implemented the following JQuery functionality:
$('ul.comment-list').append(function () {
return $(this).children().get().reverse()
});
-
Hey Michael! Thanks so much for sharing!
-
Nice tip! Thanks, Michael. It'd be super great if you could add a screenshot so other folks can see how it looks! thanks again.
-
Michael, I love how simple this code is but how do you handle pagination?
-
Hi Brad Littler,
With the template we are using at the Customer Portal here at Kapacity, we do not using pagination, so we do not have those problems.
Which template do you use? - if you like, you are welcome to post some more information about your problem. :-)
- Michael
Please sign in to leave a comment.
4 Comments