You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Most of the fields I would like to template belong to a huge "content" Flexible Content.
It contains multiple "Layouts" which each contains fields (like a "reusable block group").
I thought timber-acf-wp-blocks would allow me to progress smoothly from ACF "flexible content" to Gutenberg fields, but I fail to see how to map the Twig template naming to the (nested) field name.
Something like content.hero_layout_1.my_field?
(Another limitation is that ACF <-> blocks works on a group level ie: One ACF group represent one block which is not the case if using one Flexible field)
Also note that there seems to be a typo at https://palmiak.github.io/timber-acf-wp-blocks/#/filters timber/acf-gutenberg-blocks-templates/{block_id} - filters data in block with block id {block_id} but the sample PHP code below uses timber/acf-gutenberg-blocks-data/{block_id}.
The text was updated successfully, but these errors were encountered:
To be honest I didn't tried to convert Flexible Content to Blocks yet. But it should be possible using timber/acf-gutenberg-blocks-data/ filter (so you can use the block value and the flexible content as fallback).
I can try to take a look it with some basic example.
Most of the fields I would like to template belong to a huge "content" Flexible Content.
It contains multiple "Layouts" which each contains fields (like a "reusable block group").
I thought
timber-acf-wp-blocks
would allow me to progress smoothly from ACF "flexible content" to Gutenberg fields, but I fail to see how to map the Twig template naming to the (nested) field name.Something like
content.hero_layout_1.my_field
?(Another limitation is that ACF <-> blocks works on a group level ie: One ACF group represent one block which is not the case if using one Flexible field)
Also note that there seems to be a typo at https://palmiak.github.io/timber-acf-wp-blocks/#/filters
timber/acf-gutenberg-blocks-templates/{block_id} - filters data in block with block id {block_id}
but the sample PHP code below usestimber/acf-gutenberg-blocks-data/{block_id}
.The text was updated successfully, but these errors were encountered: