I had a stink of a time doing this with Views, but I got it. Now I want to do it with Panels.
This post asks: (a) Is it possible? (b) How do I achieve it?
I have four panel pages, 2-colum stacked, with the following titles and URLs: Dinner Menu (/menu/dinner), Lunch Menu (/menu/lunch), Brunch Menu (/menu/brunch), and Happy Hour Menu (/menu/happyhour)
Rather than creating a sidebar navigation menu for navigating these panel pages, I would like to use the "Provide menu as tab" option, so that each panel page has these tabs at the top:
_| Dinner Menu |_| Lunch Menu |_| Brunch Menu |_| Happy Hour |_
With the default tab being the Dinner Menu
Anybody know the steps needed to achieve this if it is even possible?
Thanks!
Link
Comments
Comment #1
lunk rat commentedComment #2
lee20 commentedSubscribing... I would love to know the answer to both questions!
Comment #3
lee20 commentedI found the answer here: http://drupal.org/node/359208
Comment #4
merlinofchaos commentedComment #6
calefilm commentedSteps:
1) Create Panel Page
2) Create View
3 Create 2nd, 3rd, 4th panel page
STEP 1
In panels, Add custom page
BASIC
Title: ABC Home
path: abc (www.yoursite.com/abc)
MENU
type: No menu entry
CONTENT
title: ABC Home
add simple content if you'd like
UPDATE AND SAVE
STEP 2
Create a View
view name: abc_menu_tab (or whatever you prefer)
view description: default menu tab for ABC panel page
view tag: Menu Tab (ABC panel page)
view type: Node
SAVE
Style: Unformatted
Row style: Fields
note: The filters and fields you select are not very important. To keep things simple, open up a new window and quickly create a simple page node. Add a page description: "Welcome to ABC". Title this page: Welcome to ABC
Filter: Node: Title = Welcome to ABC
Field: Content: Page Description
SAVE
In this same View, add Page display
Name: ABC Home - No Menu
Path: abc/no_menu
No Menu
Add another page display
Name: ABC Home - Default Menu
Path: abc/home
Menu: menu default tab
Title: ABC Home
click Update
Parent Menu Item: Already exists
SAVE
STEP 3
Go back to Panels
Add Custom Page
BASIC
title: XYZ
machine: xyz
path: path: abc/xyz (www.yoursite.com/abc/xyz)
MENU
Type: Menu tab
Title: XYZ
CONTENT
Title: XYZ
add whatever content
UPDATE AND SAVE
You should now have two working tabs when you go to: yoursite.com/abc or yoursite.com/abc/xyz
You are now working solely inside Panels. So just add content like you would any other panel.
In order to move tabs around, download TAB TAMER module: http://drupal.org/project/tabtamer
Comment #7
calefilm commentedAnd this is how i created secondary tabs below my main tabs using panels: http://drupal.org/node/213054 (See Tabs)
luck
Comment #8
prokopton commentedSub.