Download the PHP package wwwision/form-contentreferences without Composer
On this page you can find all versions of the php package wwwision/form-contentreferences. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download wwwision/form-contentreferences
More information about wwwision/form-contentreferences
Files in wwwision/form-contentreferences
Package form-contentreferences
Short Description Flow package with a custom Flow Form Framework Form Element that renders Neos Content References
License MIT
Informations about the package form-contentreferences
Render Neos Content in Neos Form Framework Forms
This package adds a new Form Element Wwwision.Form.ContentReferences:ContentReferences
to the default
preset that allows to render Neos Content within Forms
of the Flow Form Framework.
It includes:
- Form Framework Element definition in
Settings.yaml
- 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
FluidFormRenderer
- A Fusion prototype that will be used when rendering the form with the
neos/form-fusionrenderer
Usage
Install this package using GIT:
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.
Disclaimer and further considerations
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.