Issue Feature Closed

#85137Give Fluid templates access to tt_content fields of EXT:form plugin content element

Anonymous 06/01/18, 10:26 updated 04/29/19, 11:00

Description

It would be really nice, if Fluid templates could access fields of the plugin content element.
E.g. header, layout, space_before_class, etc.

*Use case*
With access to the tt_content fields a form could be rendered with different styling, withouth changing the form itself.
This would allow an editor (which has no access to the FormEditor) to re-use a form in different styles (e.g. different checkbox styling, different container sizes, different spacings, horizontal/vertical form, etc.)
Also an integrator could aa a “bodytext” field to the plugin content element, so an editor can write a short description to each occurence of the form.

*Needed code change*
Add $this->view->assign('data', $this->configurationManager->getContentObject()->data); to FormFrontendController->renderAction:
https://github.com/TYPO3/TYPO3.CMS/blob/fb269735ab1e3e1699b999156845be9766588e96/typo3/sysext/form/Classes/Controller/FormFrontendController.php#L65

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.