Come together with the global Drupal community in Rotterdam, 28 Sept – 1 Oct 2026. Sessions, contribution, connection, and Early Bird savings until 8 June.
Good question! Right now, it uses Node Comments to facilitate richer editing and open wiki style public editing of both questions and answers.
Node Comments allow you to use *regular* comments on Node Comments, so Answers would be able to have comments, but Questions wouldn't be able to have both "answers" and "comments" at the same time. The best option (that I can think of) is to replace Node COmments with a completely alternate system that doesn't rely on Node Comments. Originally, my plan was to write a module named 'q-and-a' or something similar that created 'question' and 'answer' content types, managed a relationship between them, *and* allowed comments on both.
That could easily become a UX nightmare without the very light AJAXy interface for posting inline comments, though.
Any thoughts? I'm very interested in ideas around this...
Basically, have a question and answer content types. Both with comments enabled and only displaying as non-nested and collapsed. On the answers put a nodereference to the question and use noderefernce_url to automate that link. Then, us views to display one question with all it's answers. Views could facilitate displaying them based on ranked order.
On that post I wrote a custom snippet to redirect the viewing of the answer node back to where the question is. I've been told you can do this with the rules module as well.
In the latest round of updates to the as_supported_modules, and the new theme http://drupal.org/project/as_theme I have created support for inline commments.
Essentially I had to create a custom ajax flow outside the normal drupal flow. Not sure if there is a better way.
Comments
Comment #1
eaton commentedGood question! Right now, it uses Node Comments to facilitate richer editing and open wiki style public editing of both questions and answers.
Node Comments allow you to use *regular* comments on Node Comments, so Answers would be able to have comments, but Questions wouldn't be able to have both "answers" and "comments" at the same time. The best option (that I can think of) is to replace Node COmments with a completely alternate system that doesn't rely on Node Comments. Originally, my plan was to write a module named 'q-and-a' or something similar that created 'question' and 'answer' content types, managed a relationship between them, *and* allowed comments on both.
That could easily become a UX nightmare without the very light AJAXy interface for posting inline comments, though.
Any thoughts? I'm very interested in ideas around this...
Comment #2
mfer commentedI wrote a blog series describing how to do this. The relevant post to this question is, i think, at http://engineeredweb.com/blog/09/11/building-stack-overflow-clone-drupal...
Basically, have a question and answer content types. Both with comments enabled and only displaying as non-nested and collapsed. On the answers put a nodereference to the question and use noderefernce_url to automate that link. Then, us views to display one question with all it's answers. Views could facilitate displaying them based on ranked order.
On that post I wrote a custom snippet to redirect the viewing of the answer node back to where the question is. I've been told you can do this with the rules module as well.
Comment #3
voidfiles commentedIn the latest round of updates to the as_supported_modules, and the new theme http://drupal.org/project/as_theme I have created support for inline commments.
Essentially I had to create a custom ajax flow outside the normal drupal flow. Not sure if there is a better way.
Comment #4
voidfiles commented