Last updated May 10, 2012. Created by esmerel on January 6, 2008.
Edited by dan3h, Francewhoa, bekasu, VM. Log in to edit this page.
When you have tools as useful as Views and Panels 3, you'll want to be able to use them together. To figure out how to use them together, let's create a new front page. Drupal's standard front page is useful, but we want something a little more. Please note that the screenshots are from Panels 2, but are similar to Panels 3.
- The first thing to do is make sure you have both Views and Panels 3 installed. You don't need all of the Panels modules, but it's easiest to enable them all at once.
- The next step is to create the views we'll need. The first one we need, the front page view, is a sample view that comes with Views. Let's enable that.
- Click Views (Site Building > Views). This brings you to the Views management page. On the bottom, under the 'Default Views' heading, find the 'frontpage' default view, and click 'Add'. Note that this screenshot is for Views 1; the Views 2 screen is different, but the frontpage view is still available.

- Click 'Save' at the bottom.
- Views 2 has an 'archive' view provided by default. Simply enable it.
- Click 'Save' at the bottom.
- Now, on to the panel. Before we can create the panel, you need to make sure Panels can "see" the content you've created. Click the 'Settings' tab at the top. (Administer > Site Building > Panels > Settings > Panel pages)
- Make sure everything under the 'New content behavior' heading is checked, especially the checkboxes next to 'New All Views' and 'New Views Panes
- Save.
- Now, to create the panel. Click Panel pages (Administer > Site Building > Panels > Panel Page).
- Set the Name to: front_page
- Set the Administrative title to: Home
- Set the Path to: front (Alternately, you can check the "Make this your home site page" checkbox.)

- Click 'Continue' at the bottom.
- Let's select the 'Flexible' layout, which allows us to create our own layout.

