Getting content from modular?

Hi,

I have a strange behavior in my modular loop;

 {% for module in page.collection() %}
 {% if (module.header.unpublished is not defined or (module.header.unpublished == false)) %}
 {{ module.content }}
 {% endif %}
{% endfor %}

Somehow in my modular template, the content var is null?
only the var raw_content is available?

Best

You don’t need to use modular.header.unpublished because that’s not a valid setting, should just be modular.published which can be true or false.

woops, totally missed that one, thanks :slight_smile: