Carbon Fields block rendering with Timber / Twig #3035
jasalt
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Testing Carbon Fields which seems like a nice free and code-first alternative to ACF. Posted demo on using Timber for rendering here htmlburger/carbon-fields#1252.
Simply running
Timber::render
in CFset_render_callback
seems to work (full code in linked example) eg.Trying to understand if this is ideal however, eg. if
Timber::render
is the correct function (enqueues assets etc?), or would something more "partial rendering oriented" be more suitable (eg. work in progress stuff here #2944).I am using the block also in context of a theme made with Timber starter template which also calls
Timber::render
.Beta Was this translation helpful? Give feedback.
All reactions