Feature #19120
closedAdd mailform config for elements INPUT, SELECT, TEXTAREA, SUBMIT
0%
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 (
<tr>
<td colspan="2">
###LABEL###
###FIELD###
</td>
</tr>
)
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)