I've installed tabs.module, but after two days I'm still having no success getting it to work. Though my admin/build/modules page shows it's installed, I'm not seeing any evidence that it works.

Shouldn't the associated JavaScript files be showing up in my HTML? They're not.

If I use the sample PHP code provided at tabs/docs/tabsexample.module.txt I get an error message. If I try to use the code at http://drupal.org/node/62998#comment-189583 I get nothing.

Something is obviously not right, but I don't know where to start looking for the problem. For all I know the module just doesn't work.

If you have successfully used tabs.module with Drupal 5.1, please tell me where to start tracking down what's wrong.

Comments

nevets’s picture

That post contains an example that should work. I am not an expert with the module but found that calling tabs_render() as per the example while using the theme function does not seem to work in Drupal 5

jimsmith’s picture

I can make this work. Thanks so much.

Now I need to figure out why the dozen or so searches I did on this site never revealed that page for me.

kvaes’s picture

- go to /node/add/page

- give the test page a title

- enter the following text

$form = array();

$form['example1'] = array(
'#type' => 'tabset',
);
$form['example1']['tab1'] = array(
'#type' => 'tabpage',
'#title' => t('One'),
'#content' => t('First tab content.'),
);
$form['example1']['tab2'] = array(
'#type' => 'tabpage',
'#title' => t('Two'),
'#content' => t('Second tab content.'),
);
$form['example1']['tab3'] = array(
'#type' => 'tabpage',
'#title' => t('Three'),
'#content' => t('Third tab content.'),
);

return tabs_render($form);

- select "php" output with the rendering options

- press "preview"

it should show 3 tabs... otherwise your javascript isn't enabled, or you haven't enabled the jstools & tabs module

drumdance’s picture

This doesn't work for me, and I definitely have jstools & tabs module enabled.

However, I get this Javascript error: "Drupal.behaviors has no properties"

---
The following sentence is true.
The preceding sentence is false.
http://www.AskDerekScruggs.com