Skip to content

Instantly share code, notes, and snippets.

@mccombs
Last active August 18, 2021 02:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mccombs/5c27a7203125db3ef3914d6de7b98f31 to your computer and use it in GitHub Desktop.
Save mccombs/5c27a7203125db3ef3914d6de7b98f31 to your computer and use it in GitHub Desktop.
Craft Matrix Block Loop
{% for block in entry.pageBuilder %}
{% switch block.type %}
{% case block.type %}
{% include "pages/_parts/_" ~ block.type ~ ".twig" %}
{% endswitch %}
{% endfor %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment