logicbrush/silverstripe-userforms-utils

A collection of utilities for the Silverstripe UserForms module

Installs: 4 101

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 4

Forks: 0

Open Issues: 0

Type:silverstripe-vendormodule

1.0.4 2022-04-21 18:43 UTC

This package is auto-updated.

Last update: 2024-03-12 14:54:23 UTC


README

Build Status codecov.io Scrutinizer Code Quality License

A collection of utilities for the Silverstripe CMS UserForms module. This includes a shortcode to insert a user form into any content area and a user form widget.

Requirements

Installation (with composer)

composer require "logicbrush/silverstripe-userforms-utils"

Usage

To use the form shortcode we insert [userform id="x"] in a HTMLText area where x is the user form page ID.

By default the UserForms module CSS and Javascript requirements will be loaded when using the shortcode. This can be turned off by setting the following in a yml config file:

Logicbrush\UserFormsUtils\Shortcodes\UserFormShortcodeProvider:
  block_default_userforms_requirements: true