Closed (fixed)
Project:
Drupal Commons
Component:
Q+A (Commons Answers)
Priority:
Major
Category:
Feature request
Assigned:
Reporter:
Created:
18 Mar 2013 at 18:05 UTC
Updated:
11 Jun 2013 at 20:30 UTC
Jump to comment: Most recent file
Rather than the answer node in isolation of the question.
This task likely involves updating the message template, changing the location of the permalink, and providing an upgrade path.
If we don't currently provide a permalink for answers when displayed on a Question page, we should add that here.
Comments
Comment #1
ezra-g commentedComment #2
jpontani commentedComment #3
jpontani commentedComment #4
stupiddingo commentedHere's a hack to accomplish this for the time being. This is in no way meant as a real solution. I hope to revisit this and add some proper code once I grok all the parts. Leaving this here as a placemarker.
Comment #5
devin carlson commentedA patch to add a new message type which links to the answer node as displayed on the question. An update function is included to revert the appropriate parts of the Q+A feature.
Comment #6
ezra-g commentedThanks ! Looks great overall.
A few revisions:
A) The question answered anchor should use the nid of the newly created answer (accessible through field_target_nodes:0:nid or similar) rather than the nid of the question
B) Let's change the message test to add the phrase "with the answer". Eg, "Lisa Rex answered the question Where should we go to dinner? with the answer "Moes" in the Boston group"
Comment #7
devin carlson commentedAn updated patch to use the nid of the answer and the new phrasing.
I also noticed that the existing "Question Asked" message type includes some leftover formatting from a WYSIWYG editor (such as class="aloha-link-text" and encoded whitespace ) which can be removed. I've included the removal the formatting in the patch.
Comment #8
ezra-g commentedThis looks great from a technical perspective.
Uploading an example screenshot for a formatted message for design review.
Thanks!
Comment #9
Noyz commentedDon't think u need 'with the answer'. Instead... Site admin answered the question 'foo' with 'bar' in the Boston group
Comment #10
ezra-g commentedMarking as "needs work" per #9.
Comment #11
devin carlson commentedA reroll of #7 which uses the simplified text outlined in #9.
Comment #12
ezra-g commentedLooks great to me. Thanks!
Comment #13
devin carlson commentedCommitted #11 to Commons Q&A 7.x-3.x.
http://drupalcode.org/project/commons_q_a.git/commit/1ab6f14