I have to views, that shows as a page, i want the second to be a tab of the first one, how do I do it?

Comments

tylor’s picture

This tripped me up a bit at first too. Make sure you check both 'Provide Menu' and 'Provide Menu as Tab' in Page->Menu in the views' settings.

najibx’s picture

I wanted to put all the tab below the title, rather than all next to title, or only the default (the rest including the default is listed below title)

I played around with all these setting ..

For Parent Menu Item Type

Tab
Normal Menu Item
Already exit (don't create)

This is more theme configuration rather than this setting?

-najibx -
Drupal developer in Malaysia

tylor’s picture

Ya this would be in the theme layer.

najibx’s picture

create panel
then you can insert your regular views

for tabs ....use
panel mini, or tabbed_block

(generally each tab are represented in block)

-najibx -
Drupal developer in Malaysia

debrajn’s picture

I have made tab menu after a long day. I think it will help all the drupal user.
This tab menu is for drupal 6.x

for example

$items['dev_payment'] = array(
'title' => t('Manage site Account'),
'page callback' => 'drupal_get_form',
'page arguments' => array('dev_payment_admin_settings_form'),
'access arguments' => array('administer site configuration'),
'description' => 'Change administrative settings for hiring fund.',
);

$items['dev_payment/list'] = array(
'title' => 'Manage site',
'type' => MENU_DEFAULT_LOCAL_TASK,
'weight' => -10,
);

$items['dev_payment/account_balance'] = array(
'title' => 'Account Statement',
'page callback' => 'siteowner_account_balance',
'access arguments' => array('administer site configuration'),
'file' => 'askant_payment.admin.inc',
'type' => MENU_LOCAL_TASK,
'description' => 'View all transaction made against writer regarding Jobs.',
);

$items['dev_payment/deposite_balance'] = array(
'title' => 'Deposited account statement',
'page callback' => 'siteowner_deposite_account_balance',
'access arguments' => array('administer site configuration'),
'type' => MENU_LOCAL_TASK,
'file' => 'dev_payment_payment.admin.inc',
);

For user account
You can change the path
from "dev_payment/account_balance" to "user/dev_payment/account_balance" means before the path starting you have to use 'user/'

Cheers

Raf’s picture

http://flowplayer.org/tools/tabs/index.html

That's a JQuery plugin called Tabs Done Right. It's eeeaaasy to use, and provides tabs that're compatible with all browsers. Works like a charm as well.

korgx’s picture

Helped me a lot!

alloyu’s picture

want the second to be a tab of the first one,just follow the guy called debrajn,he is right.
you may find http://www.uggsoutletuk-online.com helpful this winter.