Active
Project:
Question/Answer
Version:
7.x-1.x-dev
Component:
User interface
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
21 Jun 2011 at 02:22 UTC
Updated:
29 Jun 2011 at 10:14 UTC
It would be nice if we could get this to integrate well with advanced forum. For example, having a section where people can post questions and voting/selecting answer buttons.
Comments
Comment #1
a.ross commentedI will probably create a patch for this since I need this feature, are you willing to include this feature?
Comment #2
jcisio commentedIt depends on how the patch is. But in general, I'm open ;-)
Comment #3
a.ross commentedWell, it already "works". But what I'm thinking of, is placing an option in Advanced Forum's settings, where you can select which forum regions (General discussion etc.) have question/answer enabled. So not ALL forum type nodes will be question/answer. It allows for creating a FAQ section in a forum. Does that sound interesting?
Comment #4
jcisio commentedYes it sounds interesting. For it to be extensible, I think a hook mechanism can be used. Like hook_question_answer_enable($nid) (or hook_qa_enable in short, as the "qa" namespace is not used now ;-) ) that returns FALSE if we don't want Q/A on that node.
Comment #5
a.ross commentedAre you thinking of moving question_answer to qa? Anyway, I will see what I can come up with in the coming days.
Comment #6
jcisio commentedNo, but such pratice is not rare, like the cck project is in fact shipped with a few modules that are not "cck" but content...
Comment #7
a.ross commentedI have done some research, and full integration consists of a few parts. One is integration with the core Forums module, which handles the forum structure. I'm working on that now. Another is making sure the css classes are applied to Advanced Forum (which uses Views). Perhaps there are others, but as far as I can tell these two are the most important.
As for a hook, this can be implemented separately from Forums integration. It should still work when forums aren't enabled. Maybe we can separate this issue in parts. For now, I'll make sure Forum integration works.
Comment #8
jcisio commentedI don't think we need many CSS stuffs. A minimal CSS is enough.
About the hook, I've just gone ahead and create this issue #1203694: Provide a hook_question_answer_enable() to limit Q/A feature to only a certain number of nodes.