Project:Frequently Asked Questions
Version:6.x-1.11
Component:User interface
Category:feature request
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

Can there be a way to remove the Question Details from both the FAQ content creation as well as the display?

Comments

#1

For display, just configure the display settings at admin/settings/FAQ/questions - pick short question text. For the form, you will need to use a hook_form_alter() to remove the field.

#2

Ok, so I added the function "faq_form_faq_node_form_alter". If the variable "faq_question_length" is "short", then I remove the "detailed_question" part of the form. But now I have to redo this when there's an update to the module, right?

#3

You should not modify the faq module, so you should be adding the hook_form_alter in your own custom module, i.e. mymodule_form_faq_node_form_alter() and that way you don't have to worry about redoing this when there is an update to the module.

#4

Right, of course. Don't know what I was thinking there.

But I did categorize this as a "feature request" - doesn't it make sense to exclude the detail field if only the short question is selected?

#5

Status:active» fixed

Committed.

#6

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

#7

Released in 6.x-1.12.

nobody click here