I am working on a structure for a project which will have hundreds of view pages that I would like to display in parts using 10 +/- menu tabs. I have been able to create a test view (/section/chapter) using specific path terms, and a separate tabs view (/section/chapter/tabs) with pages to express each tab on the test view. When I go to the test view page (/section/chapter) the various tabs are shown. However, when I add contexual filters to the tab view and change the page paths to use %1 (/section/%1/TabPageName), the tabs will no longer show on the test page(/section/chapter). The filters are using a taxonomy term (I have configured the validator for terms as ID with dashes for spaces). I am confident that the filter is correctly configured because the correct results show up in the 'Preview'. My objective of providing a single view to handle the tabs seems like a 'cleaner' way to handle the requirement, but I am unable to figure out why it doesn't work. I fear that providing separate tab definition pages in every view will make any future modifications much harder and performance slower.
Has anyone had this problem or successfully used contexual filters with menu tabs?
A clarification please: I am not certain I understand something correctly regarding contextual filters. I am assuming that the filter is extracting the %1 value from the URL using the pattern identified in the path for the view page. So in my example above, the filter is looking at the view page path /section/%1/TabPageName and extracting the %1 variable as the 'chapter' value from the URL. The contexual filter then limits the view to only the specific chapter.
Comments
Comment #1
kars-t commentedHi
I am closing this issue to clean up the issue queue. Feel free to reopen the issue if there is new information and the problem still resides. If not please make sure you close your issues that you don't need any more.
Maybe you can get support from the local user group. Please take a look at this list at groups.drupal.org.
Comment #3
nicxvan commentedThis issue still exists in the current version of Views.
If you add a % to the path of a display to catch the contextual filter that is on a menu tab the tab disappears.
The contextual filter itself doesn't break it because you can have a contextual filter on a tab and it will show up.
Comment #4
danielphenry commentedI've successfully created a menu tab using the path user/%/history with a contextual filter for the user id. It shows up as the user. I did have trouble with this at first because I check the the checkbox in the menu tab settings that said "Display in contextual links". But after checking that the tabs worked fine.
I'll have to say this is not an issue. Perhaps you have a similar conflicting setting on your system...
Comment #5
danielphenry commentedMoving to needs more info as It's demonstrated to work as described in the issue.
Comment #6
jkingsnorth commentedThere has been no response for a while so I'm going to close the issue. Please do reopen it if someone can reproduce the issue in the latest version.
Comment #7
mkolar commentedThis is probably because you are trying to pass contextual filter value from url part... I switched my contextual filter to get from url query instead of path so it will not break tabs.