Hi Aaron, I have created a View for a video gallery and added taxonomy filters to it plus ordering by Five Star rating having followed a video tutorial here http://www.lullabot.com/videocast/building-views-fivestar-and-votingapi. How do I create a tabbed view? So the first tab view would have the sorted by 5 star rating (highest rated), and the other tabs be Most Viewed, Recently added... Thanks. Tim
Tabbed views
I'm not completely sure I understand what you want to accomplish, but if you are trying to achieve the effect similar to that which I created in my Drupal tutorials section I have written a brief explanation at http://www.pixelclever.com/horizontal-tree-menus-pixel-clever-tutorials
Let me know if this is what you are talking about.
Tabs from within the View
The tutorial is very interesting and I see it coming in useful later for some other menus and navigation ideas I have. However what I was think more along the lines to combine the page views within the View set up, and whether it is possible to have tabs to click between the pages... I see there is a Tab option on the page menu, but I didn't get it to work yet... There is also a module called Quick Tabs that can combine Views in a Block and allows for choosing tab styles. Perhaps that is a good approach?
I used the Quick Tabs module
I used the Quick Tabs module to combine views which works good except when I want to use a term argument to the view in the url as the url is for the page containing the block. What would you suggest to show a tabbed page combing the views, so that the taxonomy term could be used. If I create a view that has an argument for taxonomy term then the view shows only the items for the viewurl/term ... but my tabbed page is to combine 3 or 4 views, so ideally it would be one view with tabs for each of the pages...
Quick Tabs and views
Quick Tabs with blocks would be a good approach for some situations, but you may have some difficulty getting the view to accept arguments from that context. Blocks in general don't take arguments easily.
If that option doesn't work my suggestion would be to create nodes with php format add those nodes to a quicktab and call the views directly from those nodes. When you call the view programmatically you can feed it the arguments manually. This should work as long as the arg() function is accessible from within quicktabs. I haven't tried to call it from quicktabs, but I can't see any reason it wouldn't work.
I have a tutorial on how to call views programmatically here http://www.pixelclever.com/how-programmatically-insert-a-view-drupal-6
Post new comment