Experimental project

This is a sandbox project, which contains experimental code for developer use only.

-- SUMMARY --

Creates a questions and answers area similar to StackOverflow and Yahoo Answers.

Admins Create Sections, which can then have different Question and Answers. Both
Questions and Answers are fieldable allowing the admin to specify which fields.

e.g. - Admin creates a two sections, Cars and Boats. Questions/Answer in the
Cars Section can have totally different fields than those in the Boats section.

Sections also have the ability to limit by role user that are able to ask a
question and users that are able to ask a question. Users also have the ability
to vote on answers by way of the voting api, as well as the ability to chose the
best answer.

-- CONFIGURATION --

You can configure Sections Entities at admin/structure/qa-sections and new
Sections can be added at admin/structure/qa-sections/add.

Unlike Sections, Question Entities can be broken down into type and each of
these is fieldable. The module comes pre-installed with single default Question
Type but more can be added at admin/structure/qa-question-types. Question types
are then assigned to the Section at the Section add/edit page. Questions can
only be added from the Section view page as each Question needs to be related to
a Section.

Answer Entities function much like Questions. Answers can be broken down into
types and each of these is fieldable. The module comes pre-installed with single
default Answer Type and more can be added at admin/structure/qa-answer-types.

-- Theming --

The Entity API offers a few theme suggestion that we can use to override our
entities. Let's say that you entity type is called "question" and one of your
bundles is called "cars", and that you have created an entity with id 1. The
following theme suggestions are available:

question.tpl.php
question__cars.tpl.php
question__cars__teaser.tpl.php (teaser is a view mode)
question__1.tpl.php

Project information

  • Created by j.adams on , updated