From 7650a14d7936e685b406c01285a2c870f1c80dcd Mon Sep 17 00:00:00 2001 From: Alexander O'Neill Date: Tue, 8 Mar 2022 16:19:46 -0400 Subject: [PATCH] Add tempalte for ORCID field. --- ...r-orcid--author-with-affiliation.html.twig | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 templates/field--paragraph--field-contributor-orcid--author-with-affiliation.html.twig diff --git a/templates/field--paragraph--field-contributor-orcid--author-with-affiliation.html.twig b/templates/field--paragraph--field-contributor-orcid--author-with-affiliation.html.twig new file mode 100644 index 0000000..c26b9b1 --- /dev/null +++ b/templates/field--paragraph--field-contributor-orcid--author-with-affiliation.html.twig @@ -0,0 +1,31 @@ +{# +/** + * @file + * Theme override for the ORCID field. + * + * This is an override of field.html.twig for the node title field. See that + * template for documentation about its details and overrides. + * + * Available variables: + * - attributes: HTML attributes for the containing span element. + * - items: List of all the field items. Each item contains: + * - attributes: List of HTML attributes for each item. + * - content: The field item content. + * - entity_type: The entity type to which the field belongs. + * - field_name: The name of the field. + * - field_type: The type of the field. + * - label_display: The display settings for the label. + * + * @see field.html.twig + */ +#} +{% + set classes = [ + 'field', + 'field--name-' ~ field_name|clean_class, + 'field--type-' ~ field_type|clean_class, + 'field--label-' ~ label_display, + 'orcid-short-link', + ] +%} +{{ items }}