[Neos] Neos Typo3.Form Node properties

nikos nick at jamalade.com
Wed Aug 20 20:33:51 CEST 2014


Hi Bastian

Thanks for the reply works a treat.

Many thanks

Nick

On 05/08/2014 18:31, Bastian Waidelich wrote:
> nikos wrote:
>
> Hi Nikos,
>
>> I am just wondering if it is possible to access Node properties from
>> within a Form finisher? If it is possible are there any examples of use?
>
> Reading this I remember that you asked something similar in May and I forgot to respond..
>
> The only way I can think of right now would be to use the "overrideConfiguration" argument of the form:render ViewHelper to pass the node to the form
> runtime, for example:
>
> <form:render persistenceIdentifier="{formIdentifier}" presetName="{presetName}" overrideConfiguration="{renderingOptions: {node: node}}" />
>
> You can access it from the finisher via
> $renderingOptions = $this->finisherContext->getFormRuntime()->getRenderingOptions();
> $node = $renderingOptions['node'];
>
> In order to adjust the template of the Form NodeType in Neos just copy the template[1] to your site package and adjust the template path:
>
> prototype(TYPO3.Neos.NodeTypes:Form) {
>      templatePath = 'resource://<YourSitePackageKey>/Private/Templates/NodeTypes/Form.html'
> }
>
> ..Or create a new NodeType.
>
> HTH
>
>
> [1] https://git.typo3.org/Packages/TYPO3.Neos.NodeTypes.git/blob/HEAD:/Resources/Private/Templates/NodeTypes/Form.html
>



More information about the Neos mailing list