{% 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> {# ----- JPOS ------------------------------------------------------- #} <li itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem"> <a href="{{ path('jpo-liste') }}" itemscope itemtype="https://schema.org/Thing" itemprop="item" itemid=""><span itemprop="name">Journées portes ouvertes</span></a> <meta itemprop="position" content="{{ position }}"> {% set position = position + 1 %} </li> <li class="separator"></li> {# ----- Lieu ----------------------------------------------------------- #} {% if app.request.attributes.get('_route') == "jpo-etab" %} {% set region = jpo.etablissement.region %} {% set departement = jpo.etablissement.departement | lieuDepartement %} {% set ville = jpo.etablissement.ville | lieuVille %} {% else %} {% set region = lieu | lieuRegion %} {% set departement = lieu | lieuDepartement %} {% set ville = lieu | lieuVille %} {% endif %} {% if app.request.attributes.get('_route') == "jpo-liste"%} {% if region and region | lieuLibelle != 'DEFAULT' %} <li itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem"> <a href="{{ pathBuilder.buildLocalisationPath("jpo-liste", region) }}" itemscope itemtype="https://schema.org/Place" itemprop="item" itemid="{{ pathBuilder.buildLocalisationPath( "jpo-liste",region) }}"> <span itemprop="name">{{ region | lieuLibelle }}</span> </a> <meta itemprop="position" content="{{ position }}"> {% set position = position + 1 %} </li> <li class="separator"></li> {% endif %} {% if departement and 'BE' != departement.id %} <li itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem"> <a href="{{ pathBuilder.buildLocalisationPath("jpo-liste", departement) }}" itemscope itemtype="https://schema.org/Place" itemprop="item" itemid="{{ pathBuilder.buildLocalisationPath("jpo-liste",departement) }}"> <span itemprop="name">{{ departement | lieuLibelle }}</span> </a> <meta itemprop="position" content="{{ position }}"> {% set position = position + 1 %} </li> <li class="separator"></li> {% endif %} {% if ville %} <li itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem"> <a href="{{ pathBuilder.buildLocalisationPath( "jpo-liste",ville) }}" itemscope itemtype="https://schema.org/Place" itemprop="item" itemid="{{ pathBuilder.buildLocalisationPath( "jpo-liste",ville) }}"> <span itemprop="name">{{ ville | lieuLibelle }}</span> </a> <meta itemprop="position" content="{{ position }}"> {% set position = position + 1 %} </li> <li class="separator"></li> {% endif %} {% else %} {% if region and region | lieuLibelle != 'DEFAULT' %} <li itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem"> <a href="{{currentURL}}/{{region.slug}}" itemscope itemtype="https://schema.org/Place" itemprop="item" itemid="{{currentURL}}/{{region.slug}}"> <span itemprop="name">{{ region | lieuLibelle }}</span> </a> <meta itemprop="position" content="{{ position }}"> {% set position = position + 1 %} </li> <li class="separator"></li> {% endif %} {% if departement and 'BE' != departement.id %} <li itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem"> <a href="{{currentURL}}/{{departement.slug}}" itemscope itemtype="https://schema.org/Place" itemprop="item" itemid="{{currentURL}}/{{departement.slug}}"> <span itemprop="name">{{ departement | lieuLibelle }}</span> </a> <meta itemprop="position" content="{{ position }}"> {% set position = position + 1 %} </li> <li class="separator"></li> {% endif %} {% if ville %} <li itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem"> <a href="{{currentURL}}/{{ville.slug}}" itemscope itemtype="https://schema.org/Place" itemprop="item" itemid="{{currentURL}}/{{ville.slug}}"> <span itemprop="name">{{ ville | lieuLibelle }}</span> </a> <meta itemprop="position" content="{{ position }}"> {% set position = position + 1 %} </li> <li class="separator"></li> {% endif %} {% endif %} <li itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem"> {% if jpo.etablissement.denomination is defined %} <span itemprop="name">{{ jpo.etablissement.denomination }}</span> {% else %} <span itemprop="name">Liste des journées portes ouvertes</span> {% endif %} <meta itemprop="position" content="{{ position }}"> {% set position = position + 1 %} </li></ul>