Hello all,
I want to give a specific Image the title from a module forthe link hash and give the navigation items the right name. In my navigation i looped through my page.collection()
and got the name for every module. So how can I get the title and not the module name and get the first module title for my image?
—twig
{% macro pageLinkName(text) %},{{ text|lower|replace({' ':'_'}) }},{% endmacro %} {% for row in page.collection()|batch(2) %}-
{% for key, module in row %}
- {{ module }} {% endfor %}
---