Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.

Q<->A Many-to-Many ?

+1 vote
92 views
asked Jan 5 in Q2A Core by anonymous
Example: Users contribute 5 questions. Users contribute 50 answers. Each answer may relate to more than question. Those relationship links set by user, may be adjusted by moderator. New user to site may select a question and see related answers.

Other requirements, but this is the most important one.

Possible using the Q2A platform ?

1 Answer

+1 vote
answered Jan 6 by Scott
Almost anything is possible using plugins :) but what you're asking for would be quite difficult. Q2A has an extensive plugin system, so you can certainly set up your own many-to-many table, and add a layer plugin to display appropriate form controls for users to select which answers maps to which questions.

However, showing answers on multiple questions could be tricky. Possibly you could do a core hack in pages/question.php that fetches the appropriate answers and merge/replace the answer array that Q2A fetches.

Actually another strategy that may be simpler is to make a filter or event plugin that, when a new answer is added, automatically adds the answer to multiple questions. Problem here is that the answers are completely separate, so when one is edited the others won't be. But there are ways to handle that too.

Hope that helps!
...