touch5 / t5-bootstrap-form
Extended form structure for bootstrap
Package info
bitbucket.org/touch-5/t5_bootstrap_form/
Type:typo3-cms-extension
pkg:composer/touch5/t5-bootstrap-form
Requires
- typo3/cms-core: ^12.4 || ^13.4
- typo3/cms-form: ^12.4 || ^13.4
Requires (Dev)
- typo3/testing-framework: ^6.9.0
Replaces
- typo3-ter/t5-bootstrap-form: 4.13.23
- dev-main
- v13.x-dev
- v13.1.x-dev
- 4.13.23
- 4.13.22
- 4.13.18
- 4.13.17
- 4.13.16
- 4.13.15
- 4.13.14
- 4.13.13
- 4.13.12
- 4.13.11
- 4.13.10
- 4.13.9
- 4.13.8
- 4.13.7
- 4.13.5
- 4.13.4
- 4.13.3
- 4.13.2
- 4.13.1
- 4.13.0
- 4.12.0
- 4.11.0
- 4.10.0
- 4.0.9
- 4.0.8
- 4.0.7
- 4.0.6
- 4.0.4
- 4.0.1
- 4.0.0
- 3.0.1
- 3.0.0
- 2.0.0
- 1.0.7
- 1.0.0
- dev-documentation-draft
- dev-master
This package is auto-updated.
Last update: 2026-03-13 14:17:10 UTC
README
Overview
The Bootstrap Form extension enhances TYPO3's form system with Bootstrap 5 integration, providing responsive and modern form styling with floating labels. This extension extends the standard TYPO3 form functionality with Bootstrap-specific components and styling.
Features
- Bootstrap 5 styling for all form elements
- Floating labels support
- Custom email finishers with enhanced features
- Pre-configured form templates
- Content element integration for form headers and images
- Responsive design
Requirements
- TYPO3 CMS 12.4 or 13.0
- Bootstrap 5 CSS framework
Installation
Composer Installation
composer require touch5/t5-bootstrap-form
Extension Manager
- Download the extension from the TYPO3 Extension Repository
- Upload and install the extension through the Extension Manager
Configuration
The extension is configured through the TYPO3 form framework. It adds a new form prototype called formFloatingLabels that inherits from the standard form prototype.
TypoScript Setup
The extension automatically adds the necessary TypoScript configuration:
module.tx_form.settings.yamlConfigurations {
100 = EXT:t5_bootstrap_form/Configuration/Form/FormSetup.yaml
}
plugin.tx_form.settings.yamlConfigurations {
300 = EXT:t5_bootstrap_form/Configuration/Form/FormSetup.yaml
}
Usage
Using the Form Wizard
The extension provides a Form Wizard in the TYPO3 backend that makes it easy to create and configure Bootstrap forms:
- Go to the TYPO3 backend Form module
- Click the "Create new form" button
- Enter a form name (e.g., "Contact Form")
- Select "Bootstrap Form with Floating Labels" as the prototype
- Choose "Bootstrap Contact Form" as the template or start with a blank form
- Click "Create form" to generate the form
Creating Forms Manually
When creating forms manually by writing YAML configurations, you must use the correct prototype name:
prototypeName: formFloatingLabels # Required for Bootstrap styling
Important: The
formFloatingLabelsprototype name is required for all Bootstrap form functionality to work correctly.
Using the Email Finishers
The extension provides two enhanced email finishers:
- Email to Receiver (Bootstrap): Sends an email to the form recipient with Bootstrap styling
- Email to Sender (Bootstrap): Sends a confirmation email to the form submitter with Bootstrap styling
Both finishers support:
- HTML emails with Bootstrap styling
- Content element integration (header, bodytext, image)
- File attachments
- Custom templates
Template Customization
You can customize the templates by overriding the template paths in your site package:
plugin.tx_form.settings.yamlConfigurations {
1000 = EXT:your_extension/Configuration/Form/FormSetup.yaml
}
In your custom YAML file:
prototypes:
formFloatingLabels:
formElementsDefinition:
Form:
renderingOptions:
templateRootPaths:
200: 'EXT:your_extension/Resources/Private/Templates/'
partialRootPaths:
200: 'EXT:your_extension/Resources/Private/Partials/'
layoutRootPaths:
200: 'EXT:your_extension/Resources/Private/Layouts/'
Examples
Basic Form Configuration
type: Form
identifier: bootstrap-contact-form
label: 'Bootstrap Contact Form'
prototypeName: formFloatingLabels
renderables:
- type: Page
identifier: page-1
label: 'Contact'
renderables:
- type: Text
identifier: name
label: 'Name'
properties:
fluidAdditionalAttributes:
placeholder: 'Name'
validators:
- identifier: NotEmpty
- type: Email
identifier: email
label: 'Email'
properties:
fluidAdditionalAttributes:
placeholder: 'Email'
validators:
- identifier: NotEmpty
- identifier: EmailAddress
- type: Textarea
identifier: message
label: 'Message'
properties:
fluidAdditionalAttributes:
placeholder: 'Your message'
validators:
- identifier: NotEmpty
finishers:
- identifier: EmailToReceiverBootstrap
options:
subject: 'New contact form submission'
recipientAddress: 'recipient@example.com'
recipientName: 'Recipient Name'
senderAddress: '{email}'
senderName: '{name}'
addHtmlPart: true
- identifier: Redirect
options:
pageUid: '42'
additionalParameters: ''
Documentation
Detailed documentation is available in the Documentation directory:
- User Documentation: Comprehensive guide for users
- Developer Documentation: Technical details for developers
Compatibility
- TYPO3 12.4 - 13.0
License
GPL-2.0-or-later
Author
Michael Scheunemann m.scheunemann@touch5.de