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

Also available in: Atom PDF