Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

3+1 listing block only looks at one Resource Type #312

Open
3 tasks done
mariacha opened this issue Aug 28, 2024 · 1 comment
Open
3 tasks done

3+1 listing block only looks at one Resource Type #312

mariacha opened this issue Aug 28, 2024 · 1 comment
Assignees

Comments

@mariacha
Copy link
Collaborator

mariacha commented Aug 28, 2024

Describe the bug
When you add a 3+1 listing block you can choose to filter by multiple "Resource Type" reference fields, but only the first value is looked at.

Dev tasks

  • Write an update hook to do the following:
    • Update the content_snippets value at 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]'
    • Update the views.view.3_1.yml display.default.display_options.arguments.term_node_tid_depth.break_phrase value to true.
@mariacha mariacha self-assigned this Aug 28, 2024
@mariacha
Copy link
Collaborator Author

I tested this out on https://develop-wriflagship.pantheonsite.io/test-layout-builder-page -- there's a 3+1 block containing both Video and Project Update content, and although the Video is the second "Resource Type" being filtered by, it still shows results for that, particularly when you set it to be the first one in the list.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant