I just ran into a simple problem with a serious solution: The title field is too limited in length to be able to ask long questions. Yes, I realize fixing this means a rather complex effort.

CommentFileSizeAuthor
#6 faq-length.patch689 bytesjody lynn

Comments

nancydru’s picture

Perhaps a better way to handle this would be to add an additional multi-line field to expand upon the question in the title field. That way, it could all be combined together before going to the formatting routines. It also wouldn't break any existing uses of FAQ.

stella’s picture

Assigned: Unassigned » stella
Status: Active » Closed (won't fix)

Users affected by this in Drupal 5 could use the Longer Node Titles module. The length of the title field has already been increased to 255 in Drupal 6.

Cheers,
Stella

nancydru’s picture

That "module" is a core hack that alters the node table. I'm surprised that it is allowed to exist. At any rate, I could even envision that a question might be longer than 255 characters.

stella’s picture

The alternative is to change the column in the database to a 'text' field which has already been disapproved of for performance reasons. I believe that 255 characters is more than sufficient in the majority of cases and people with longer questions should possibly consider rephrasing their question.

If there are lots of users who have run into this issue and need a greater than 255 char solution, then I might make a hack for it, but for now I'm considering it a non-issue.

Cheers,
Stella

stella’s picture

marked #201923 as a duplicate of this issue.

jody lynn’s picture

Version: 5.x-2.x-dev » 6.x-1.11
Category: feature » bug
Status: Closed (won't fix) » Needs review
StatusFileSize
new689 bytes

In Drupal 6, titles can be up to 255 characters. Unfortunately, FAQ module creates a title field with a maxlength of 128 characters (the FAPI default). As a result, we're losing half of our allowed characters. This patch gives us the full 255 characters for the question length.

Steven Brown’s picture

Component: User interface » Code
Assigned: stella » Steven Brown
Status: Needs review » Active

@Jody Lynn,

I will update the module to allow for the maximum number of characters (255).
The default amount of a text field is set to 128 characters unless specified otherwise.

Depending on my schedule this might have to wait until the weekend.

Thanks

Steven Brown’s picture

I was not able to get to this over the weekend due to being sick. I am still sick and since it is now the during the work week, I probably wont have another chance at this until next weekend.

Sorry

stella’s picture

Category: bug » support
Status: Active » Closed (works as designed)

In Drupal 6, this is overcome with the longer question title/details setting. However there's no plans to add this to Drupal 5 at this point.