On this page
Configuration (Drupal 7)
Last updated on
30 April 2025
You are browsing documentation for an older version of Drupal, which is not supported any longer, and the information may not be correct. See current documentation for Contributed modules
Installation
- Create a new content type, or reuse existing one
- Add a new number/integer field for this content type at admin/structure/types/manage/NODETYPE/fields
- Select the format "Selected answer" for this field in the "Display fields" section: admin/structure/types/manage/NODETYPE/display
- Go to the Q/A settings page admin/config/question_answer and select the content type/field name above.
- That's all!
Question expiration
You can set the expiration time for each question. After this time, the reply with the most votes will be automatically selected as the answer.
- Go to the Q/A content type, create a new field "duration"
- Type: List (Integer)
- Widget: Select list
- In the configure page, enter prefined time in second, for example (unlimited, 1 day, 7 days and 30 days):
0|No expiration 86400|1 day 604800|1 week 2592000|1 month - Select the format "Remaining time" for this field in the "Display fields" section: admin/content/node-type/NODETYPE/display (D6).
- Go to the Q/A setting page, select this field.
- Install VotingAPI module and another module, for example, vote_up_down (don't forget to enable "vud on comments").
- Go to permissions page, allow anonymous to vote on comments.
Help improve this page
Page status: Not set
You can:
You can:
- Log in, click Edit, and edit this page
- Log in, click Discuss, update the Page status value, and suggest an improvement
- Log in and create a Documentation issue with your suggestion