diff --git a/config/sync/user.role.anonymous.yml b/config/sync/user.role.anonymous.yml index 13e949b05..d2cfb65b4 100644 --- a/config/sync/user.role.anonymous.yml +++ b/config/sync/user.role.anonymous.yml @@ -15,5 +15,7 @@ permissions: - 'access site-wide contact form' - 'access user profiles' - 'never autoplay videos' + - 'view field_official_portrait_link' - 'view media' + - 'view own field_official_portrait_link' - 'view published path file entity entities' diff --git a/config/sync/views.view.staff_official_portraits.yml b/config/sync/views.view.staff_official_portraits.yml index 12883d430..b8e43f191 100644 --- a/config/sync/views.view.staff_official_portraits.yml +++ b/config/sync/views.view.staff_official_portraits.yml @@ -459,9 +459,9 @@ display: empty_zero: false hide_alter_empty: true click_sort_column: uri - type: link + type: link_separate settings: - trim_length: 80 + trim_length: null url_only: false url_plain: false rel: '0' diff --git a/docroot/themes/custom/epa_intranet/templates/views-view-fields--staff_official_portraits.html.twig b/docroot/themes/custom/epa_intranet/templates/views-view-fields--staff_official_portraits.html.twig index e6dca091d..02b7a7702 100644 --- a/docroot/themes/custom/epa_intranet/templates/views-view-fields--staff_official_portraits.html.twig +++ b/docroot/themes/custom/epa_intranet/templates/views-view-fields--staff_official_portraits.html.twig @@ -46,7 +46,9 @@ {% endif %}
{{ fields.title.content }}
{{ fields.field_staff_position.content }}
-
Download
+
+ Download Portrait
+