@kadavy Also: Lots of things are said on Twitter every minute to which The Universe is indifferent. Let those things go unread.
Month: November 2011
My Twitter avatar has his blue…
My Twitter avatar has his blue beanie on in support of web standards. http://t.co/st1VfpPY #bluebeanieday
Drupal Webform Module: How To Customize the Subject Line
I can’t seem to find a lot of documentation on certain Drupal modules. Yet another thing about Drupal that is frustrating, especially considering how much crap people throw at WordPress. WordPress seems to be much more organized and JUST as capable as Drupal. Oh well. Haters gonna hate.
THE FOLLOWING DESCRIBES HOW DRUPAL 6 WORKS.
THIS HAS CHANGED A BIT FOR DRUPAL 7.
(See comments for info about Drupal 7.)
How to customize the subject line in an automated email generated by the Drupal webform module
Sometimes examples save a lot of descriptive verbiage…
field label “First Name” – field key “fname” – webform email custom subject line “Message from %value[fname]”
and
field label “Last Name” – field key “lname” – webform email custom subject line “Message from Mr. %value[lname]”
unless the field in question is contained in a fieldset element! If that’s the case:
field label “First Name” – field key “fname” – fieldset field key “contact_info” – webform email custom subject line “Message from %value[contact_info][fname]”
and then click “Save e-mail settings” and you’re done!
This information was derived from the last comment on this page: http://drupal.org/node/823408 after 45 minutes of looking through a bunch of dead ends. I hope this post is easier to find, digest and get back to what you were doing before you forget why.
Mark Housel asks, “I was wondering if you could tell me just where these few lines go?”
So, the above details do take for granted that you know where the text in question should be input into the Drupal system. I generally try to avoid doing that. So many great how-tos on the web are written by smart people that seem to be talking to other people that already know a great deal about the subject in question. So we should all try to account for folks that are not familiar with certain details.
Mark and anybody else that is a little lost: I assume you know how to create a webform node on your Drupal site. If you click to edit the webform node in question you should see something like this:
- From the Webform node > edit window, click the “Webform” tab (see A)
- Click on the “E-mails” sub-tab (or section … whatever you want to call it … see B)
- If there is an existing E-mail output setup, click “Edit”. If one does not exist click “Add”
Following steps 1 thru 3 will bring you to the following page:
Scroll down to the “E-mail header details” and the “E-mail subject > Custom”. This is the input that I am referring to above. Enter what you need to there to alter the subject line of the automated email output.
Let me know if there are any other questions.
Share this with the Natty Ligh…
Share this with the Natty Light drinkers in your life: http://t.co/nrZWCVLj
@KungFuPastor Surprised he doe…
@KungFuPastor Surprised he doesn’t diss Pepsi while he was at it. http://t.co/FWhOWRgl #ItTakesTwoToMakeAThingGoRight
@KungFuPastor Wow. Thanks. I f…
@KungFuPastor Wow. Thanks. I feel like I just got Rick-Rolled since I had no idea who Rob Bass was…. http://t.co/pyyViw9j
That would be the big sister a…
That would be the big sister also known as @Buffy39 … way to go Buffy!
My big sister won a Nebraska B…
My big sister won a Nebraska Book design award! http://t.co/035huBzd for her work on this book: http://t.co/x1uUI4tt
@jimmyfallon @questlove I thin…
@jimmyfallon @questlove I think it’s funny. You’re a late night show, hosted by a comedian. People need to chill out.
Hobo Signs: http://t.co/5ujZRi…
Hobo Signs: http://t.co/5ujZRiIx
Folks, we are all going to mak…
Folks, we are all going to make mistakes. But we cannot improve if we fail to accept responsibility for those mistakes.
@commadelimited It’s important…
@commadelimited It’s important for the computer to be aware of the difference, but also when that difference is not important.
@stuntbox Nice pic! http://t.c…
@stuntbox Nice pic! http://t.co/PNXgGabB
@ade3 Is today your birthday? …
@ade3 Is today your birthday? Happy Birthday!
Tip: AbiWord does a much bette…
Tip: AbiWord does a much better job of opening WordPerfect files than Microsoft Word. Phew! http://t.co/5JKWNbjX
@Malarkey Beautiful photo.
@Malarkey Beautiful photo.
Country music fans? You could …
Country music fans? You could win 29 albums: http://t.co/cA9ehz9j
@BookerTJones Damn, just found…
@BookerTJones Damn, just found out you were on Twitter. Don’t tell me I _just_ missed an opportunity to hear you live in Nashville!
Jesus, that is one ugly book c…
Jesus, that is one ugly book cover: http://t.co/NsY39dB8
@patrick_h_lauke Thanks! Did n…
@patrick_h_lauke Thanks! Did not know that. Still, the w3 page doesn’t seem to be a good solution as far as graceful degradation.