serieseight/craft-cache-helper

Installs: 101

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 0

Language:JavaScript

Type:craft-plugin

1.0.7 2024-06-13 09:43 UTC

This package is auto-updated.

Last update: 2024-12-18 12:34:14 UTC


README

This plugin injects HTML and JS into any Formie forms to help with cached fields (e.g. get query param or cookie)

Requirements

This plugin requires Craft CMS 4.5.0 or later, and PHP 8.0.2 or later.

Usage

This plugin will use Formie hooks if you're using form.render().

If you're not using form.render() and rendering the form your own way, make sure you have {% hook 'formie.form.end' %} at the end of your form.

If you need to reinitialise your forms at any point, you can do so using window.dynamicFormsInit().

Installation

Open your terminal and run the following commands

# Go to project directory
cd /path/to/project

# Tell Composer to load the plugin
composer require serieseight/craft-cache-helper

# Tell Craft to install the plugin
./craft plugin/install cache-helper