Thank you for your help, firstly.

I have a navigation (nice menus) that I want to be hidden while in the administration section of the site (/admin). Is there a snippet of PHP code I can use in the block to detect that the user is in the admin area and thereby not show the nice menus if they are in the admin area?

Thanks again!
IM

Comments

mrtoner’s picture

That's what the Page specific visibility settings are for when you configure the block. Either use Show on every page except the listed pages with a list of the various admin pages, or -- even easier -- use Show on only the listed pages with 'node' and 'node/*' as your listed pages.

internetman’s picture

Thanks, I thought so. But I don't know how to say "except these pages: admin/*" I tried this specifically and it didn't work :(

Oblivious-1’s picture

Check "Show on every page except the listed pages" then add the following in the textarea below:

admin*

--
Erik
https://twitter.com/erik_smith