innoweb/silverstripe-bundled-userforms

Bundles the requirements for UserForms using the requirements-resolver module.

Installs: 828

Dependents: 0

Suggesters: 1

Security: 0

Stars: 1

Watchers: 4

Forks: 1

Open Issues: 0

Type:silverstripe-vendormodule

3.0.0 2024-01-04 02:47 UTC

This package is auto-updated.

Last update: 2024-10-04 04:20:50 UTC


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 5, see composer.json

Note: this version is compatible with Silverstripe 5. For Silverstripe 4, please see the 1 release line.

Installation

Install the module using composer:

composer require innoweb/silverstripe-bundled-userforms dev-master

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