/silverstripe-userforms-utils

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.

Primary LanguagePHPBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

Silverstripe UserForms Utils

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