Closed (fixed)
Project:
MySite
Version:
5.x-2.6
Component:
User interface
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
8 Aug 2007 at 17:48 UTC
Updated:
4 Sep 2007 at 10:01 UTC
Hey there,
I just tried the super cool "remove the block regions" option for the my site page,and I realised thastit does not work with my theme... Is there anything special I should be looking for as to why my blocks are not removed?? I use a special zone where I install blocks with tabs, maybe it's because of that custom region??
Thanks,
patchak
Comments
Comment #1
agentrickardI really can't answer that, as that feature has only been tested with default themes and the Gutenberg theme.
Removing the block regions seems to be an undocumented feature of Drupal. I stole the practice from Panels module.
You could, alternatively, create a page-mysite.tpl.php file that removes calls to the regions you don't want. That template will conditionally load when the path is example.com/mysite*
Comment #2
agentrickardOK, it is not undocumented. It is part of PHPTemplate. http://api.drupal.org/api/function/phptemplate_page/5.
It seems that the function only clears the $sidebar_left and $sidebar_right regions. So this _might_ be a bug in PHPTemplate.
If you are using a non-PHPTemplate theme, it may not work at all.
Comment #3
agentrickardAnother option would be to wrap your page regions in:
Comment #4
agentrickardThis is a limitation of PHPTemplate, not MySite. Added to the documentation.
Comment #5
(not verified) commented