First of all, thanks so much for the module, it's really cool and works very well. However there are just a few small features that I'd like to request that would assist me greatly. First of all, can you expand the size of the textfield for the question. There's just simply not enough room for most of the questions I've been using and it makes it tough to see. At the very least can you provide a setting to expand the form area?

Secondly it would be great to be able to format the question text automatically or at least have the default be bold so that it stands out on the page. If there was a setting for this, this would be terrific as currently I have to hand code each question to bold it.

Thanks again! Keep up the great work

Comments

patrickd’s picture

Thanks for using it!

Requested features:

  • Advanced option to use a textarea with x lines for questions.
  • Advanced option to set some styling settings for the questions.

Did I get these right?

CinemaSaville’s picture

Actually, I just realized that the form for the text field is controlled by the admin theme, so I'm not sure if you could affect it via your module.
And yes to #2.

You're welcome for using it. It's very much appreciated.

patrickd’s picture

I can do it by replacing the question textfield with a textarea with a configurable number of rows

CinemaSaville’s picture

OK, sounds great.

patrickd’s picture

Status: Active » Needs review
StatusFileSize
new2.79 KB

The attached patch let's you choose a custom rows parameter for the question field.

I've not found a nice solution for configurable styling, but simply putting

.faqfield-question a {
  font-weight: bold;
}

into your theme's CSS should be enough.

Please test the patch with git apply.

patrickd’s picture

Status: Needs review » Fixed

Tested and committed, seems to work fine.

Will do more exhaustive tests on 7.x-1.x in general.

Status: Fixed » Closed (fixed)

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

cmah’s picture

Issue summary: View changes

Hi Patrick -- great module, and generally much more useful than the older FAQ module.

In use plaintext format for questions you seem to definitively decide that questions should only be plaintext textfields, yet here, questions are discussed as if they might also be optionally textareas with configurable numbers of rows.

Which is it? Since the latter issue post-dates this one, I'll assume you came down on the side of "plain text" and that any use case where we might want to use a textarea for questions is off the table.

patrickd’s picture

hi chickenofeathers

Glad you like it!

Question text will always be outputted with "plain text" filter.
The widget itself has nothing to do with the format for the output.
The widget for the question may be a textfield or a textarea with a configurable number of lines.

7.x-1.x is pretty much feature complete and stable and I'd rather not change anything about that.
in 8.x-1.x the output format of the question should be configurable

cmah’s picture

Patrick, sorry to be super-dense, but I don't understand why you may have a textarea with a configurable number of lines, and yet still have the question max length be set to 255. If it can be a textarea, it ought to really be one, and not just be a VARCHAR(255) disguised with a large textarea.

What am I missing here? I have a lot of questions which are longer than 255 characters.

patrickd’s picture

I get that, would you mind to open a new feature request issue? ;)

aitala’s picture

He did... Nothing has been done.

Eric