innoweb / silverstripe-bundled-userforms
Bundles the JavaScript requirements for UserForms into one single file using the Requirements::combine_files() method.
Installs: 888
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 2
Open Issues: 0
Type:silverstripe-vendormodule
pkg:composer/innoweb/silverstripe-bundled-userforms
Requires
README
Overview
Bundles the Javascript requirements for UserForms into one single script and defers its loading if no conditional Javascript is present for the form.
It also supports the use of forms using the [elementa userforms module] (https://github.com/dnadesign/silverstripe-elemental-userforms).
Requirements
SilverStripe CMS 6, see composer.json
Installation
Install the module using composer:
composer require innoweb/silverstripe-bundled-userforms
Then run dev/build.
Usage
The module is automatically applied and loads a bundled version of the requirements for UserForms instead of the default ones.
If you want to load the default scripts for a certain UserForm class, use the following config:
Your\Custom\UserFormClass: block_default_userforms_js: false
License
BSD 3-Clause License, see License