Skip to content

Commit

Permalink
Add external link url for branch pages
Browse files Browse the repository at this point in the history
  • Loading branch information
pookmish committed Oct 16, 2024
1 parent cdb3a19 commit 41b91ee
Show file tree
Hide file tree
Showing 10 changed files with 84 additions and 24 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
adding:
third_party_settings:
layout_library:
enable: false
hidden:
sul_rel_links: true
sul_rel_links_heading: true
removing: { }
removing:
third_party_settings:
layout_library:
enable: true
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ adding:
sul_branch_locations: sul_branch_locations
sul_people: sul_people
sul_study_places: sul_study_places
sul_events: sul_events
sul_shared_tag_events: '0'
change_logs: '0'
stanford_courses: '0'
editoria11y_dismissals: '0'
Expand All @@ -13,8 +13,8 @@ adding:
policies: '0'
stanford_publications: '0'
samlauth_map: '0'
sul_shared_tag_events: '0'
taxonomy_term_pages: '0'
sul_events: sul_events
allowed_display_types:
graphql: '0'
handler_settings:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ adding:
stanford_saml:
enabled: false
layout:
sul_library_full_width:
enabled: false
sul_branch_side_nav:
enabled: false
sul_library_full_width:
enabled: false
sul_news_side_nav:
enabled: false
sul_side_nav:
Expand All @@ -42,6 +42,8 @@ adding:
tools:
enabled: false
node:
stanford_opportunity:
enabled: false
sul_library:
enabled: true
query_load_enabled: true
Expand All @@ -51,8 +53,6 @@ adding:
enabled: true
query_load_enabled: true
edges_enabled: true
stanford_opportunity:
enabled: false
paragraph:
collection:
enabled: true
Expand All @@ -63,6 +63,8 @@ adding:
layout:
enabled: true
query_load_enabled: true
stanford_layout:
enabled: false
sul_button:
enabled: true
query_load_enabled: true
Expand All @@ -75,30 +77,28 @@ adding:
sul_libguide:
enabled: true
query_load_enabled: true
stanford_layout:
enabled: false
taxonomy_term:
study_place_capacity:
enabled: true
query_load_enabled: true
sul_study_place_features:
enabled: true
query_load_enabled: true
sul_study_place_type:
enabled: true
query_load_enabled: true
cap_org_codes:
enabled: false
media_tags:
enabled: false
site_owner_orgs:
enabled: false
opportunity_sponsor:
enabled: false
opportunity_tag_filters:
enabled: false
opportunity_type:
enabled: false
site_owner_orgs:
enabled: false
study_place_capacity:
enabled: true
query_load_enabled: true
sul_study_place_features:
enabled: true
query_load_enabled: true
sul_study_place_type:
enabled: true
query_load_enabled: true
field_config:
media:
image:
Expand Down Expand Up @@ -146,6 +146,8 @@ adding:
enabled: true
sul_library__a11y:
enabled: true
sul_library__ext_url:
enabled: true
sul_library__type:
enabled: true
sul_rel_links:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ adding:
config:
- node.type.sul_library
- node.type.sul_study_place
- taxonomy.vocabulary.stanford_publication_topics
- taxonomy.vocabulary.study_place_capacity
- taxonomy.vocabulary.sul_study_place_features
- taxonomy.vocabulary.sul_study_place_type
module:
- build_hooks
permissions:
- 'access site in maintenance mode'
- 'choose layout for node stanford_news'
- 'choose layout for node sul_library'
- 'create sul_library content'
- 'create sul_study_place content'
Expand Down Expand Up @@ -52,8 +52,6 @@ adding:
- 'view sul_study_place revisions'
removing:
dependencies:
config:
- taxonomy.vocabulary.stanford_publication_topics
module:
- editoria11y
- pathauto
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ dependencies:
- field.field.node.sul_library.su_library__paragraphs
- field.field.node.sul_library.su_library__phone
- field.field.node.sul_library.sul_library__a11y
- field.field.node.sul_library.sul_library__ext_url
- field.field.node.sul_library.sul_library__type
- field.field.node.sul_library.sul_rel_links
- field.field.node.sul_library.sul_rel_links_heading
Expand Down Expand Up @@ -62,7 +63,7 @@ third_party_settings:
label: 'Layout Options'
region: content
parent_name: ''
weight: 18
weight: 16
format_type: details_sidebar
format_settings:
classes: ''
Expand Down Expand Up @@ -236,6 +237,14 @@ content:
allowed_formats:
hide_help: '0'
hide_guidelines: '0'
sul_library__ext_url:
type: link_default
weight: 15
region: content
settings:
placeholder_url: ''
placeholder_title: ''
third_party_settings: { }
sul_library__type:
type: options_select
weight: 2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,7 @@ hidden:
layout_selection: true
links: true
search_api_excerpt: true
sul_library__ext_url: true
sul_library__type: true
sul_rel_links: true
sul_rel_links_heading: true
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ hidden:
su_library__contact_img: true
su_library__hours: true
sul_library__a11y: true
sul_library__ext_url: true
sul_library__type: true
sul_rel_links: true
sul_rel_links_heading: true
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ hidden:
su_library__paragraphs: true
su_library__phone: true
sul_library__a11y: true
sul_library__ext_url: true
sul_library__type: true
sul_rel_links: true
sul_rel_links_heading: true
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
uuid: 23447cf1-27c3-4ae5-abd2-dd93006e3d09
langcode: en
status: true
dependencies:
config:
- field.storage.node.sul_library__ext_url
- node.type.sul_library
module:
- link
id: node.sul_library.sul_library__ext_url
field_name: sul_library__ext_url
entity_type: node
bundle: sul_library
label: 'External Page'
description: 'Provide an external URL that the branch page will redirect to. Leave this empty to display the branch page on the Library site.'
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings:
title: 0
link_type: 16
field_type: link
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
uuid: f7453797-fda8-4ff5-89b3-bf7bc12f729f
langcode: en
status: true
dependencies:
module:
- link
- node
id: node.sul_library__ext_url
field_name: sul_library__ext_url
entity_type: node
type: link
settings: { }
module: link
locked: false
cardinality: 1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false

0 comments on commit 41b91ee

Please sign in to comment.