Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Favorite Drupal tips or best practices? [closed]

Tags:

drupal

Just wondering what tips or tricks you guys might have to share. As always with posts like this, please only one tip per post so they can be voted on independently.

I'll start: however you do your theming, you can use the mothership theme as a base theme for your theme to inherit from so that your markup will be a lot cleaner and less verbose.

like image 960
Mike Crittenden Avatar asked Oct 16 '09 01:10

Mike Crittenden


3 Answers

use drush to install/update modules and do maintenance tasks. if you use drupal you cannot go without it.

like image 91
gpilotino Avatar answered Nov 08 '22 15:11

gpilotino


Before coding any custom feature in Drupal, make sure there isn't already a module for it.

like image 37
Jeremy French Avatar answered Nov 08 '22 17:11

Jeremy French


  • Use the zen theme - not only it makes theming easier, it also adds CSS classes that reflect the state of the website (like <body class="not-front not-logged-in page-node node-type-project-project two-sidebars">) - makes it really easy to customize your site.

  • Browse through Drupal Modules - 9 out of 10 chances you'll find what you are looking for there - is it safe and/or maintained - that is a different question ;) But at least you'll have a starting point.

like image 15
Igor Klimer Avatar answered Nov 08 '22 15:11

Igor Klimer