Closed (fixed)
Project:
Views Tabs
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
1 Oct 2009 at 15:42 UTC
Updated:
22 Dec 2009 at 18:30 UTC
Jump to comment: Most recent file
Comments
Comment #1
nedjoThanks, I'll have a look at this.
Comment #2
hefox commentedHere, some more alterations; I believe the views api has changed since the module was last updated, ie no $options['teaser']. Attached is a patch
These are based on template_preprocess_views_view_row_node in views/modules/node.views.inc
Comment #3
Scott Reynolds commentedInstead can we use the row plugin stuff. Looking at the code, I think you can just do
This way you can use whatever row style you have. So the node row style with all the settings, without having to use that patch. All row style options will be respected. Instead of just node, or field options.
I would also look int ot removing that class 'node-' . $row-nid.
Comment #4
hefox commentedDoes this method work for you?Could you provide a patch? I'm having trouble figuring out the how this would work.
or rather what is most confusing me is then render() function goes through each row; your example is only using one row, etc... I can't see how parent::render would work in this case since it returns all rows rendered, so the entire view would end up as one tab page, which isn't the current functionality of this module.
I do agree that should use some of the parent render's code to remove the problems, but how exactly I haven't looked into since still need to provide the tab title from node (title) and fields (some field) or whatever other plugin (would need to define how to get titles for each, which seems like it'll get complicated).
Comment #5
jdwfly commentedI went ahead and incorporated this code into my patch to fix the module for views 2.7.
#626170: Not working with Views 6.2.7?
Comment #6
jdwfly commentedGoing to mark as fixed since it was incorporated into the patch I just committed to HEAD.
#626170: Not working with Views 6.2.7?