Hello,

Perhaps this is simple as heck and I look in the wrong places. What would be the simplest way to make a view with a page display leave out all sidebars? I have created a page-"viewurl".tpl but ... Is there a simpler solution than to try to strip out all the side bars code from the original page.tpl?

Any hints would be appreciated!

Comments

aquariumtap’s picture

Hi Boletus, if there are no blocks loaded into the sidebars, then the sidebars won't display, and the content area will be the full grid width. You shouldn't have to make any alterations to the code.

Let me know if that makes sense...

sheena_d’s picture

Status: Active » Fixed

If you want to remove your sidebars from a particular page, the most sustainable and compatible way to do this is to utilize the "page specific visibility" settings on your blocks to hide all blocks in the sidebars on the page(s) where you do not want sidebars. Extending on that, the Context module is very handy for creating different block layouts throughout your site in situations where using individual blocks settings can become cumbersome because you have a lot of different blocks and/or types of pages that need different layouts.

If you were, for example, to create a special page template and strip out the sidebars, this would not really work. Fusion-based themes calculate the width of the main content area based on which sidebars have content in them. If you strip out the HTML and PHP that prints out the sidebars on your page template, Fusion is still going to see the sidebars as having content and assign the main content area the same width it would need to have to accommodate the sidebars.

Documentation on using Block visibility settings: http://drupal.org/node/21870
Context Module: http://www.drupal.org/project/context

Hope this helps!

Cheers,
Sheena

Automatically closed -- issue fixed for 2 weeks with no activity.