Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/palmiak/timber-acf-wp-blocks-plugin
https://github.com/palmiak/timber-acf-wp-blocks-plugin
Last synced: 13 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/palmiak/timber-acf-wp-blocks-plugin
- Owner: palmiak
- License: mit
- Created: 2019-10-17T20:23:14.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-01-22T01:24:17.000Z (almost 4 years ago)
- Last Synced: 2024-12-26T13:09:10.562Z (16 days ago)
- Language: PHP
- Size: 75.2 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
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](https://medium.com/nicooprat/acf-blocks-avec-gutenberg-et-sage-d8c20dab6270) by [nicoprat](https://github.com/nicooprat) and the [plugin](https://github.com/MWDelaney/sage-acf-wp-blocks) by [MWDelaney](https://github.com/MWDelaney).## Complete documentation
[Read the complete documentation](https://palmiak.github.io/timber-acf-wp-blocks/#/)## Contributors
This plugin is build with help of contributors: [roylodder](https://github.com/roylodder)## 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:
```twig
{#
Title:
Description:
Category:
Icon:
Keywords:
Mode:
Align:
PostTypes:
SupportsAlign:
SupportsMode:
SupportsMultiple:
SupportsAnchor:
EnqueueStyle:
EnqueueScript:
EnqueueAssets:
#}
```