I want to make ex. all of one content type to make a popup with only the content

I select conditions - nodetype - and that content type
I select reactions - regions - and disabled all but content

When i view my node i can see content as i should, but i can also see header.

How can i fix that?

Comments

tekante’s picture

Status: Active » Closed (cannot reproduce)

I believe the header you are seeing isn't the header region but the structural HTML of the site's theme. You may want to refer to the code for the overlay module in core to investigate ways of disabling all but the content area from being visible.

sorensong’s picture

Do you have to be using a certain type (compatible) theme in order to Disable Regions?

tekante’s picture

@sorensong - a theme of a particular type should not be necessary. The region disabling works by removing content from the desired regions during the page alter hook so it should work for any theme that is not somehow subverting the normal Drupal rendering behavior.

ykyuen’s picture

i am having the same problem and i am using the Omega theme 7.x-3.1.
i added a Node Type condition for a certain content type and add a Region reaction to disable some regions.

but when i view the node of the content type, all regions are shown.

i have tried both Context 7.x-3.0-beta2 and 7.x-3.0-beta2+12-dev. and it does not work for both.

then i try to enable Context layouts but still no luck.

Regards,
Kit

ykyuen’s picture

One more information.

i just try disabling region on the default bartik theme. in the list of regions, i disabled header and siderbar-first and the result is only sidebar-first region was disabled.

jorditr’s picture

I got the same trouble with a custom made theme. I saw also that Bartik looked to fail also on hidding header,... well, I thought it was Context which was failing to hide the header. But when I realized what was happenning on my custom page I saw that even "Drupal-7-default-theme" also has the same trouble: the header

on Bartik page.tpl.php is not enclosed by

<?php if ($page['header']): ?><div id="header">...</div><?php endif; ?>

So, probably Context is hidding it and the theme, despite "not receiving any header", tries to render it anyway. Try that :-)