EDIT:
This is only valid for beta14 (I think).
The module has since been refactored. See this page for more details http://drupal.org/node/1474906
Adding the custom fields
I've assumed that you have already set up your solr environment and configured Drupal using the apachesolr module to communicate with solr.
The Problem
You want to get a list of items with the ids (5, 2, 1, 3) and output them in the same order. However, just running a select query will return the items in the order (1, 2, 3, 5):
$list = 5, 2, 1, 3; $query = "SELECT * FROM [table-name] WHERE id IN ($list)"; // the resultant rows would be 1, 2, 3, 5
The Solution
To order the results correctly you need to build a list of ORDER BY items describing the weights of the ids. This will look like:
hook_css_alter
There's been many a time where I've created the perfect CSS in a static site design only for it to be pulled to pieces by Drupal's system styles.
The solution is hook_css_alter(&$css) which can reside in your template.php file:
Getting up and running with Drush
When starting on a new Drupal project it can seem like quite a mission to get the site in a state to actually start work.
There are a few commands to speed up the process ten-fold!
Drush for Drupal..
If you've not heard of drush before - don't worry, it's not some kind of Drupal virus or rash.. but it is contagious!
You can find out a lot more over at http://drush.ws and checkout the drupal project page - Note: It's not a module. This article may not be the best read if you've not used drush before - so get busy!
It's pretty awesome cool
Adding regions to your node templates allows for more complex themes and works great with the Context module.
First add the region to your theme's .info file and remember to clear you caches
Now if you were to use that region in your node.tpl.php you may be disappointed
How, why, when?
It's possible to break everything by doing something so little for example renaming/removing the current theme without disabling it first.
It may also be the case that a new theme is installed which gives that white screen of death.
Hopefully fixing the problem should be painless if you have access to phpMyAdmin (or through SSH) with a few lines of MySQL
First, set Garland as default.
Let's keep it simple
I know that many people can develop an array of Drupal themes without ever delving into the template.php file. Also, looking through the preprocess functions in the api can be daunting - so we'll keep this very simple
A new way to search
Firefox has a powerful bookmark system that makes for some cool time saving, specific searches.
Lets say that you want to search the Wikipedia database, the smart keywords make it possible to enter a search term into the address bar that takes you straight to the Wikipedia page.
Press play and enjoy!
I've had some new additions to my music library (thanks to my generous dad!) and just want to share some of it, more specifically Sleigh Bells
Although I would like to think I can write an informative and insightful album review.. I probably can't so I think I'll leave it to the professionals - read pitchfork's review
I can however provide a sample of their music with the track Rill Rill, I think my favourite track is Kids
Download the theme below
I recently downloaded a trial of Panic's Coda - an all in one text editor, ftp client, terminal and more, with SVN and cross network pair programming capabilities.
Although it is all very good and I cannot really fault it...I just couldn't feel at home using this "all mighty" editor.
I did however take the time to customise the "webby" themes.
Cartoon Owl
I've been having a bit of a nose around in Adobe Illustrator recently and having spent so much time in Photoshop, everything seems to be taking that bit longer and more difficult to accomplish.
Although I've clocked very few hours with illustrator I'm slowly getting the hang of it and experience with Photoshop and 3DS MAX has definitely helped!

















