diff --git a/templates/node/circolare/node--type-circolare--view-mode-search-result.html.twig b/templates/node/circolare/node--type-circolare--view-mode-search-result.html.twig index cf05638c..2c7466a2 100644 --- a/templates/node/circolare/node--type-circolare--view-mode-search-result.html.twig +++ b/templates/node/circolare/node--type-circolare--view-mode-search-result.html.twig @@ -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') } %} diff --git a/templates/node/documento/node--type-documento--view-mode-search-result.html.twig b/templates/node/documento/node--type-documento--view-mode-search-result.html.twig index 524e8e10..1610b313 100644 --- a/templates/node/documento/node--type-documento--view-mode-search-result.html.twig +++ b/templates/node/documento/node--type-documento--view-mode-search-result.html.twig @@ -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') } %} diff --git a/templates/node/evento/node--type-evento--view-mode-search-result.html.twig b/templates/node/evento/node--type-evento--view-mode-search-result.html.twig index 8194c274..7fb116d9 100644 --- a/templates/node/evento/node--type-evento--view-mode-search-result.html.twig +++ b/templates/node/evento/node--type-evento--view-mode-search-result.html.twig @@ -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 %} diff --git a/templates/node/finanziamento/node--type-finanziamento--view-mode-search-result.html.twig b/templates/node/finanziamento/node--type-finanziamento--view-mode-search-result.html.twig index 0c202fa0..e5731e21 100644 --- a/templates/node/finanziamento/node--type-finanziamento--view-mode-search-result.html.twig +++ b/templates/node/finanziamento/node--type-finanziamento--view-mode-search-result.html.twig @@ -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') } %} diff --git a/templates/node/node--search-result.html.twig b/templates/node/node--search-result.html.twig index 1c28a494..035b87fc 100644 --- a/templates/node/node--search-result.html.twig +++ b/templates/node/node--search-result.html.twig @@ -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 %} diff --git a/templates/node/progetto/node--type-progetto--view-mode-search-result.html.twig b/templates/node/progetto/node--type-progetto--view-mode-search-result.html.twig index e4251523..eb5e269b 100644 --- a/templates/node/progetto/node--type-progetto--view-mode-search-result.html.twig +++ b/templates/node/progetto/node--type-progetto--view-mode-search-result.html.twig @@ -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 %} diff --git a/templates/node/servizio/node--type-servizio--view-mode-search-result.html.twig b/templates/node/servizio/node--type-servizio--view-mode-search-result.html.twig index 3dd99fad..1c6a408c 100644 --- a/templates/node/servizio/node--type-servizio--view-mode-search-result.html.twig +++ b/templates/node/servizio/node--type-servizio--view-mode-search-result.html.twig @@ -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') } %} diff --git a/templates/node/struttura_organizzativa/node--type-struttura_organizzativa--view-mode-search-result.html.twig b/templates/node/struttura_organizzativa/node--type-struttura_organizzativa--view-mode-search-result.html.twig index ad162e64..126e0aed 100644 --- a/templates/node/struttura_organizzativa/node--type-struttura_organizzativa--view-mode-search-result.html.twig +++ b/templates/node/struttura_organizzativa/node--type-struttura_organizzativa--view-mode-search-result.html.twig @@ -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') } %}