Gravity Forms Timber
A wordpress plugin to ease timber integration with Gravity Forms
by Genero · github.com/generoi/wp-gravityforms-timber · website
★ 6stars
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/generoi/wp-gravityforms-timber/archive/refs/heads/master.zipFrom the readme
wp-gravityforms-timber
A wordpress plugin to ease timber integration with Gravity Forms by suggesting twig templates and providing a JS layer to create submissions using the gravityformsrestapi plugin.
Requirements
- gravityformsrestapi
Features
- Provide form.twig, form--ID.twig template suggestions for all shortcode forms
- Provides a Machine name setting for Gravity Form fields that can be used to fetch field meta easier than by ID
- Supports both Gravity Form endpoints as well as general WP REST endpoints.
- Provides inline field validation using Foundation markup.
- Provides an option on a per-form basis to disable the Timber integration and use core Gravity Form logic instead.
Markup and Timber integration
The plugin does not come with any front-end, instead the theme should provide it. See generoi/sage for an example.
Other REST endpoints
You can use the AJAX form submission feature on any WP REST API endpoint. If you set data-ajax it will be initialized automatically, otherwise you can initialize it yourself through the JS constructor.
Options
Options can be passed in various ways. You can:
1. Use the AjaxForm constructor directly
2. Set options as data-
Read the full README on GitHub →
Releases
| Tag | Published |
|---|---|
| v1.0.0-alpha.3 | Jan 12, 2018 |
| v1.0.0-alpha.2 | Aug 7, 2017 |
| v1.0.0-alpha | Jul 20, 2017 |
These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.