Skip to content

Commit

Permalink
Render resource families as with TdC
Browse files Browse the repository at this point in the history
  • Loading branch information
andmor- committed Oct 2, 2024
1 parent 2dfbfd8 commit 35b6b51
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 3 deletions.
10 changes: 10 additions & 0 deletions scss/modules/field.scss
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,16 @@
.field.field--name-field-consortium-url {
display: inline-block;
}

.resource_families_fields .field.field--name-field-resource-families {
.field__item {
display: inline list-item;

&::after {
content: unset;
}
}
}
}

.node--type-clarin-centre {
Expand Down
16 changes: 13 additions & 3 deletions templates/content/node--k-centre-profile--search-result.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -108,11 +108,21 @@
<em>{{ info }}</em>
{% endif %}
{% if more_links %}
{{ content|without('field_see_also_links', 'field_k_centre_full_name', 'field_tour_de_clarin_intro', 'field_tour_de_clarin_interview') }}
{{ content|without('field_see_also_links', 'field_k_centre_full_name', 'field_tour_de_clarin_intro', 'field_tour_de_clarin_interview', 'field_resource_families') }}
{% else %}
{{ content|without('field_k_centre_full_name', 'field_tour_de_clarin_intro', 'field_tour_de_clarin_interview') }}
{{ content|without('field_k_centre_full_name', 'field_tour_de_clarin_intro', 'field_tour_de_clarin_interview', 'field_resource_families') }}
{% endif %}
{% if content.field_tour_de_clarin_intro or content.field_tour_de_clarin_interview %}
{% if content.field_resource_families.0 %}
<div class="resource_families_fields row">
<div class="col-3 p-3 m-auto">
<img src="sites/default/files/resource-families-hires.jpg">
</div>
<div class="col-9 pt-3 m-auto">
<div class="field--label-inline">{{ content.field_resource_families }}</div>
</div>
</div>
{% endif %}
{% if content.field_tour_de_clarin_intro.0 or content.field_tour_de_clarin_interview.0 %}
<div class="tour_de_clarin_fields row">
<div class="col-3 p-0 m-auto">
<img src="sites/default/files/media/news/TourdeClarin-v1.png">
Expand Down

0 comments on commit 35b6b51

Please sign in to comment.