Closed (cannot reproduce)
Project:
Context
Version:
7.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
12 Apr 2011 at 14:06 UTC
Updated:
1 Oct 2012 at 15:35 UTC
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
Comment #1
tekante commentedI 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.
Comment #2
sorensong commentedDo you have to be using a certain type (compatible) theme in order to Disable Regions?
Comment #3
tekante commented@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.
Comment #4
ykyuen commentedi 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
Comment #5
ykyuen commentedOne 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.
Comment #6
jorditr commentedI 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
<?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 :-)