Drupal
Here's a quick little list of fields related moudules that have come in very handy lately:
http://drupal.org/project/field_collection. This module lets you create a field that is a collection of fields. For example if you need to create a route that contains an arbitrary number of paths, you would create a field collection that contains a path field. The user can then add as many paths to the route as they need. Drag and drop re-ordering is supported as well.
If you're developing a Drupal site on your local box that uses a domain specific folder in /sites then you'll probably run into all sorts of problems running the site as http://localhost. One way to get around this would be to edit your hosts file and setup an alias in apache. A simpler solution I have found, however, is to simply make a symbolic link from sites/default to the sites/example.com folder. You can even do this easily on windows now with mklink.
In drupal 6, the variable $result is available in search-result.tpl.php. The commented section at the top of this file makes no mention of this variable, so if you want to do something as simple as showing the created date on a node instead of the modified date, then you're in for a bit of researching (unless you read this blog post!).
So, if you want to modify how search results are displayed, then you need to:
1) Copy search-results.tpl.php and search-result.tpl.php from /modules/search to your theme's folder.
At the moment, there is no pre-packaged way to add CKEditor to Drupal 5. The following is a result of my attempt to port the Drupal 6 wysiwyg module's CKEditor plugin to the Drupal 5 version. It's ugly, but accomplishes my goal of getting CKEditor going in D5 without having to create a new module from scratch or try to port the rather large D6 module for CKEditor.
Step 1) Create ckeditor.inc (this is based off the D5 version of fckeditor.inc and the D6 version of ckeditor.inc), and place it under wysiwyg/editors
I recently discovered the Contemplate (Content Template) modules for Drupal. Wow, is it ever a handy little module. Contemplate allows you to create php templates for specific node types. You can create a template for one or all of the following : Body, Teaser, RSS. The great thing about creating node type specific templates in contemplate is that they are theme independent. You no longer have to create a .tpl.php file for that node type in all of the themes that might be in use.
I was happily coding along today when I noticed a site I was working just looked weird in IE. An hour and a half later I stumbled across a post on Drupal.org about IE ignoring more than 30 stylesheets. And sure enough, they did this on purpose : http://support.microsoft.com/kb/262161
WHY WOULD YOU DO THAT!
Ok - decision made. My next computer will be a Mac.
Maintaining a professional operation without breaking the bank is crucial to freelancing. I have found these tools to be invaluable to my business and hope that you try them for yourself. Note that some of the links below have affiliate codes in them, but I am not otherwise being asked or compensated to write reviews for these services.
The drupal user_autocomplete function is very handy for form fields where you are entering a single username. But what about cases where you want your users to be able to enter multiple usernames? Turns out that this is very easy to do without having to write any JavaScript.
![]()
Copyright © 2011, Aaron Blondeau
Drupal theme by Kiwi Themes.