I would like to have some blocks be suppressed when viewing an image. What I want to do is have all my blocks on the right side of the screen be suppressed when viewing an image to maximize the screen real estate.

It seems that I can suppress visibility of blocks by path. However display of an image just has the path node/{number} which has the same path as any other node type so I can't suppress just on the image pages. There is also the option to restrict the block to certain content types, so I thought maybe I could just select all of the other content types other than image. However, this doesn't work as it does not display the block on the front page, or the any of the taxonomy pages.

Is there another way of doing this, or is there a module that adds this functionality?

Comments

Steve Dondley’s picture

Assuming you are using 4.6, click on the "configure" for each block. At the bottom of the page, check off every content type except for "image."

webgeer’s picture

No that doesn't work because it wont show up on the main page, or on taxonomy pages or any page that isn't a single node.

I suppose it would be possible to do a real kludge and make 2 copies of each block and have one display on nodes of every type except image and the other one display on every page type other than node. If it was just one block I might do that, but there is actually about 8 blocks and I plan on adding some more. That would get to be a nightmare.

Steve Dondley’s picture

In the "Page specific visibility settings," you will have to add the 'taxonomy' and 'node' and '/' pages to the list of pages you want the block to appear on. That should solve the problem you mention above.

--
Get better help from Drupal's forums and read this.

webgeer’s picture

Thanks for trying, but that does not work.

If you use the "Restrict block to specific content types" the block will only be shown on pages displaying a single node. It will not show on any non-node page no matter what the "Page specific visibility settings" are.

What would be ideal would be a "Show on every page except the listed pages"/"Show on only the listed pages" type setting for content types.

Steve Dondley’s picture

The help text clearly says "This feature works alone or in conjunction with page specific visibility settings." I'd file a bug report.

--
Get better help from Drupal's forums and read this.