I have the following code:
<nav>
{% set show_onpage_menu = header.onpage_menu == true or header.onpage_menu is null %}
{% macro pageLinkName(text) %}{{ text|lower|replace({' ':'_'}) }}{% endmacro %}
{% for row in page.collection()|batch(4) %}
<ul class="nav_overlay nav-{{ loop.index }}">
{% for module in row %}
{% if not module.header.hidemenu %}
{% set current_module = (module.active or module.activeChild) ? 'active' : '' %}
<li class="{{ current_module }}">
<a href="#{{ _self.pageLinkName(module.menu) }}"><i class="fa fa-link"></i>{{ module.menu }}</a>
</li>
{% endif %}
{% endfor %}
</ul>
{% endfor %}
</nav>
The output is the links to the pages which do have the page.header : menu: <>. This is the expected result.
Now I like to add an image here. I do have in the page.header an image: <>.
---
title: Collectie
menu: Collectie
hidemenu: false
image: raambekleding.jpg
How can I get the image url and the image displayed in the navigation?
Thanks in advance,
Byrge