Skip to content

Commit

Permalink
Fix when field type is null
Browse files Browse the repository at this point in the history
  • Loading branch information
andmor- committed Jan 21, 2025
1 parent 1cafea2 commit 424fc34
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions templates/content/node--clarin-centre.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,16 @@
</header>
<div{{ attributes.addClass(node_classes) }} {{ show_toc ? 'id="tocscope" data-bs-spy="scroll" data-bs-target="#toc" tabindex="0"' }}>
<div class="d-none d-sm-block float-sm-end col-sm-3">
{% for key, child in content.field_type|filter((child, key) => key|first != '#') %}
{% if 'B' in child %}
<img class="pb-4" src="/themes/contrib/clarin_bootstrap/images/CLARIN-Logo-B-centre-2023-RGB-600ppi-transp.png">
{% if content.field_type %}
{% for key, child in content.field_type|filter((child, key) => key|first != '#') %}
{% if 'B' in child %}
<img class="pb-4" src="/themes/contrib/clarin_bootstrap/images/CLARIN-Logo-B-centre-2023-RGB-600ppi-transp.png">
{% endif %}
{% if 'K' in child %}
<img class="pb-4" src="/themes/contrib/clarin_bootstrap/images/CLARIN-Logo-K-centre-2023-RGB-600ppi-transp.png">
{% endif %}
{% endfor %}
{% endif %}
{% if 'K' in child %}
<img class="pb-4" src="/themes/contrib/clarin_bootstrap/images/CLARIN-Logo-K-centre-2023-RGB-600ppi-transp.png">
{% endif %}
{% endfor %}
</div>
{% if more_links %}
{{ content|without('field_see_also_links') }}
Expand Down

0 comments on commit 424fc34

Please sign in to comment.