Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Threaded comments can be useful for organizing sub-conversations within comments, but it can get out of hand quickly. A useful feature for flatcomments is to be able to specify a maximum depth of comments, per content type. So if it's the first thread, all replies to comments within that thread will be flattened. Here's an example:
Change this:
- comment 1
- comment 3
- comment 7
- comment 4
- Comment 5
- comment 3
- comment 2
- comment 6
To this:
- comment 1
- comment 3
- comment 4
- comment 5
- comment 7
- comment 2
- comment 6
Comments
Comment #1
dragonwize CreditAttribution: dragonwize commentedThis can already by done through the theme layer. The indention of comments is actually created by design, usually CSS. All you have to do is theme all comments under the first layer the same way.
Comment #2
jcisio CreditAttribution: jcisio commentedI think the OP meant differently. CSS changes the indentation, but can't change comment order.
Comment #3
dragonwize CreditAttribution: dragonwize commentedThat would be a nice option. Though I am not entirely sure it belongs in this module. I will have to think about that. Feel free to express why you think it should or should not be in the flatcomments module.
Comment #4
jcisio CreditAttribution: jcisio commentedThe purpose is to allow maximum N+1 levels of comments. With this module, N=0. However I don't see other module does that, and there is a need for N > 0.
The principe, when you reply to a comment, it check if the parent comment has a level > N, it will descend to level N and change the parent of the new-submitted comment to that comment. Let's take the example given by the OP, when we add cid7, if N=0 (current), its parent will be set to NULL, if N=1, its parent will be set to cid1, if N>=2, its parent will be kept unchanged (= cid3).
Flatcomments actually set pid=NULL to limit max level = 1, but it can do that in a more general way. Moreover, it requires just a small modification.
Comment #5
dragonwize CreditAttribution: dragonwize commentedI understand what you are asking for and agree the feature would be great.
My disagreement is that extra options to for "threaded" comment configuration is not really in the realm of a module that is named "flatcomments" and gives extra options for "flat" comment configuration.
Comment #6
jcisio CreditAttribution: jcisio commentedWhy we should implement this feature in the module?
- There is a real need: for forum-like discussion we need flat comment, ok. But for blog, we might need N-level threaded comment.
- It's easy and just a small add-on to this module
- If flatcomments doesn't support it, there will be another module does it (or clone, frankly). That module does of course all flatcomments does. => duplicate effort.
Comment #7
dragonwize CreditAttribution: dragonwize commentedPlease stop changing the status.
Comment #8
jcisio CreditAttribution: jcisio commentedYou need info. I give you you info, thus I'm expected to change the status (because it has changed, indeed). But I'm sorry if it causes a problem for you.
Comment #9
jcisio CreditAttribution: jcisio commentedI need this feature again in another project and release a new module http://drupal.org/project/tlcomment.