Last updated January 11, 2013. Created by tanoshimi on April 22, 2010.
Edited by drupalshrek, AlessMascherpa, jcisio, chipcleary. Log in to edit this page.
NOTE: A more up to date review can be found here.
There are many ways to create Question / Answer functionality using Drupal.
Presenting lists of questions/answers
If your requirement is only to present content in question/answer format then you could consider usingViews and CCK in Drupal 5/6, or using the inbuilt Fields API in Drupal 7. Create separate text fields for the question and answer elements, and attach these to the appropriate node type. Then decide how the question and answer fields should appear in different contexts (for example, in teaser view you could show only the question, with a "Click here to see the answer link", whereas the full node view shows both question and answer fields).
Alternatively, you could check out the FAQ module, which creates a new node type and comes with several pre-formatted lists to present question and answers.
Creating a question answering workflow
If you want to create a workflow whereby users can ask a question, and other users (or site administrators) can answer those questions and optionally publish the response then there are a number of modules available. These vary in their approach, complexity, and number of features, as compared in the following table:
Feature | Question | FAQ_Ask | Answers | Topic / Answers | Question/Answer |
---|
Drupal-related |
---|
|
Drupal 7.x | -dev |  |  |  |  |
Drupal 6.x |  |  |  |  |  |
Dependencies | None | FAQ module,Helpers_databasemodule | - Drupal 6: Features, Nodereference Count, Node Reference URL Widget, CCK, Strongarm, Views attach, Views, Voting API, Vote Up/Down, Chaos tool suite
- Drupal 7: Entity Views Attachment, Features, List, References, Nodereference Count, Node Reference URL Widget, Strongarm, Views
| None | CCK and CTools in D6 version. VotingAPI/Views integration. |
Documentation | Handbook | Handbook | | | Handbook |
Architecture | Questions saved in separate database table. Question/Answer pairs saved as nodes. | Questions saved as (unpublished) FAQ nodes. Question/Answer pairs saved as (published) FAQ nodes. | Questions and Answers are nodes. Attachment of answers to question node through EVA module. Extra module to select best answer and integration with user points. | | Question as node, Answers as comments, CCK field to store the selected answer. |
Looking for support? Visit the Drupal.org forums, or join #drupal-support in IRC.
评论
这应包括
我觉得这个模块也可以包含在比较:
http://drupal.org/project/question_answer