How to attach a view display switch to a view? I am wondering how I can attach a switch/ link from one view display to another view display within the same view. I can only think of messing around in the template files and hardcoding this navigation.




What is the best solution/ is there a better solution for that? 

Update: both displays shall have a own url this for caching and possibility to link to a specific display.

myview/(default: display-table)
myview/display-table
myview/display-list
Display Suite

A possible solution to this is probably utilizing display suite. 

You could trigger a link using display suite &amp; display suite extras to open different view mode. The drawback to this is that the user would have to load a different page. 

Quicktabs

Another solution would be to load the two views as blocks and use quicktabs to display the two views in that tab format you require. The drawback to this solution is that you have two views loaded.

Views Header

At the top of your views, just add a header anchor to your other views page. This solution is best if you just have one view where this output is being displayed. Otherwise, it would be difficult to maintain duplicate views.