Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By gnosis.kv on
hi,
how to disable blocks on node edit/add page? Let's say i dont want the left and right sidebar show up on the node edit/add page, how to do it?
I tried to remove the region variables from the page-add.tpl.php and page-edit.tpl.php. It visiually removed the blocks in the region.
However, as i tested, the backgroud still called the block functions and do the calculation, but just did not attach the output to the final page output. There might be significant performance implication.
Is there any better to achieve this, like write some php in block visibility settings?
thanks