Postponed (maintainer needs more info)
Project:
Question
Version:
6.x-1.x-dev
Component:
User interface
Priority:
Critical
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
3 Mar 2009 at 12:23 UTC
Updated:
3 Feb 2011 at 22:00 UTC
Jump to comment: Most recent file
Comments
Comment #1
willvincent commentedIf I understand the question correctly. The original post is asking why there is a blank Title field on question nodes when a question is selected to be answered.
The reason, of course, is that nodes require a title. So this makes sense. It does seem though, like it could be pre-populated with a portion of the question field.
Unfortunately, since this module stores its data in a separate table, doesn't implement any CCK fields, or tokens, this can't be accomplished without writing a bit of code.
On the plus side, that bit of code is pretty simple.
So, for example, if you wanted to put user's question as the title, it could be done like so...
Create a custom_functions module. There's lots of info for doing so in the drupal handbook & api docs. The relevant code in the module would be this:
Comment #2
willvincent commentedThe attached image represents what you would end up with from my code sample above. Notice, neither the title or questioner fields are visible.
The end result is that if a question I posted were answered it would be titled tcindie's Question with the rest of the behavior intact as the module provides.
If the title then is truly not necessary on your site, you would just update (or create and configure) your node-question.tpl.php file, so it does not display the title. ;)