Issue Feature Closed

#19120Add mailform config for elements INPUT, SELECT, TEXTAREA, SUBMIT

Philipp Metzler 07/17/08, 18:17 updated 12/10/13, 19:30

Description

Hello,

I vote for the possibility to configure the form elements INPUT, SELECT, TEXTAREA, SUBMIT like this:

tt_content.mailform = COA
tt_content.mailform.10 = < lib.stdheader
tt_content.mailform.20 = FORM
tt_content.mailform.20 {
SELECT.layout (


###LABEL###
###FIELD###


)

TEXTAREA.layout (
<tr>
<td colspan=“2”>
###LABEL###
###FIELD###
</td>
</tr>
)
SUBMIT.layout (
<tr>
<td colspan=“2”>
###FIELD###
</td>
</tr>
)
)

best regards,

Philipp

for that the script typo3/sysext/cms/tslib/class.tslib_content.php must be changed:

if ($confData[‘type’]==‘comment’ && $conf[‘COMMENT.’][‘layout’]) {
$result = $conf[‘COMMENT.’][‘layout’];
}
if ($confData[‘type’]==‘check’ && $conf[‘CHECK.’][‘layout’]) {
$result = $conf[‘CHECK.’][‘layout’];
}
if ($confData[‘type’]==‘radio’ && $conf[‘RADIO.’][‘layout’]) {
$result = $conf[‘RADIO.’][‘layout’];
}
if ($confData[‘type’]==‘label’ && $conf[‘LABEL.’][‘layout’]) {
$result = $conf[‘LABEL.’][‘layout’];
}

/*
***********************************************************************************************
NEW ADDITIONAL:
***********************************************************************************************
*/
if ($confData[‘type’]==‘input’ && $conf[‘INPUT.’][‘layout’]){
$result = $conf[‘INPUT.’][‘layout’];
}
if ($confData[‘type’]==‘textarea’ && $conf[‘TEXTAREA.’][‘layout’]){
$result = $conf[‘TEXTAREA.’][‘layout’];
}
if ($confData[‘type’]==‘select’ && $conf[‘SELECT.’][‘layout’]){
$result = $conf[‘SELECT.’][‘layout’];
}
if ($confData[‘type’]==‘submit’ && $conf[‘SUBMIT.’][‘layout’]) {
$result = $conf[‘SUBMIT.’][‘layout’];
}
/*
***********************************************************************************************
*/

(issue imported from #M8997)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.