Giving Nodes a Wardrobe - meet page_is_node() and drupal_is_front_page() Recently, I had the need to format a single content type differently depending on where it was presented Type: Tip Tags: D7 php Drupal
To Be, or Not To Be: the Empty Entity Reference To be, or not to be, that is the question. Shakespeare never quite gets around to answering it, though. In Drupal 7, a similar existential question arises regarding entity references: Is it, or is it empty? Type: Tip Tags: D7 Drupal entityreference entity
Don't Stress Over Local Passwords If you don't have User 1 (or some other user) access in your local setup, it's easy to remedy. Type: Tip Tags: D9 D8 D7 drush Drupal
Drupal and permissions - avoiding 'The directory sites/default/files is not writable' error Have you moved a Drupal site to another server and received the error 'The directory sites/default/files is not writable'? Type: Tip Tags: D6 Linux Drupal permissions
Protecting menu entries in Drupal 7 Sometimes you want to add menu items that can only be accessed if the user is logged in. Type: Tip Tags: D7 Drupal menus