Skip to content

Instantly share code, notes, and snippets.

@wbrowar
wbrowar / test-little-layout-field-twig.twig
Last active March 31, 2024 20:33
Test Little Layout fields in Twig
{# Set the hande of the little layout field you want to test. #}
{% set fieldHandle = 'layout' %}
{% set gqlQuery %}
{
entries(type: "homepage") {
... on homepage_Entry {
layout {
empty
gridColumnStart
gridColumnEnd