Problem/Motivation
The menu_traditional view displays Table Menu and Stacked Menu are intended to allow the field_menu_group taxonomy term to be used as a contextual filter.
Proposed resolution
Add Taxonomy term Name as a contextual display setting default to Display all results, but remove the argument from the page displays.
Remaining tasks
Make the change and re-export the view.
Data model changes
views.view.menu_traditional changes
Issue fork bistro-3569294
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
- 3569294-add-taxonomy-term
changes, plain diff MR !3
- 3569294-fix
compare
Comments
Comment #3
nickolajAdded taxonomy term name contextual filter to the menu_traditional view using the field_menu_group relationship. When no argument is provided, displays all results.
Comment #5
mradcliffeThank you for working on this, @nickolaj.
I found an issue with the change and mad ea comment on the merge request. I updated the proposed resolution to reflect that.
Comment #7
nickolajUpdated the MR. The contextual filter argument is now explicitly removed from the page displays (page_stacked and page_table) by overriding arguments: {} and setting arguments: false in their defaults. This way the argument only applies to the default and embed displays, and the page displays are not affected.
Comment #9
mradcliffeThank you for coming back and changing things up.