Yup, same here
Been looking at some ACF.ajax code, but still no luck here.
Yes, i would like to “+1” this too.
It would be a great addition to the ACF blocks.
Now all blocks EXCEPT the ACF blocks have examples.
So, to “fix” my own issue here:
The preview parameter is not correctly passed on by ACF, so i could not use that.
I created my own preview paramter just by checking if we are in the adminbackend or not.
So the renderblock is as followed:
function fn_render_block_podcast( $block ) {
// are we in the backend?
$is_preview = is_admin() ? true : false;
$context = [];
// Store field values
$context['podcast_link'] = get_field( 'podcast_link' );
$context['is_preview'] = $is_preview;
// Render the block.
\Timber::render( get_template_directory() . '/templates/ACF-blocks/' . strtolower( $block['title'] ) . '/' . strtolower( $block['title'] ) . '.twig', $context );
}
Yes, interested in this as well.
Need to “transform” some default blocks to ACF blocks.
Going to hunt in the big internet now for more details and clues about this.