Skip to content

Commit

Permalink
release(2.2.3): fix escape field_abstract in display search-result
Browse files Browse the repository at this point in the history
  • Loading branch information
arturu committed Apr 30, 2024
1 parent 8d3f98e commit 7ddd1df
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{% include '@skenografia_components/card/card-highlighting-search-results.html.twig' with {
card_variant: 'greendark',
title_prefix: 'Circolare ' ~ content.field_numero_circolare|render|striptags|trim ~ '-' ~ content.field_anno_scolastico|render|striptags|trim,
title_suffix: content.field_abstract|render|striptags|trim,
title_suffix: content.field_abstract,
content: content|without('field_numero_circolare', 'field_anno_scolastico', 'field_abstract')
} %}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{% include '@skenografia_components/card/card-highlighting-search-results.html.twig' with {
card_variant: 'redbrown',
title_prefix: 'Documento Prot. ' ~ content.field_protocollo|render|striptags|trim ~ ' del ' ~ content.field_data_inizio|render|striptags|trim ~ ' - ' ~ content.field_tipologia_documento|render|striptags|trim,
title_suffix: content.field_abstract|render|striptags|trim,
title_suffix: content.field_abstract,
content: content|without('field_protocollo', 'field_data_inizio', 'field_tipologia_documento','field_abstract')
} %}
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
{% include '@skenografia_components/card/card-highlighting-search-results.html.twig' with {
card_variant: 'greendark',
title_prefix: 'Evento ' ~ _dal_al|striptags|trim,
title_suffix: content.field_abstract|render|striptags|trim,
title_suffix: content.field_abstract,
content: content|without('field_data_inizio', 'field_data_fine','field_abstract')
} %}
{% endapply %}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{% include '@skenografia_components/card/card-highlighting-search-results.html.twig' with {
card_variant: 'greendark',
title_prefix: 'Finanziamento ' ~ content.field_tipologia_finanziamento|render|striptags|trim,
title_suffix: content.field_abstract|render|striptags|trim,
title_suffix: content.field_abstract,
content: content|without('field_tipologia_finanziamento', 'field_abstract')
} %}
2 changes: 1 addition & 1 deletion templates/node/node--search-result.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
{% include '@skenografia_components/card/card-highlighting-search-results.html.twig' with {
card_variant: node_variants_map[node.bundle|clean_id] ?? 'petrol',
title_prefix: drupal_config('node.type.' ~ node.bundle, 'name'),
title_suffix: content.field_abstract|render|striptags|trim,
title_suffix: content.field_abstract,
content: content|without('field_abstract')
} %}
{% endapply %}
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
{% include '@skenografia_components/card/card-highlighting-search-results.html.twig' with {
card_variant: 'bluelectric',
title_prefix: 'Progetto - ' ~ _dal_al|striptags|trim,
title_suffix: content.field_abstract|render|striptags|trim,
title_suffix: content.field_abstract,
content: content|without('field_data_inizio', 'field_data_fine','field_abstract')
} %}
{% endapply %}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{% include '@skenografia_components/card/card-highlighting-search-results.html.twig' with {
card_variant: 'purplelight',
title_prefix: 'Servizio per ' ~ content.field_tipologia_servizio|render|striptags|trim,
title_suffix: content.field_abstract|render|striptags|trim,
title_suffix: content.field_abstract,
content: content|without('field_tipologia_servizio', 'field_abstract')
} %}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{% include '@skenografia_components/card/card-highlighting-search-results.html.twig' with {
card_variant: 'redbrown',
title_prefix: 'Struttura organizzativa - ' ~ content.field_tipologia_struttura|render|striptags|trim,
title_suffix: content.field_abstract|render|striptags|trim,
title_suffix: content.field_abstract,
content: content|without('field_tipologia_struttura', 'field_abstract')
} %}

0 comments on commit 7ddd1df

Please sign in to comment.