palmiak / timber-acf-wp-blocks
Create Gutenberg blocks from Twig templates and ACF fields.
Installs: 47 404
Dependents: 1
Suggesters: 0
Security: 0
Stars: 243
Watchers: 13
Forks: 25
Open Issues: 27
Requires
- php: >=5.6
Requires (Dev)
- dev-master
- 1.15
- 1.14
- 1.13
- 1.12
- 1.11.3
- 1.11.2
- 1.11.1
- 1.11.0
- 1.10.0
- 1.9.0
- 1.8.0
- 1.7.0
- 1.6.0
- 1.5.1
- 1.5.0
- 1.4.0
- 1.3.0
- 1.2.0
- 1.1.0
- 1.0.0
- dev-extra-data-filter
- dev-palmiak-patch-1
- dev-default_options
- dev-support-parent-parameter
- dev-beta_plugin
- dev-azure-boards
- dev-quotes_in_keywords
- dev-restyled_test-restyled
- dev-restyled_test
This package is auto-updated.
Last update: 2024-10-28 18:15:47 UTC
README
Timber ACF WP Blocks
Generate ACF Gutenberg blocks just by adding templates to your Timber theme. This package is based heavily on this article by nicoprat and the plugin by MWDelaney.
Complete documentation
Read the complete documentation
Contributors
This plugin is build with help of contributors:
Creating blocks
Add twig templates to views/blocks
which get and use ACF data. Each template requires a comment block with some data in it:
{# Title: Testimonial Description: Customer testimonial Category: formatting Icon: admin-comments Keywords: testimonial quote "customer testimonial" Mode: edit Align: left PostTypes: page post SupportsAlign: left right SupportsMode: false SupportsMultiple: false #} <blockquote data-{{ block.id }}> <p>{{ fields.testimonial }}</p> <cite> <span>{{ fields.author }}</span> </cite> </blockquote> <style type="text/css"> [data-{{ block.id }}] { background: {{ fields.background_color }}; color: {{ fields.text_color }}; } </style>
Timber 2.0
Timber ACF WP Blocks is fully compatible with both Timber 1.x and Timber 2.x versions.