- Contextual Help in Module Development
- Google's Friend Connect vs. Your Privacy
- The Top Modules On My List
- Tax Free Yachts from the California Republican Party
- Search Sprint Conclusion
- DrupalCamp Vancouver Success
- DrupalCamp Vancouver 2008: Information Architecture Slide Deck
- DrupalCamp Vancouver 2008: Panels 2 Slide Deck
- Search Sprint Day One
- ACLU's "Freedom Files" Season 2
Dropping sidebars from Panels pages with panels 1 module
Submitted by GregoryHeller on August 21, 2007 - 4:11pm.
A few people at the Seattle DUG have asked me how to drop sidebars from panels generated pages. With Panels 2, this is made easy, just a configuration setting. However if you are using the original panels module, you'll need to add a little snippet of code to your theme's template.php file:
// Hide sidebars on panel pages
if (function_exists('panels_is_panels_page') && $vars['panels_page'] = panels_is_panels_page()) {
$vars['sidebar_left'] = '';
$vars['sidebar_right'] = '';
$body_classes[] = 'panels_page';
}- GregoryHeller's blog
- Login or register to post comments
- Delicious
- Digg
- Technorati





