Project

General

Profile

Actions

Feature #19120

closed

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

Added by Philipp Metzler over 16 years ago. Updated almost 11 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2008-07-17
Due date:
% Done:

0%

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

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 (
&lt;tr&gt;
&lt;td colspan=&quot;2&quot;&gt;
###LABEL###
###FIELD###
&lt;/td&gt;
&lt;/tr&gt;
)
SUBMIT.layout (
&lt;tr&gt;
&lt;td colspan=&quot;2&quot;&gt;
###FIELD###
&lt;/td&gt;
&lt;/tr&gt;
)
)

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)

Actions #1

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

Actions #2

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?

Actions #3

Updated by Alexander Opitz about 11 years ago

  • Status changed from Needs Feedback to Closed

No feedback for over 90 days.

Actions #4

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).

Actions

Also available in: Atom PDF