I wanted to know how to get tabs (with or without using jstools) in pages. I could find any documentation for this. Can you please help me out

Comments

vm’s picture

the documentation is in the readme.txt file inside the tabs folder of the module

using JStools

you add

Developer usage
-----------------------------------------------------------------------------

Tabs are generated through forms-api-style arrays using two element types
defined in tabs.module: 'tabset' (a set of tabs) and 'tabpage' (a tab page on
a set of tabs).

Tabs can be returned as part of normal forms, or can be 'manually' rendered
through a call to the function tabs_render().

Sample usage:

  $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);
Testing
------------------------------------------------------------------------------
To test the module, you can download the DEV version and enable the
Tabs Example module, then navigate to /tabsexample.

_____________________________________________________________________________________________
give a person a fish and you feed them for a day but ... teach a person to fish and you feed them for a lifetime