From 595e31ddc96b91adf5f3738506ec03347b47d208 Mon Sep 17 00:00:00 2001 From: jdearie Date: Mon, 2 Aug 2021 13:25:30 -0400 Subject: [PATCH] updated field permission and twig template --- config/sync/user.role.anonymous.yml | 2 ++ config/sync/views.view.staff_official_portraits.yml | 4 ++-- .../views-view-fields--staff_official_portraits.html.twig | 4 +++- 3 files changed, 7 insertions(+), 3 deletions(-) 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
+