Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I want to use views to add tabs to nodes and user accounts (anywhere really). I have been unsuccessful setting up views to work with wildcard URLs and contextual filters.
Is there a procedure to
1. add a view tab to a node?
2. add a view tab to a user?
thanks
Comments
Comment #2
jwkovell CreditAttribution: jwkovell commentedI've found views tabs to be very fragile when not used in a vanilla view. They're very dependent on URL structure to work.
For example. modules like taxonomy Views Integrator, will completely scrap tabs from an embedded view. Views with contextual variables or any variation that alters the URL may break your tabs or at least cause them to act unpredictably.
Have you tried getting around the issue by styling a menu into tabs? I found that the easiest solution.
I haven't tested this thoroughly, but the Block Tabs contrib module looks promising.
Comment #3
Syntapse CreditAttribution: Syntapse as a volunteer commented... i thought i was covering the most vanilla cases possible. really this doesn't work?
Comment #4
jwkovell CreditAttribution: jwkovell commentedUnfortunately, not in my experience.
This reduces what you can do quite a bit. I believe I've made views in the past where conditional filters were applied in the portion of the path that was shared between all tabs. I could not, however, have each tab pass a different conditional filter value.
But, I’m always happy to be proven wrong - particularly when it means doing something a better way.
I’ll be watching this thread with interest for any other solutions.
Comment #13
cilefen CreditAttribution: cilefen commentedI am closing this support request because there have been no recent comments.
The Drupal Core issue queue is not the ideal place for support requests. Consider other sources of support.