I want to turn off all right column blocks for a particular directory, or parent menu item. Is there a way to do that for the column rather than by each block?

Would a CSS class be the best way, rather than somewhere in the drupal interface "admin:blocks" or "admin: templates" or other admin? I can't find where to do this in the druapl interface.

If CSS, what parameters are needed and where? I have changed type and list variables, bullets and such - but columns I have not done.

(Is this the best place for this kind of question? Your direct email is not on your profile... so I could think of nowhere else to pose this question- thanks).

Comments

johnnybegood’s picture

Status: Active » Fixed

This one is a bit different to address.

If you need different column layouts for different parts of your site you'll need to look into the Theme developer's guide.

I'm still learning that myself to be honest and it would require you to modify some php files in the template folder.

However, on top of my head, if you manage to get a unique id for the body of each page of your site you can specify different layouts in the css. There are a few snippets in the developer's guide that shows you how to get this id on the body tag.

After that, you can set something like this:

body#some-directory #sidebar-right { 
  display: none;
}

Hope this helps.

Anonymous’s picture

Status: Fixed » Closed (fixed)