serieseight/craft-cache-helper

安装: 56

依赖项: 0

建议者: 0

安全: 0

星标: 0

关注者: 2

分支: 0

开放问题: 0

语言:JavaScript

类型:craft-plugin

1.0.7 2024-06-13 09:43 UTC

This package is auto-updated.

Last update: 2024-09-18 11:49:57 UTC


README

此插件将HTML和JS注入到任何Formie表单中,以帮助缓存字段(例如获取查询参数或cookie)

要求

此插件需要Craft CMS 4.5.0或更高版本,以及PHP 8.0.2或更高版本。

用法

如果你使用form.render(),此插件将使用Formie钩子。

如果你没有使用form.render()并以自己的方式渲染表单,请确保你的表单末尾有{% hook 'formie.form.end' %}

如果你需要在任何时候重新初始化你的表单,你可以使用window.dynamicFormsInit()

安装

打开你的终端并运行以下命令

# 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