Muut
1
Hi. I have a problem.
code like this (in module page _name):
{{ page.summary }}
{% for image in page.media.images %}
…
{% endfor %}
{{ page.content|slice(page.summary|length) }}
But page summary not truncated Not Truncating at ===
.
site.yaml:
size: 1000000
delimiter: ‘===’
The cache is cleared.
Muut
2
Antimatter has in modular.html.twig
{% block content %}
{{ page.content }}
{% for module in page.collection() %}
<div id="{{ _self.pageLinkName(module.menu) }}"></div>
{{ module.content }}
{% endfor %}
{% endblock %}
in this case the whole module content is outputted. using {{module.summary}} would instead just show the summary.
Check if your modular twig is the same.
Muut
3
ep. but {{ module.summary }} empty(
Muut
4
Is this related to this issue: https://github.com/getgrav/grav/issues/991
I was not able to replicate, but could be related to your modular template that you use to render.
Muut
5
i.e. bring in different div’s summary and content in the modular page do not work?