Flow package with a custom Flow Form Framework Form Element that renders Neos Content References
This package adds a new Form Element
default preset that allows to render Neos Content within Forms
of the Flow Form Framework.
- Form Framework Element definition in
- The Fusion definition that is required to render the Content references from a given fusion path
- A Fluid template that will be used when rendering the form with the default
- A Fusion prototype that will be used when rendering the form with the
Install this package using GIT:
git clone https://github.com/bwaidelich/Wwwision.Form.ContentReferences.git Packages/Application/Wwwision.Form.ContentReferences
And make sure to rescan the installed packages so that it is properly installed:
Note: This package requires the
neos/form-builder package to be installed
In the Neos backend there's now a new Content Element type that can be added to node-based Forms:
When selecting the element, Content references can be added in the Property Inspector:
Note: This Form Element can't be used outside of node-based Forms because its rendering relies on the Neos Fusion runtime.
This package is merely an example that should demonstrate how the Form Framework & Builder can be extended. I would not recommend to allow editors to add arbitrary content to a Form but with that package as inspiration it should be easy to include custom elements.