Drush is a very powerful instrument in the toolbox of a Drupal developer. But it can give you a little headache when trying to install in your local MAMP setup. Also because I had forgotten how to do it within my fresh installation of MAMP Pro, a quick and relatively simple tutorial on how to install Drush.

Posted with 0 comments and tagged with drupal, drush, mac, mamp, mamp pro and php

Maybe as you guessed from my previous post, I develop on a Mac with MAMP. I really like the interface of the pro version compared to other programs like XAMPP. But it seems very difficult to install PEAR extensions with it. This post will explain how to install the MongoDB extension, but I guess this technique can be applied to a lot of other extensions too.

Posted with 0 comments and tagged with extension, mac, mamp, mamp pro, mongodb and php

For a better user experience on node crud actions, I've installed the WYSIWYG module with the CKEditor plugin. It adds the CKEditor interface as a filter for large textfields. And by default it loads in CKEditor's predefined styles. Very nice for beginners, but what if you want to include your own theme styles? The WYSIWYG editor supports loading your stylesheets, but works a bit buggy on the latest version (2.1 on time of writing this) in combination with the CKEditor. Luckily I found a very quick fix for this issue.

Posted with 0 comments and tagged with ckeditor, configuration, css, drupal, module, php and wysiwyg

When you start developing themes, you'll find out that there will be a lot of stylesheets loaded in by default. To remove those stylesheets from your own theme's template.php, you have to overwrite hook_css_alter and remove the stylesheets from the array. To make things a bit clearer, take a look at the following snippet:

Posted with 0 comments and tagged with css, drupal, php, stylesheets and theming