Hi,
I'm very new to Grav and looking for a way to extract page child element from page.collection array, alike getting images using a loop:
{% for p in page.collection %}
<li><a href={{ p.url }}>{{ p.title }}</a></li>
{% for image in p.media.images %}
<li><img src={{ image.url }} /></li>
{% endfor %}
but instead something alike this:
{% for p in page.collection %}
{% for child in p.content %}
<li>{{ child }}</li>
{% endfor %}
{% endfor %}
while expecting to get a list of content child elems like <p>..</p> and such.
Looking for Twig ways of doing this i found this that mentions Twig tweak module - would it be an option within Grav and if, how would one add a Twig module to Grav?
Any other solution would be just as welcome too ;)
Cheers