Skip to content
This repository has been archived by the owner on Sep 30, 2024. It is now read-only.

[SDPAP-8873]added department field #70

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ dependencies:
- field.field.node.tide_search_listing.field_listing_results_per_page
- field.field.node.tide_search_listing.field_listing_user_filters
- field.field.node.tide_search_listing.field_metatags
- field.field.node.tide_search_listing.field_node_department
- field.field.node.tide_search_listing.field_node_primary_site
- field.field.node.tide_search_listing.field_node_site
- field.field.node.tide_search_listing.field_results_component
Expand Down Expand Up @@ -144,7 +145,7 @@ mode: default
content:
created:
type: datetime_timestamp
weight: 14
weight: 13
region: content
settings: { }
third_party_settings: { }
Expand Down Expand Up @@ -306,22 +307,32 @@ content:
third_party_settings: { }
field_metatags:
type: metatag_firehose
weight: 22
weight: 21
region: content
settings:
sidebar: true
use_details: true
third_party_settings: { }
field_node_department:
type: select2_entity_reference
weight: 50
region: content
settings:
width: 100%
autocomplete: false
match_operator: CONTAINS
match_limit: 10
third_party_settings: { }
field_node_primary_site:
type: options_buttons
weight: 24
weight: 23
region: content
settings: { }
third_party_settings: { }
field_name: field_node_primary_site
field_node_site:
type: options_buttons
weight: 23
weight: 22
region: content
settings: { }
third_party_settings: { }
Expand Down Expand Up @@ -363,14 +374,14 @@ content:
third_party_settings: { }
field_show_content_rating:
type: boolean_checkbox
weight: 12
weight: 11
region: content
settings:
display_label: true
third_party_settings: { }
field_tags:
type: entity_reference_autocomplete
weight: 21
weight: 20
region: content
settings:
match_operator: CONTAINS
Expand All @@ -380,7 +391,7 @@ content:
third_party_settings: { }
field_topic:
type: entity_reference_autocomplete
weight: 10
weight: 9
region: content
settings:
match_operator: CONTAINS
Expand All @@ -390,38 +401,38 @@ content:
third_party_settings: { }
moderation_state:
type: moderation_state_default
weight: 20
weight: 19
region: content
settings: { }
third_party_settings: { }
path:
type: path
weight: 16
weight: 15
region: content
settings: { }
third_party_settings: { }
promote:
type: boolean_checkbox
weight: 11
weight: 10
region: content
settings:
display_label: true
third_party_settings: { }
simple_sitemap:
weight: 19
weight: 18
region: content
settings: { }
third_party_settings: { }
status:
type: boolean_checkbox
weight: 18
weight: 17
region: content
settings:
display_label: true
third_party_settings: { }
sticky:
type: boolean_checkbox
weight: 15
weight: 14
region: content
settings:
display_label: true
Expand All @@ -436,7 +447,7 @@ content:
third_party_settings: { }
uid:
type: entity_reference_autocomplete
weight: 13
weight: 12
region: content
settings:
match_operator: CONTAINS
Expand All @@ -445,7 +456,7 @@ content:
placeholder: ''
third_party_settings: { }
url_redirects:
weight: 17
weight: 16
region: content
settings: { }
third_party_settings: { }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ dependencies:
- field.field.node.tide_search_listing.field_listing_results_per_page
- field.field.node.tide_search_listing.field_listing_user_filters
- field.field.node.tide_search_listing.field_metatags
- field.field.node.tide_search_listing.field_node_department
- field.field.node.tide_search_listing.field_node_primary_site
- field.field.node.tide_search_listing.field_node_site
- field.field.node.tide_search_listing.field_results_component
Expand Down Expand Up @@ -127,6 +128,14 @@ content:
third_party_settings: { }
weight: 107
region: content
field_node_department:
type: entity_reference_label
label: above
settings:
link: true
third_party_settings: { }
weight: 121
region: content
field_results_component:
type: entity_reference_label
label: above
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ dependencies:
- field.field.node.tide_search_listing.field_listing_results_per_page
- field.field.node.tide_search_listing.field_listing_user_filters
- field.field.node.tide_search_listing.field_metatags
- field.field.node.tide_search_listing.field_node_department
- field.field.node.tide_search_listing.field_node_primary_site
- field.field.node.tide_search_listing.field_node_site
- field.field.node.tide_search_listing.field_results_component
Expand Down Expand Up @@ -61,6 +62,7 @@ hidden:
field_listing_results_per_page: true
field_listing_user_filters: true
field_metatags: true
field_node_department: true
field_node_primary_site: true
field_node_site: true
field_results_component: true
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
langcode: en
status: true
dependencies:
config:
- field.storage.node.field_node_department
- node.type.tide_search_listing
- taxonomy.vocabulary.department
id: node.tide_search_listing.field_node_department
field_name: field_node_department
entity_type: node
bundle: tide_search_listing
label: Department
description: 'The Department/agency field is mandatory. Start typing your department name and click or down-arrow and Enter to select the correct one.'
required: true
translatable: false
default_value: { }
default_value_callback: ''
settings:
handler: 'default:taxonomy_term'
handler_settings:
target_bundles:
department: department
sort:
field: name
direction: asc
auto_create: false
auto_create_bundle: ''
field_type: entity_reference
23 changes: 23 additions & 0 deletions config/optional/field.storage.node.field_node_department.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
langcode: en
status: true
dependencies:
module:
- field_permissions
- node
- taxonomy
third_party_settings:
field_permissions:
permission_type: public
id: node.field_node_department
field_name: field_node_department
entity_type: node
type: entity_reference
settings:
target_type: taxonomy_term
module: core
locked: false
cardinality: 1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false
Loading