Skip to content

Commit

Permalink
Issue #312 fixing resource types on 3+1 blocks.
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkshout-ci-bot committed Aug 28, 2024
1 parent 1194f8c commit c4ab9be
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
2 changes: 1 addition & 1 deletion modules/wri_31block/config/install/views.view.3_1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ display:
fail: 'not found'
validate_options: { }
depth: 3
break_phrase: false
break_phrase: true
use_taxonomy_term_path: false
entity_type: node
plugin_id: taxonomy_index_tid_depth
Expand Down
14 changes: 14 additions & 0 deletions modules/wri_31block/wri_31block.install
Original file line number Diff line number Diff line change
Expand Up @@ -75,3 +75,17 @@ function wri_31block_update_9501() {
throw new UpdateException('This should be run after importing the field_listing to the listing_block block type.');
}
}


/**
* Updates Listing arguments to allow multiple resource types.
*/
function wri_31block_update_9502() {
// Import the updated value:
\Drupal::service('distro_helper.updates')->updateConfig('views.view.3_1', [
'display#default#display_options#arguments#term_node_tid_depth#break_phrase',
], 'wri_31block');
\Drupal::service('distro_helper.updates')->updateConfig('content_snippets.content', [
'snippets#3_1_view_arguments',
], 'wri_listing_block');
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ snippets:
gtm_id:
the_content_listing_view_arguments: '[block_content:field_content_types:array:target_id:join:+]/[block_content:field_featured:array:target_id:join:+]/[block_content:field_filter_by_region:target_id]/[block_content:field_filter_by_resource_type:array:target_id:join:+]/[block_content:field_tag:target_id]/[block_content:field_filter_by_tag:target_id]/[block_content:field_filter_by_project:target_id]'
narrative_taxonomy_view_arguments: '[block_content:field_custom_results:array:target_id:join:+]/[block_content:field_filter_by_region:target_id]/[block_content:field_tag:target_id]'
3_1_view_arguments: '[block_content:field_custom_results:array:target_id:join:+]/[block_content:field_content_types:array:target_id:join:+]/[block_content:field_filter_by_region:target_id]/[block_content:field_filter_by_resource_type:target_id]/[block_content:field_tag:target_id]/[block_content:field_filter_by_tag:target_id]'
3_1_view_arguments: '[block_content:field_custom_results:array:target_id:join:+]/[block_content:field_content_types:array:target_id:join:+]/[block_content:field_filter_by_region:target_id]/[block_content:field_filter_by_resource_type:array:target_id:join:+]/[block_content:field_tag:target_id]/[block_content:field_filter_by_tag:target_id]'
osano_id: ''
osano_params: ''
orto_registration_url: 'https://ortto.wri.org/zoom/import-participants/?webinarId=[node:field_zoom_webinar_id]&webinarName=[node:title]&webinarDate=[node:field_date_time:format:default]'

0 comments on commit c4ab9be

Please sign in to comment.