Project

General

Profile

Bug #50274 » formController.patch

Oliver Hader, 2014-03-04 16:03

View differences:

typo3/sysext/css_styled_content/static/setup.txt
tt_content.mailform.10 = < lib.stdheader
tt_content.mailform.20 = FORM
tt_content.mailform.20 {
useDefaultContentObject = 1
accessibility = 1
noWrapAttr=1
formName = mailform
typo3/sysext/form/Classes/Controller/FormController.php
*/
public function cObjGetSingleExt($typoScriptObjectName, array $typoScript, $typoScriptKey, \TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer $contentObject) {
$content = '';
if ($typoScriptObjectName === 'FORM') {
if ($typoScriptObjectName === 'FORM' && !empty($typoScript['useDefaultContentObject'])) {
$content = $contentObject->getContentObject($typoScriptObjectName)->render($typoScript);
} elseif ($typoScriptObjectName === 'FORM') {
if ($contentObject->data['CType'] === 'mailform') {
$bodytext = $contentObject->data['bodytext'];
/** @var $typoScriptParser \TYPO3\CMS\Core\TypoScript\Parser\TypoScriptParser */
(2-2/2)