By jdeg on
Hi,
I would like to know how to change the order of the comments. For example, if I need to show the comments of some rol at the top of the comments, not by date, similar to Yahoo Answers.
I think I have to override the sql comment_render in template.php but I'm not sure how to do it.
Any comment, feedback or similar solutions would be great. Thanks!
Comments
Maybe you could hide the
Maybe you could hide the default comments and create a view of comments sorted the way you need and attach it to the nodes.
Thanks, actually is good
Thanks, actually is good idea. But in that case how can I order a view by role?
table or multiple views
well, if I were you I'd go by one of the following;
- add the user role field (optionally hide it), create a table layout view, use the user role as grouping field.
- create a view with different content panes or blocks per role. This way you could also tweak the views according to user role importance and drag and drop them in the order you want through panels.