Drupal Development
complex view example
<?php
$view = new view;
$view->name = 'contributions';
$view->description = 'Articles and Commentary';
$view->tag = 'content type';
$view->view_php = '';
$view->base_table = 'node';
$view->is_cacheable = FALSE;
$view->api_version = 2;
$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
RDFa in Drupal design camp presentation notes and download
Update: RDFa in Drupal presentation download.
Jamaica Plain Meetup in Roxbury reportback
Report-back on Jamaica Plain Drupal Café.
I tried to sell everybody on funding Decisionmaking API. No checks were handed over on the spot.
Checkout a specific revision of a file with Git
git checkout abcde file/to/restore
Reference:
How do I reset/revert a specific file to a specific revision using Git?
http://stackoverflow.com/questions/215718/how-do-i-reset-revert-a-specif...
E-mails being sent or nodes being saved by batch api breaking on a regular schedule just during cron runs
If you are having weird problems in Batch API processes, such as the base URL for notification e-mails being replaced with something less-than-useful like /var/www/drupal, the culprit may be (somehow) cron.php being called by a command line script (rather than curl or something going to cron.php over the internet).
MetroWest Drupal Meetup
A good meetup and a stellar example of Drupal free association. We started with a look at how to do recurring, role-enhancing subscription payments with Ubercart because Scott McCabe as well as Dan was at that point in a sight, we were all distracted by something shiny – Views theming I think – and things flowed from there.
Quick fix for a nasty NAT-related error
No, we will not do it this way:
http://guelphdad.wefixtech.co.uk/sqlhelp/deleteduplicates.shtml
We will delete all and re-import:
http://dev.mysql.com/doc/refman/5.0/en/insert-select.html
http://www.mark-holt.co.uk/2008/11/18/howto-mysql-insert-data-from-one-t...
mysql -u dbuser -pDBPASS
USE dbname;
Having the top-level menu items not be links (for use with dropdown menus)
The best approach may be to avoid this entirely with proper information architecture. I always try to make these have meaning themselves, but certainly with not expecting most people to click on them anyway, this does not always make sense. Instead, the way Agaricer Kathleen did it for one project is simply to have each dropdown be a separate menu.
