Drupal configuration
Setting up crontab in Drupal
Not knowing so much about Unix commands and such setting up crontabs for your Drupal site can be a hassle. I recently noticed that my supposed crontab run wasn't functioning as expected. Patching together intelligence from several sites I finally managed to make something useful at last.
First create directory and the file that the crontab will call, in my case it was put in a bin directory on the same level as my public_html directory.
$ mkdir bin
$ cd bin
$ pico weekly.crontab.sh
How to set visibility of a block so it does not show on admin and edit pages in Drupal
I've been trying to hide the banner blocks from the admin pages for ages, or at least for an hour and so this is how you do:
Go to blocks menu and press configure for the block you want to set visibility for. Scroll to the end of the page. Press the radio button that says show on all pages except those in the list and then add following
admin/*
admin
node/*/edit
The star / wild card tells Drupal not to show up on sub pages in the admin and any node that is being edited. Pretty handy; to bad it is not on the "Drupal - this is how you set visibility for blocks in Drupal"-page.