I have pages and blog pages functioning and would like to buildout couple of sections that take advantage of modular page content.
This is in the modular page:
title: Infinite Architecture
menu: Infinite Architecture
intro: A collection of paintings
content:
items: '@self.modular'
order:
by: default
custom:
- _intro
- _alpha-centuri
- _constellation
- _nebula
- _leaf_falling
This is in the modular.html.twig
{% extends 'partials/base.html.twig' %}
{# This is a template to build a modular page of art objects or design projects. #}
{% block body %}
{# Can we make this any simpler? #}
{% for module in page.collection() %}
{{ module.content }}
{% endfor %}
{% endblock %}
I end up with no errors, just a blank place where content should be. (Are there twig tools to see whether a collection is being returned, rejected etc.?
Many thanks!