I'm looking forward to using this module, as it appears to fit a key need of my site. However, after installing it and configuring it to appear for a particular node type, I see the interface to add tabs on the node edit page but am experiencing two problems:

1) The "Add a new tab" link on the node edit page does not do anything
2) When viewing the node, the tabs I added are not themed as tabs; they simply appear as ordered list items

I have jQuery UI installed and I'm using a fusion-based theme. I also have lots of contrib modules installed, so it may be a conflict with one of them. Does this module conflict with Quicktabs perhaps?

Comments

theamoeba’s picture

Hi spazfox,

I have setup a brand new Drupal site with the Fusion starter theme and I have setup a few Quicktabs. Everything is working perfectly. Perhaps you could have a look at the nodes running Node tabs with Firebug or similar to see if there are any errors/conflicts.

Is your site online, perhaps I could take a look?

spazfox’s picture

Thanks, theamoeba. I've set up a sample public page here: http://foxylearning.com/nodetabtest

Firebug turned up some warnings, but as a non-programmer I couldn't really make sense of them. Thanks for taking a look.

spazfox’s picture

Update: taking a look with Chrome's inspect element->console tool, this error turned up:

"Failed to load resource: the server responded with a status of 403 (Forbidden)" for http://foxylearning.com/node_tabs/max

theamoeba’s picture

Hey spazfox,

That is not a problem, that is only for the edit page where you will have the correct permissions unless you are doing something weird. I will sort that out in the next release :).

I have found out that your problem is related to jQuery UI 1.7. This module only works with jQuery 1.6 at the moment.

Is it strictly necessary that you use 1.7?

spazfox’s picture

Title: tabs not themed » make compatible with jQuery 1.7
Category: bug » feature

Ah, thanks. I'm not sure if jQuery 1.7 is required for my site or not (I suspect I probably used it because another module required it). If I can figure it out, I'll test again with 1.6. In the meanwhile, I'm changing this issue to a feature request and modifying the title accordingly. :)

theamoeba’s picture

Cool, I am busy working on a patch for this.

theamoeba’s picture

To make Node tabs work with jQuery UI 1.7 you must change js/node_tabs.js on line 5

from:

// Enable the tabs.
var $tabs = $("#node_tabs > ul#node_tabs_nav").tabs();

to:

// Enable the tabs.
var $tabs = $("#node_tabs").tabs();
theamoeba’s picture

Status: Active » Closed (fixed)

Fixed

austintnacious’s picture

Status: Closed (fixed) » Active

Hi, I was excited to find your module but even with the fix above it does not work for me.

jQuery UI	1.7.3
jQuery Update	1.5

This is a potentially great module and will be very popular if it can be made to work reliably.
Unfortunately, I'm not a programmer and cannot help in that regard.
All I can provide is encouragement and testing.

theamoeba’s picture

hi, sorry for only replying now. I have been a bit tied up. I am going to see what i can do to fix this issue. i will post a patch shortly.