Hide A Block On All Admin Pages | Drupal 6
Last Updated on Thursday, 04 August 2011 12:56 Written by Nicholas Dunbar
-----------------------------------option 1 -----------------------------------------------
To disable a block on all admin pages goto
admin
then under Site building
click on blocks
Choose a block
Click configure
Choose "Show on every page except the listed pages."
Then in the field below enter
admin*
node/*/edit
node/add*
and then save (this is assuming you consider all edit pages as admin pages. Just something to consider. node/*/edit and node/add/* are typically missed as administration pages.)
You also might want to disable some modules like webforms and others that you may have installed.
node/*/webform
This should remove that block from all admin pages
The block will show up on all pages except the admin pages
if you used admin/* all admin pages except the home administrator page would be excluded
-----------------------------------option 2 -----------------------------------------------
if you want to use PHP then select "Show if the following PHP code returns"
on another note you can assume that a user cannot access any of the admin pages unless they are logged in. So if they are logged in don't show the block. Of course this is problematic if you want it to show for logged in users just not on the admin pages.
------------------------------------------
ps. You may note at the top that. I often spell "go to" as "goto" are you nerdy enough to guess why?....
because I learned to program basic around 10 years old and one of the most common statements I used was the goto statement. Ruined my spelling for life!...well thats not the only word I commonly mispell. I know I should correct it but I thought it would be more fun to note. Plus more content makes search engines happy even though this has nothing to do with this article...bla...bla...bla...yea google! :)
