Feature #21685

Enable easier mail form styling

Added by Florian Carstens over 3 years ago. Updated 10 days ago.

Status:Needs Feedback Start date:2009-11-25
Priority:Should have Due date:
Assignee:- % Done:

0%

Category:-
Target version:-
TYPO3 Version:4.3 Complexity:
PHP Version:5.3
Votes: 0

Description

The standard typo3 mail form doesn't allow to style single form elements by their respective types, because there is no possibility to output the type information in the html.

The output of the type information for each form element could be easily accomplished by adding the following line to tslib_cObj::FORM (typo3/sysext/cms/tslib/class.tslib_content.php):

$result = str_replace('###TYPE###',$confData['type'],$result);

on line 2131 in trunk version (see applied patch)

This way I can setup the following typoscript setup:

tt_content.mailform.20 {
layout = <dl class="###TYPE###">###LABEL###<dd>###FIELD###</dd></dl>
}

(issue imported from #M12749)

typo3-mail-form.patch (604 Bytes) Administrator Admin, 2009-11-25 12:48

History

Updated by Alexander Opitz 10 days ago

  • Category deleted (Communication)
  • 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?

Also available in: Atom PDF