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
Requires
- php: >=8.0.2
- craftcms/cms: ^4.5.0|^5.0.0
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