Feature #32132

Making subjectField configurable with TS

Added by Josef F. Glatz (Old User) about 9 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Form Framework
Target version:
-
Start date:
2011-11-28
Due date:
% Done:

100%

Estimated time:
PHP Version:
Tags:
Complexity:
Sprint Focus:

Description

It would be nice, if we have more possibilities as TYPO3 integrator to customize subject and making the field dynamic.
E.g. "Mail from ###subjectField###"

regards
jousch


Files

patch.diff (528 Bytes) patch.diff Florian Scholz, 2012-02-07 11:29
form.txt (1.42 KB) form.txt Florian Scholz, 2012-02-09 09:30
#1

Updated by Florian Scholz almost 9 years ago

Not sure where to put this patch, but I guess all we need here is adding subjectField to setSubject in tx_form_System_Postprocessor_Mail.
Attaching my very first patch to Typo3. Any additional hints are welcome :-)

Edit: I've figured out that I need to push my bits to review.typo3.org. Did that some minutes ago.

#2

Updated by Gerrit Code Review almost 9 years ago

  • Status changed from New to Under Review

Patch set 2 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/8888

#3

Updated by Gerrit Code Review almost 9 years ago

Patch set 3 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/8888

#4

Updated by Florian Scholz almost 9 years ago

Philipp asked for a sample form TS for testing. I'm attaching my slightly modified TS, which was originally generated by the FormWizard.

The new thing is actually:

subjectField = subject

which can now refer to the input field "subject":
10 = TEXTLINE
10 {
    name = subject
    label {
        value = Betreff
    }
}

Before this patch you were only able to set "subject" which expects a string and not a field reference:
subject = Message via contact form on example.org

#5

Updated by Philipp Gampe almost 9 years ago

Florian Kuss Would you mind to add the documentation for this?
The right place would be: typo3/sysext/form/Documentation/Manual/en/manual.sxw

#6

Updated by Florian Scholz almost 9 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
#7

Updated by Benni Mack over 2 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF