Per-thread/topic sorting
aharown07 - April 23, 2009 - 19:19
| Project: | Comment mover |
| Version: | 6.x-1.x-dev |
| Component: | Miscellaneous |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
I opened a feature request for Drupal 7 comment module on this (http://drupal.org/node/443140) but maybe it makes more sense here, I'm not sure.
How hard would it be to build a companion module, call it "comment sort" that basically causes comments in forum topics to sort by a number other than CID, and exposes that number so the Comment Mover (or other modules) can more easily control where "moved" comments show up in their destination threads.
It might eventually even allow cool things like drag and drop reordering of comments in threads.
Am I close the realm of reality here?

#1
Forgot one thing... The advantage is that it would make CID irrelevant in assigning grafted comments... the module would just look at the sort number in the destination thread and assign sort numbers to the grafting-in comments accordingly.
#2
A work around for this is actually in my plan for 2.x. But first I have to make a feature addition to flatcomments to make it usable.
But it is more of a hack, I have a few tweeks, that if I can get them working perfectly, for flatcomments it won't be as much of workaround but a proper feature.
Basically though the thread column for comments gives us a specific order weight, however, it is only used when displaying threaded and well it displays threaded. What I plan to do is make flatcomments better, hopefully, to handle more comment situations then add a new display style that will be labeled as something like "Flat list with specific order". That option will be the same as threaded to Drupal internals but will use flatcomments to ensure that comments are always flat by making replies to the node.
You could mimic that functionality now theme wise by using threaded mode but not theming your comments in a threaded manner. However, that would not help comment mover because they would still be replies you could not see as is when you display flat.
#3
I've finished the feature I needed in flatcomments for this. Now I can move forward with the work around for sorting. This would still be much better if core implemented a order column though.
#4
Glad to hear it! How does one go about lobbying for something in D7 core? ... or is it too late for D7?
#5
D7 code freeze is September 1st. We would need to code it and get in reviewed substantially by several people to get it in.