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)
Updated by Philipp Metzler over 14 years ago
and in extension that overwrite the function FORM in tslib_cObj, eg.: typo3conf/ext/maag_formcaptcha
typo3conf/ext/maag_formcaptcha/class.ux_tslib_cObj.php
class ux_tslib_cObj extends tslib_cObj
Updated by Alexander Opitz over 11 years ago
- Status changed from New to Needs Feedback
- Target version deleted (
0)
As this report is very old, is the handling in newer TYPO3 CMS Versions (like 6.0/6.1) more like you expect it?
Updated by Alexander Opitz about 11 years ago
- Status changed from Needs Feedback to Closed
No feedback for over 90 days.
Updated by Benjamin Robinson almost 11 years ago
I would like to reopen this feature request.
The handling did not change in newer versions like 6.0/6.1.
The function can now be found in typo3/typo3/sysext/frontend/Classes/ContentObject/FormContentObject.php – line 477-512 (in TYPO3 6.1.5).
It is still not possible to configure separate layouts for INPUT, SELECT, TEXTAREA and SUBMIT in the FORM cObject. This also concerns the tsref –> http://docs.typo3.org/typo3cms/TyposcriptReference/ContentObjects/Form/Index.html
The properties ...
INPUT.layout
SELECT.layout
TEXTAREA.layout
SUBMIT.layout
... should be added (Data type: string /stdWrap).