Hi,

I just set up an image gallery and now I have some trouble with my blocks. Some blocks are overlapping my gallery, so I want to hide them from the content type 'images'.

I did find the option to show blocks for specific content types, but not the option hide blocks for specific content types. When I use the first option the blocks are also hidden on the frontpage, even though the content type 'images' is not used.

Is there a simple solution to hide blocks for specific content types for Drupal 7.14?

Comments

audster’s picture

go to structure->blocks

find the block you want to control and click "configure" (on the far right)

On the bottom of the screen you will see a box where you can "show block on specific pages"

here you can specify where it should or shouldn't show...

You can also use a php snippet to determine this as well...
http://drupal.org/node/134428

you might also want to check out the power of panels and page manager (part of ctools module)

Idefix’s picture

Thanks for your help!

For now I think I will add the pages where the block has to show up, because when I choose for the option that blocks have to show up for the content types 'articles' and 'basic pages' it does not show up at the frontpage. Otherwise that would my best solution.

php snippet is a little bit to difficult for me, but maybe when I have time I will look in to that. I will also have a look at panels and page manager, maybe those modules can solve this problem better.

audster’s picture

Panels and page manager are your BEST FRIEND as long as your site isn't going to be a huge commercial site and even then as long as you manage caching correctly it's great. I say this because if you use them for EVERY blasted thing on your site you can have performance issues, but I've used them on most of the sites I have built and when properly cached I have not had problems with performance.

You might want to check out panels before you get into too much more design!

seriously.