webographen / statamic-dynamic-token
Dynamic tokens for statically cached forms in Statamic v3
Installs: 5 911
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 0
Forks: 0
Open Issues: 1
Type:statamic-addon
Requires
- statamic/cms: ^3.0
This package is auto-updated.
Last update: 2025-04-27 11:56:05 UTC
README
Allows you to use standard Statamic v3 forms while also leveraging static caching.
Requirements
- Statamic v3
Installation
From your site folder, run composer require webographen/statamic-dynamic-token
Usage
Add the {{ dynamic_token }}
tag to the view, so it appears on the same page as your form.
The inserted JS adds tokens to all forms that have an input with name="_token"
.
Tokens are refreshed every 15 minutes to prevent time-out.
Credit
This feature was originally developed by Rob de Kort as part of the Peak Statamic Starter Kit.