formController.patch

Oliver Hader, 2014-03-04 16:03

Download (1.44 KB)

View differences:

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