Hello,
I'd like to know if this is possible and how to accomplish it. I have a theme I created with Artisteer 2. I want to have the sidebar blocks and content go away for certain menu items to give the content more room to display. This is useful in displaying content that fills a wide area horizontally. How would this be accomplished?
Thanks,
Bruce

Comments

nevets’s picture

I do not know if artisteer generated themes support this. Themes that do have two general characteristics, they only show the sidebar if it has content/blocks and the main/content column width adjusts based on the presence/absence of the sidebars.

To make a sidebar empty you configure the blocks visibility so they are hidden on certain pages (or only show for certain pages). You can see if the theme responds by hiding all the blocks for some path and see what happens.

roxy317’s picture

the configuration is in the blocks visibility.

Roxy

brucewhealtonjr’s picture

So, somehow you could tell the blocks to not show up when certain menu items are clicked on? That's how one navigates a site. And so, when someone selects a certain menu item, you might want to then have all the left and right blocks go away. I'm just not 100% clear on how to do this.
Thanks,
Bruce

roxy317’s picture

configurations at admin/build/blocks you can have blocks display only on certain pages, or not display only on certain pages. You need to decide which variable fits your needs and then put the paths of the pages in the configuration block.

Roxy

brucewhealtonjr’s picture

Yes, I found that in the block configuration area. I was thinking that was just the kind of thing that I'd like to see available and indeed it is a feature.
What was curious was that the one block I put in the right column is not displaying on my blog post pages, yet I don't have anything in there to tell it not to display on blog pages. I don't know why that is happening. I have only one page set in the Configure Block for that block that should be excluded. I don't have blog/* which, if it was there, would explain things but it isn't. Any idea why then this block would not display when my blog is viewed?
Thanks,
Bruce

nevets’s picture

Some blocks are dependent one what a page is displaying, an example would be one that shows related content based on taxonomy. Such blocks may not have anything to display and there would not show. What is the block in question?

davea0511’s picture

Sorry to drudge up an ancient thread, but in my search I couldn't find anywhere else this is discussed. I've just installed Drupal 7 and tried all the built-in themes and even after I exclude all the content from my left sidebar (sidebar first) in the blocks the sidebar is still there. The only way I was able to get my content flush left by using a pre-built single column template. I installed panes thinking that would help, but they only seem to work within the pre-existing template - so no dice there. Are we supposed to edit the code by hand, and if so can't that be done within the admin area or do I have to pull out my trusty text editor (I expected a little better from drupal 7)?

nevets’s picture

If the sidebar is truly empty seven should work correctly as well as other themes. I would check the generated page and look at the html for the sidebar

davea0511’s picture

Good idea. I'll check the generated HTML.