- Click Continue.
- The 'Layout settings' tab that you are brought to looks intimidating, but we're just making a couple changes. One of the benefits of selecting a flexible layout is being able to easily manipulate your panel to have any kind of configuration.
- Now, we want some custom dimensions for the panel, so we'll need to invoke the Layout designer. Click the "Show Layout designer" button.
- In the Region menu, select Region settings, and change the region title to "Left".
- Move up a 'box' to the row. In the Row menu, select "Add region to right". Title this region "Right".
- Use the slider bar to set the width to 80 on the left, 20 on the right.
- Click Finish.
- Now we need to add a menu item. Click the 'Menu' tab on the left.
- Click the checkbox next to 'Normal menu entry'.
- Set the Weight to: -10 and the Title to 'Home'.
- Click 'Update' at the bottom.
- Click the 'Content' tab on the left.
- Click the gear icon in the left pane.
- Under the 'Views' heading, find and select the 'frontpage' view we added earlier.
- Select the display you wish to use (try page if it's available.)
- Click Continue.
- Click the checkbox next to 'Link title to view'.
- Click the checkbox next to 'Provide a "more" link that links to the view'.
- Click 'Finish' at the bottom.
- Click the gear icon in the right pane.
- Under the 'Activity' heading, find and select 'Who's new'.
- Click 'Finish' at the bottom.
- Click the gear icon in the right pane.
- Under the 'Activity' heading, find and select 'Who's online'.
- Click 'Finish' at the bottom.
- Click the gear icon in the right pane.
- Under the 'Views' heading, find and select 'archive'. Use the block display.
- lick Continue
- Click the checkbox next to 'Link title to view'.
- Click 'Finish' at the bottom.
- Click the gear icon in the right pane.
- Under the 'Activity' heading, find and select 'Recent comments'.
- Click 'Finish' at the bottom.
- Click 'Save' at the bottom.

- Now, one last thing to do; we still have to make our front page the front page. Go to the 'Site information' menu (Administer > Site configuration > Site information).
- Set the Default front page to: front
- Click 'Save configuration' at the bottom.
- Click the 'Home' menu item we added on the menu.
- Voila, we have overriden the front page with a panel!

Comments
A few revisions
In working through this tutorial, I've noticed a few things that should be changed to make it more clear:
Currently step 1 says, "The first thing to do is make sure you have both Views and Panels 3 installed." I recommend revising this to be more precise about which modules are needed: "First, install the Views, Panels 3 and Chaos Tools projects, and make sure you have the necessary modules enabled. The necessary modules from the Views project are Views and Views UI. From the Chaos tools suite, you will need to enable the Chaos tools, Views content panes, and Page manager modules. From the Panels project, enable the Panels module. Also, make sure the Comment module from Drupal core is enabled."
Step 3 uses a screenshot from Views 1. Since Panels 3 is only compatible with Views 2, the screenshot should be updated. Also, the written instructions refer to interface details that pertain to Views 1 and not Views 2. Instead of "On the bottom, under the 'Default Views' heading, find the 'frontpage' default view, and click 'Add'," it should say, "Find the 'frontpage' default node view and click its 'Enable' link."
Step 11 should be reworded from "Set the Name to: front_page" to "Set the Machine name to front_page."
Step 17 is unnecessary. It says, "The 'Layout settings' tab that you are brought to looks intimidating, but we're just making a couple changes. One of the benefits of selecting a flexible layout is being able to easily manipulate your panel to have any kind of configuration." Actually, I didn't find the page that I was brought to intimidating. It's a very simple-looking form. Also, it isn't named "Layout settings." It's named "Basic settings » Choose layout » Panel content." In any case, step 17 isn't a "step." It doesn't tell the user to DO anything. It's simply commentary intended to reassure the reader and explain why the next few steps are necessary.
In step 18, "invole" should be changed to "involve."
Step 28 should be changed from "Click the gear icon in the left pane" to "Click the gear icon in the left pane and select 'Add content.'"
Step 38 should be changed from "Click the gear icon in the right pane" to "Click the gear icon in the right pane and select 'Add content.'"
Step 41 should be changed from "Click the gear icon in the right pane" to "Click the gear icon in the right pane and select 'Add content.'"
In step 43, "lick" should be changed to "Click."
Step 46 should be changed from "Click the gear icon in the right pane" to "Click the gear icon in the right pane and select 'Add content.'"
One final thought: I think this tutorial would work better as a video than as a written narrative.
----------------
IT consultant, web designer, writer and researcher
http://www.sheldonrampton.com/portfolio
~
>The necessary modules from the Views project are Views and Views UI. From the Chaos tools suite, you will need to enable the Chaos tools, Views content panes, and Page manager modules
Views content panes is what I need.
One small hiccup for me: after I got all working and preview showing up, when I visit my front page, it's blank. Turns out I have both the path set to '/front' and "This is your site home page" checked. After I uncheck "This is your site home page", it all worked.
Thanks!
-HdDigitalworks.com-
frontpage empty
Thanks for the great tutorial.. works as expected..
Prerna
Prerna.
Thank you
Thanks for adding that detail. I was going crazy because I didn't have Views Content Page enables on Chaos tools. Even a modicum of documentation goes a long way.
thanks, this was driving me
thanks, this was driving me crazy!
Thanks!
I should have read your review before starting the whole process. It took me a while to figure out that I should have the specific modules enabled even though I had the "main" ones already up and running. It could have saved me precious time. Thanks!
Not sure if this is any use
Not sure if this is any use but I noticed my home menu item only showed up as active when using "" instead of "front"
14.Click 'Continue' at the
14.Click 'Continue' at the bottom.
when i did this step,the page was always waitting.could't advance to the 15 step.why?anybody happen to this? any help would be appreciated!
Question
On step 11 where you say set Name to front_page, when I get to the panel pages which is:
/admin/build/pages/add --> this seems correct
Anyways when I get there it asks for an Administrative title and Machine name. Step 11 says the name. Is this Machine name?
Good tutorial
Very good tutorial, everything works as expected! thanks for that!
Frederick Fortin
Step 21: Use shift key when dragging the slider bar
For step 21 "Use the slider bar to set the width to 80 on the left, 20 on the right.", it would be helpful to note that using the shift key when dragging changes the value in whole units.
Missing slide bar
This step perplexes me, as I can't find anything remotely resembling a slide bar. Perhaps this has been removed?
28. Click the gear icon in the left pane.
There is no gear icon in the left pane.
Need a tutorial on "Selection
Need a tutorial on "Selection Rules". I Need to be able to select panels base on type and etc...
_____________________________________________
Coding is like a box of chocolates!...
openSUSE 12.1
NVIDIA GeForce 9500 GT
Intel(R) Core(TM)2 Quad CPU Q9550 @ 2.83GHz
on Step 8. u talk about the
on Step 8. u talk about the panels settings and checking the 'New All Views' and 'New Views Panes'.
i enabled all modules i need to do this, but there is no option called like taht. u might know how to fix it?
Facing the same problem
I've the same problem with the 6.x-3.5 version of Panels module and Drupal 6.16. In addition, at 29 step there is no "Views" heading at all!!.
I think it's an integration problem between Panels and Views modules. I can't see any view when adding content to a panel.
Does anybody have any clue about why this could be happening?. How can i integrate Views and Panels modules. I've enabled all the Panels, Views and Chaos Tools modules and i've followed this tutorial step by step but there is no "Views" heading at all when trying to add content at step 29.
Diseño Web, Desarrollo Web en Galicia - Karakana Factoría TIC
SOLVED !!
I reply to myself hoping this can help to tomtone or anybody else facing the same problem.
All the problems have gone when I cleaned up the Drupal cache pushing the "Clear cached data" button from "Administer > Site configuration > Performance".
Diseño Web, Desarrollo Web en Galicia - Karakana Factoría TIC
Thxs
this trick helps a lot, thanks.
You're welcome
you're welcome
Diseño Web, Desarrollo Web en Galicia - Karakana Factoría TIC
Modules and Panels
Hi all,
i really can't find much about how i can make my custom modules output their content through panels. How is this done?
As an example:
I wrote a small gallery module fitting our needs which has to spit out main content, sidebar content and additionally there should be default sidebar content which appears elsewhere on the website, too. the whole site is based on panels 3. how can i tell the module to use panels for output?
any help is appreciated
thx in advance
michael
Incorporating your content into a page panel
I am new at this myself, but so far this is what I have discovered (I'm using Drupal 6.14). If you have already created a panel-based page, and you want to add some of your existing content to it, here's how you go about it.
First you have to bring up your exisiting page ( Site building > Pages > List). Find your existing custom page and click on the Edit link. Go to Content (beneath Variants on the left). Locate the panel to which you want to add the content, then click on the gears icon for that panel. Then click the top menu item, which says, Add Content. I currently know three ways of adding pre-existing content:
Deleting your content from a panel
Since I was experimenting, I tried adding content in a number of ways to one of my page's panels. Once I was done, I wanted to delete the unwanted content. This ended up being a bit more difficult than it should have been because the menu item wasn't visible on my screen. But here's how you get around that. Go to the block, content pane or view that you want to eliminate. Click on the gear icon associated with that content (it should be on the upper right for that block). This causes a drop-down menu to appear. The Remove item on this menu isn't visible when I'm working on my laptop because the menu drops beneath the bottom of my screen. To access it, hover over the top of the menu, then use the Down arrow on your keyboard. This will get you to the bottom of the menu so that you can select Remove.
hi guys. please help about
hi guys. please help about installing or creating panels.
i followed the instructions i installed views, ctools and panels yesterday but im stucked from step 3.
there is no "Site Building > Views" i tried logging in as ADMIN then go to Administer > Site Building I cannot find Views. I can only see under Site Building these:
Blocks
Bulk Exporter
Menus
Mini panels
Modules
Pages
Panels
Themes
I double check views module is enabled and also ctools and panels.
please help.
thank you
Permissions
Hello wer0ckz,
You've probably figured it out already but in case you didn't have you checked to see if the permissions have been set correctly.
Administer > User Management > Permissions > Views Module
Problem to choose a layout for Panels Page
I followed the steps described on this site and several Drupal Panels video to setup the Panels module and other required modules (Views, Ctools) on Drupal 6.
When I started to create a new Panels page, after entering the Admin Name and Machine Name, when the "Choose Layout" screen is displayed (as step #15 above), instead of having multiple layouts for selection, I have different screen contents as below:
(1) The path is: Basic Setting >> Panel Setting >> Panel Content
However, on all the examples I saw, the path is always: Basic Setting >> Panel Content (there is no Panel Setting)
(2) Instead of having several layouts to choose from (as shown in step #15 on this site), I only got one layout (three columns Flexible layout) and also on my screen, it shows the following Drop-Down box:
Category: which has a drop-down box with four values "Builders", "Column 1", "Column 2" and "Column 3"
I have checked my Panels settings, which is correct (with multiple layouts enabled).
I wonder if I have done anything wrong that causes this problem, or if anyone has ever had same problem?
Thanks.
.
Recent versions have the layouts separated by type. Nothing wrong... Just a new feature.
Michelle
-----
Shell Multimedia - My sporadically updated mostly Drupal blog.
Just in case FYI
PS: If you go to "Builders" you will see the flexible layout that you may want to use.
Thanks.
Thanks.
Well almost works
I have all of Dupla Core 7.8 on except: Blog, Content Translation, Forum, Locale, Open ID, Poll and Taxonomy.
CTools is 7.x-1.0-rel1
Advance Help 7.x-1.0-beta1
Panels 7.x-3.0-alpha3
Views 7.x-3.0-rc1
When you add content in the left the View that was added early is not a usable selection. There is no View pane in add content.
Set "pane style" -- Where did you go??
Panels 3, Drupal 7:
After content has been added to a Panels Region, an option normally exists, to apply styling, such as using "system-block" styling, or "rounded-corners". This option is normally available from the drop-down menu accessed by clicking on the gear in the upper-right corner of a Content Pane.
However, on a particular installation I'm working with, I appear to have lost "Style", and can only access "Visibility Rules", and "Caching". "Styles" has disappeared, and my panel panes need to inherit the system-block theming.
How might somebody who is new to Panels resolve this?
Thanks for any help!
Only User 1 can administer styles
Problem solved! Log in as user1.
Otherwise, the patch is here:
http://drupal.org/node/1313642
Great article
I was searching for load more functionality and just solved with the help of this article.
Great Work.
Drupal 7
Hello, excellent tutorial!
However I haven't been able to achieve this on Drupal 7. Once I finish all the steps I see the original home page with my "new front page" inside it (as if I have posted new content to frontpage) :( anyone has a clue for this?
Thanks!!