Panels 2 FAQ

Last modified: January 21, 2008 - 04:16

Q: Who is Earl Miles?
A: Earl Miles, aka merlinofchaos, is the developer of Views and Panels.

Q: What is context?
A: Earl Miles has posted an answer to this question at his blog.

Q: What are mini panels?
A: Mini panels are, for lack of a better phrase, panels within panels. Because mini panels can be styled, this can make them very useful. Wim Leers has created an excellent demo.

Q: What are the plans for future Panels development?
A: Earl Miles is on record as saying that he is targeting for (very) future versions of Panels to be able to fully replace blocks and regions, by integrating Panels into Drupal's core theme layer.

Questions to be answered:

  • What is new in Panels 2?
  • What can be done with Panels 2?

Q: Why doesn't my old layout work when creating new panels?

chellman - January 10, 2008 - 00:58

A: In Panels 1, there was a key in your layout_panels_layout file called "content areas". In Panels 2, this is now called "panels".

So instead of this:

$items['threecol_25_50_25'] = array(
    'module' => 'panels',
    'title' => t('Three column 25/50/25'),
    'icon' => 'layouts/threecol_25_50_25.png',
    'theme' => 'panels_threecol_25_50_25',
    'css' => 'layouts/threecol_25_50_25.css',
    'content areas' => array('left' => t('Left side'), 'middle' => t('Middle column'), 'right' => t('Right side')),
  );

We have this (note the last line):

$items['threecol_25_50_25'] = array(
    'module' => 'panels',
    'title' => t('Three column 25/50/25'),
    'icon' => 'layouts/threecol_25_50_25.png',
    'theme' => 'panels_threecol_25_50_25',
    'css' => 'layouts/threecol_25_50_25.css',
    'panels' => array('left' => t('Left side'), 'middle' => t('Middle column'), 'right' => t('Right side')),
  );

 
 

Drupal is a registered trademark of Dries Buytaert.