Skip to content

Commit

Permalink
D8Core-7476: Site Type (#807)
Browse files Browse the repository at this point in the history
* D8Core-7476: new field for site type

* D8Core-7476: putting stuff in the right spot
  • Loading branch information
buttonwillowsix authored Sep 16, 2024
1 parent 7c8d948 commit e15c682
Show file tree
Hide file tree
Showing 4 changed files with 103 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ dependencies:
- field.field.config_pages.stanford_basic_site_settings.su_site_owner_contact
- field.field.config_pages.stanford_basic_site_settings.su_site_renewal_due
- field.field.config_pages.stanford_basic_site_settings.su_site_tech_contact
- field.field.config_pages.stanford_basic_site_settings.su_site_type
- field.field.config_pages.stanford_basic_site_settings.su_site_url
module:
- change_labels
Expand Down Expand Up @@ -103,6 +104,7 @@ third_party_settings:
- su_site_tech_contact
- su_site_a11y_contact
- su_site_org
- su_site_type
label: 'Site Contacts'
region: content
parent_name: group_tabs
Expand Down Expand Up @@ -160,7 +162,7 @@ content:
third_party_settings: { }
su_hide_site_search:
type: boolean_checkbox
weight: 7
weight: 14
region: content
settings:
display_label: true
Expand Down Expand Up @@ -195,53 +197,53 @@ content:
third_party_settings: { }
su_site_algolia:
type: boolean_checkbox
weight: 9
weight: 16
region: content
settings:
display_label: true
third_party_settings: { }
su_site_algolia_file:
type: file_generic
weight: 15
weight: 22
region: content
settings:
progress_indicator: throbber
third_party_settings: { }
su_site_algolia_id:
type: string_textfield
weight: 11
weight: 18
region: content
settings:
size: 60
placeholder: ''
third_party_settings: { }
su_site_algolia_index:
type: string_textfield
weight: 14
weight: 21
region: content
settings:
size: 60
placeholder: ''
third_party_settings: { }
su_site_algolia_key:
type: string_textfield
weight: 12
weight: 19
region: content
settings:
size: 60
placeholder: ''
third_party_settings: { }
su_site_algolia_search:
type: string_textfield
weight: 13
weight: 20
region: content
settings:
size: 60
placeholder: ''
third_party_settings: { }
su_site_algolia_ui:
type: boolean_checkbox
weight: 10
weight: 17
region: content
settings:
display_label: true
Expand Down Expand Up @@ -308,7 +310,7 @@ content:
third_party_settings: { }
su_site_nobots:
type: boolean_checkbox
weight: 8
weight: 15
region: content
settings:
display_label: true
Expand Down Expand Up @@ -347,6 +349,12 @@ content:
placeholder: ''
size: 60
third_party_settings: { }
su_site_type:
type: options_select
weight: 8
region: content
settings: { }
third_party_settings: { }
su_site_url:
type: link_default
weight: 3
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ dependencies:
- field.field.config_pages.stanford_basic_site_settings.su_site_algolia_index
- field.field.config_pages.stanford_basic_site_settings.su_site_algolia_key
- field.field.config_pages.stanford_basic_site_settings.su_site_algolia_search
- field.field.config_pages.stanford_basic_site_settings.su_site_algolia_ui
- field.field.config_pages.stanford_basic_site_settings.su_site_dropdowns
- field.field.config_pages.stanford_basic_site_settings.su_site_email
- field.field.config_pages.stanford_basic_site_settings.su_site_home
Expand All @@ -28,11 +29,13 @@ dependencies:
- field.field.config_pages.stanford_basic_site_settings.su_site_owner_contact
- field.field.config_pages.stanford_basic_site_settings.su_site_renewal_due
- field.field.config_pages.stanford_basic_site_settings.su_site_tech_contact
- field.field.config_pages.stanford_basic_site_settings.su_site_type
- field.field.config_pages.stanford_basic_site_settings.su_site_url
module:
- datetime
- file
- link
- options
- text
id: config_pages.stanford_basic_site_settings.default
targetEntityType: config_pages
Expand Down Expand Up @@ -240,6 +243,13 @@ content:
third_party_settings: { }
weight: 16
region: content
su_site_type:
type: list_default
label: above
settings: { }
third_party_settings: { }
weight: 25
region: content
su_site_url:
type: link
label: above
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
uuid: 18918dc6-5dca-49ee-be52-a2d0c57ac172
langcode: en
status: true
dependencies:
config:
- config_pages.type.stanford_basic_site_settings
- field.storage.config_pages.su_site_type
module:
- options
id: config_pages.stanford_basic_site_settings.su_site_type
field_name: su_site_type
entity_type: config_pages
bundle: stanford_basic_site_settings
label: 'Site Type'
description: "What kind of site is this?\r\n"
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings: { }
field_type: list_string
55 changes: 55 additions & 0 deletions config/sync/field.storage.config_pages.su_site_type.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
uuid: aef7044a-cf89-41f3-b683-aff011270c5b
langcode: en
status: true
dependencies:
module:
- config_pages
- field_permissions
- options
third_party_settings:
field_permissions:
permission_type: custom
id: config_pages.su_site_type
field_name: su_site_type
entity_type: config_pages
type: list_string
settings:
allowed_values:
-
value: administrative
label: Administrative
-
value: academic
label: Academic
-
value: faculty
label: Faculty
-
value: research
label: Research
-
value: personal
label: Personal
-
value: community
label: Community
-
value: project
label: Project
-
value: course
label: Course
-
value: service_facility
label: Service/Facility
-
value: other
label: Other
allowed_values_function: ''
module: options
locked: false
cardinality: 1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false

0 comments on commit e15c682

Please sign in to comment.