Not working with Views 6.2.7?

Patroclas - November 7, 2009 - 13:30
Project:Views Tabs
Version:6.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:needs review
Description

This plugin appears to be incompatible with Views 6.2.7? My views using this module are not working using tabs to display node content.

#1

ccrackerjack - November 9, 2009 - 12:53

I have the same problem, anyone know whats wrong?

#2

Patroclas - November 9, 2009 - 16:11

This is probably the reason (from Views 2.7 release notes) - but I don't have the ability to find out what the solution may be

Note: Views 2.7 contains some rearrangment of the order of field rendering. While I didn't see any errors or hear of any errors due to this, it may affect some external style plugins. If you have a problem with how fields render and are using a non Views-core style, please doublecheck with the 'table' or 'unformatted' styles and see if the problem persists. If it does not, it may well be the style provided by a module.

#3

chaloalvarezj - November 10, 2009 - 07:59

Subscribe

#4

jdwfly - November 10, 2009 - 16:08

I can confirm that the 2.7 update to views broke this module. Since this is a large part of one of the pages on our site I am going to try to patch this today.

#5

nedjo - November 10, 2009 - 16:16

Great, a patch would be very welcome.

#6

jdwfly - November 10, 2009 - 16:43

Posted #628810: Views Tabs broken with changes made to 2.7 in the Views issue queue to get some help on what they changed.

#7

jdwfly - November 10, 2009 - 20:01

I've got it fixed when you are using fields for the row style, but I still need to work on when you are using node.

Patch will be coming soon.

#8

jdwfly - November 10, 2009 - 22:40

Welcome the patch. If I could get someone else to verify that this fixes it for them (It works great for me) then I will go ahead and commit it.

AttachmentSize
views_tabs-626170.patch 4.28 KB

#9

jdwfly - November 10, 2009 - 22:40
Status:active» needs review

#10

nedjo - November 10, 2009 - 23:38

+++ views_tabs_plugin_style.inc 10 Nov 2009 22:37:54 -0000
@@ -1,13 +1,13 @@
-

Some extra white space introduced.

+++ views_tabs_plugin_style.inc 10 Nov 2009 22:37:54 -0000
@@ -1,13 +1,13 @@
-

Ditto.

+++ views_tabs_plugin_style.inc 10 Nov 2009 22:37:54 -0000
@@ -32,43 +32,62 @@ class views_tabs_plugin_style extends vi
+   

Ditto.

+++ views_tabs_plugin_style.inc 10 Nov 2009 22:37:54 -0000
@@ -32,43 +32,62 @@ class views_tabs_plugin_style extends vi
+            if (!$tabset[$title]) {
+              $tabset[$title] = array(
+              '#type' => 'tabpage',
+              '#content' => $content,
+              '#title' => $title,
+              '#attributes' => array('class' => 'tab-title'),
+            );

All but the first line need two spaces additional indent.

+++ views_tabs_plugin_style.inc 10 Nov 2009 22:37:54 -0000
@@ -32,43 +32,62 @@ class views_tabs_plugin_style extends vi
+    return tabs_render($tabset);

We don't actually need to use tabs_render anymore--we can use simple drupal_render().

#11

b0b - November 13, 2009 - 15:58

This patch doesn't seem to fix the problem for me, is this still a work in progress?

#12

jdwfly - November 13, 2009 - 18:06

Yes, I was waiting for someone else to comment on whether it works for them. Please describe in as much detail as possible what is not working.

#13

b0b - November 13, 2009 - 18:22

I set-up a test with two tabs, the first tab is missing the Title text but does provide a link.

The second tab is not generating anything for the tab, just the body.

The second tab body content is also placed below the first tab content and not hidden.

<div class="view-content">
  <div id="tabs-tabset" class="drupal-tabs js-hide">
    <ul class="tabs clear-block">
      <li class="tab-title tabs-tabset-1"><a href="#tabs-tabset-1"><span class="tab"></span></a></li>
    </ul>
    <div id="tabs-tabset-1" class="tabs-tabset">
      <h2 class="drupal-tabs-title js-hide"></h2>
      <div class="views-field-body">
        <div class="field-content">
          <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam eleifend est non nulla lacinia accumsan. Nulla facilisi. Suspendisse ac posuere augue. Sed ante risus, lobortis viverra dictum ac, feugiat sed est. Quisque in diam tincidunt nibh fermentum tristique. Nullam pulvinar est quis libero dictum mollis. Vivamus massa mauris, varius a porta eu, ultricies a elit. Proin mauris nunc, dignissim a vestibulum in, pharetra ac turpis. Integer placerat mattis magna ac fermentum. Maecenas aliquam lorem vel elit varius cursus.</p>
        </div>
      </div>
      <div class="views-field-body">
        <div class="field-content">
          <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam eleifend est non nulla lacinia accumsan. Nulla facilisi. Suspendisse ac posuere augue. Sed ante risus, lobortis viverra dictum ac, feugiat sed est. Quisque in diam tincidunt nibh fermentum tristique. Nullam pulvinar est quis libero dictum mollis. Vivamus massa mauris, varius a porta eu, ultricies a elit. Proin mauris nunc, dignissim a vestibulum in, pharetra ac turpis. Integer placerat mattis magna ac fermentum. Maecenas aliquam lorem vel elit varius cursus.</p>
        </div>
      </div>
    </div>
  </div>
</div>

#14

jdwfly - November 14, 2009 - 00:41

Hate to say this, but that doesn't help very much. Please export your view and post as an attachment so I can understand how you are making the view or possibly a link to the page this is happening on.

#15

b0b - November 14, 2009 - 01:39

Actually I got it to work... I set the view "Grouping field" and it works fine now.

http://precisionmedical.venus.klunkmillan.net/hospitals/test-tab-page

#16

jdwfly - November 18, 2009 - 21:21

Patch rerolled.

Any reasons why this should not be committed?

AttachmentSize
views_tabs-626170-1.patch 4.32 KB

#17

trupal218 - November 22, 2009 - 06:39

subscribing

#18

eotinfotech - November 29, 2009 - 01:35

subscribing

 
 

Drupal is a registered trademark of Dries Buytaert.