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.
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | faq-length.patch | 689 bytes | jody lynn |
Comments
Comment #1
nancydruPerhaps 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.
Comment #2
stella commentedUsers 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
Comment #3
nancydruThat "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.
Comment #4
stella commentedThe 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
Comment #5
stella commentedmarked #201923 as a duplicate of this issue.
Comment #6
jody lynnIn 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.
Comment #7
Steven Brown commented@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
Comment #8
Steven Brown commentedI 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
Comment #9
stella commentedIn 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.