Voog.com

Breadcrumbs

It is possible to generate breadcrumbs out of the structure. Be warned, it is messy:


{% menulink site.root_item %}

{% for level_1 in site.menuitems %}
{% if level_1.selected? %}
{% menulink level_1 %} |

{% if level_1.children? %}

{% for level_2 in level_1.children %}
{% if level_2.selected? %}
{% menulink level_2 %} |

{% if level_2.children? %}

{% for level_3 in level_2.children %}
{% if level_3.selected? %}
{% menulink level_3 %} |

{% if level_3.children? %}
{% for level_4 in level_3.children %}
{% if level_4.selected? %}
{% menulink level_4 %}
{% endif %}
{% endfor %}

{% endif %}
{% endif %}
{% endfor %}

{% endif %}
{% endif %}
{% endfor %}

{% endif %}
{% endif %}
{% endfor %}