Download the PHP package spooner-web/fluid-form-elements without Composer
On this page you can find all versions of the php package spooner-web/fluid-form-elements. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download spooner-web/fluid-form-elements
More information about spooner-web/fluid-form-elements
Files in spooner-web/fluid-form-elements
Package fluid-form-elements
Short Description Easy to use fluid form elements for Extbase/Fluid usage
License GPL-2.0+
Homepage http://typo3.org
Informations about the package fluid-form-elements
Fluid Form Elements
This is a TYPO3 extension which simplifies the usage of the Fluid form view helpers.
Installation
composer require spooner-web/fluid-form-elements
Why using these view helpers?
Are you tired of collecting the same records for your select again and again?
Do you manage your labels for BE and FE twice?
Do you copy/paste your template around the form elements?
Now these times are over. With Fluid Form Elements you:
- can set your own template wrapping the form elements
- can use the built-in Bootstrap templates (default and horizontal)
- get all records by the repository for your select automatically (based on the given property)
- get the label determined automatically on the general label
tablename.fieldname
- can set the Bootstrap grid classes to use in horizontal form (default is col-sm-3/col-sm-9)
Usage
After installation, the extension uses the namespace ffe
globally.
You are able to set the wanted template (currently default and horizontal Bootstrap form) in the extension configuration.
Then you can start directly in your extension by using the new view helpers.
Examples of usage
-
By using the textfield view helper
<ffe:form.textfield property="name" />
you get the Bootstrap templateor horizontal Bootstrap (v4)
- By using the select view helper
<ffe:form.select property="country" />
it determines what is given in your model behind the propertycountry
. If there is a relation to another model, it looks for the related repository and callsfindAll()
to get all records. - You can override arguments by using them, e.g.
<ffe:form.select property="country" objects="{countries}" />
and you can fill the select with your own data. - By using the argument
label
you can use your own label, e.g.<ffe:form.textarea property="description" label="My description" />
Usable view helper
- FormViewHelper
- TextfieldViewHelper
- TextareaViewHelper
- SelectViewHelper
- CheckboxViewHelper
- RadioViewHelper
Feedback
Please write me via GitLab
All versions of fluid-form-elements with dependencies
typo3/cms-core Version ^8.7
typo3/cms-fluid Version *
typo3/cms-extbase Version *