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
<header class="header">
<div id="logo" class="blend webkit-fix">
<a href="#{{ self.1 }}">
<img src="{{ url('theme://img/logo.svg') }}" alt="PROMEDIAGROUP" title="PROMEDIAGROUP" class="webkit-fix">
</a>
</div>
<nav class="nav webkit-fix">
{% macro pageLinkName(text) %},{{ text|lower|replace({' ':''}) }},{% endmacro %}
{% for row in page.collection()|batch(2) %}
<ul>
{% for key, module in row %}
<li>
<a href="#{{ _self.pageLinkName(module.menu) }}" data-number="{{ key }}">{{ module }}</a>
</li>
{% endfor %}
</ul>
{% endfor %}
</nav> <!-- primary-nav -->
<div class="nav-trigger webkit-fix"><span></span></div>
</header>