{% set position = 1 %}
<ul class="breadcrumb" itemscope itemtype="https://schema.org/BreadcrumbList">
{# ----- Rubrique ------------------------------------------------------- #}
<li itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem">
<a href="{{ path('homepage') }}" itemscope itemtype="https://schema.org/Thing" itemprop="item" itemid=""><span itemprop="name">Accueil</span></a>
<meta itemprop="position" content="{{ position }}">
{% set position = position + 1 %}
</li>
<li class="separator"></li>
{# ----- organismes_cos ------------------------------------------------------- #}
{% if app.request.attributes.get('_route') == "organismes_cos" %}
<li itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem">
<span itemprop="name">Orientation Scolaire</span>
<meta itemprop="position" content="{{ position }}">
{% set position = position + 1 %}
</li>
{% endif %}
{# ----- organismes ------------------------------------------------------- #}
{% if app.request.attributes.get('_route') == "organisme" %}
<li itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem">
<span itemprop="name">Organismes</span>
<meta itemprop="position" content="{{ position }}">
{% set position = position + 1 %}
</li>
{% endif %}
{# ----- tous ------------------------------------------------------- #}
{% if app.request.attributes.get('_route') == "organismes_tous" %}
<li itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem">
<a href="/organisme" itemscope itemtype="https://schema.org/Thing" itemprop="item" itemid="/organisme"><span itemprop="name">Organismes</span></a>
<meta itemprop="position" content="{{ position }}">
{% set position = position + 1 %}
</li>
<li class="separator"></li>
{% if categorie %}
<li itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem">
<span itemprop="name">{{ categorie.libelle }}</span>
<meta itemprop="position" content="{{ position }}">
{% set position = position + 1 %}
</li>
{% endif %}
{% endif %}
{# ----- departement ------------------------------------------------------- #}
{% if app.request.attributes.get('_route') == "organismes_departement" %}
<li itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem">
<a href="/organisme" itemscope itemtype="https://schema.org/Thing" itemprop="item" itemid="/organisme"><span itemprop="name">Organismes</span></a>
<meta itemprop="position" content="{{ position }}">
{% set position = position + 1 %}
</li>
<li class="separator"></li>
{% if departement and 'BE' != departement.id %}
<li itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem">
<span itemprop="name">{{ departement.libelle }}</span>
<meta itemprop="position" content="{{ position }}">
{% set position = position + 1 %}
</li>
<li class="separator"></li>
{% endif %}
<li itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem">
<span itemprop="name">{{ categorie.libelle }}</span>
<meta itemprop="position" content="{{ position }}">
{% set position = position + 1 %}
</li>
{% endif %}
{# ----- Region ------------------------------------------------------- #}
{% if app.request.attributes.get('_route') == "organismes_region" %}
<li itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem">
<a href="/organisme" itemscope itemtype="https://schema.org/Thing" itemprop="item" itemid="/organisme"><span itemprop="name">Organismes</span></a>
<meta itemprop="position" content="{{ position }}">
{% set position = position + 1 %}
</li>
<li class="separator"></li>
{% if region and region | lieuLibelle != 'DEFAULT' %}
<li itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem">
<span itemprop="name">{{ region.libelle }}</span>
<meta itemprop="position" content="{{ position }}">
{% set position = position + 1 %}
</li>
<li class="separator"></li>
{% endif %}
<li itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem">
<span itemprop="name">{{ categorie.libelle }}</span>
<meta itemprop="position" content="{{ position }}">
{% set position = position + 1 %}
</li>
{% endif %}
</ul>