Door clemens op ma, 2011/11/07 - 9:44am
Can you tell the field display weights of all your entities with one command? Or edit a node through the command-line?
drush --yaml entity-type-read node --fields=**/display/**/weight --include-fieldapi
drush entity-update node 12 --json
Watch the video on http://www.youtube.com/watch?v=cVGZzWjdDh8 and get convinced you want to know more of these entity internals.
Door clemens op vr, 2011/10/14 - 11:48am
Yesterday I ordered The definitive Guide to Drupal from the dutch online site comcol.nl. Awesome delivery.
I have to read the monster 1047 pages but decided to cut it two pieces as that split version is allowed on my desk.
Door clemens op do, 2011/08/11 - 5:03pm
Following along the git migration and project cannot be grepped anymore I brewed the following code.
It assumes the gits are already cloned and placed is one common directory.
After running the script all repositories with a $major == 7 branch are set into the highest version.
I'm puzzling how to 'empty' the non $major compatible repos.
The fun part is now doing analysis on the tree
find . -name "*.info" -exec grep -H "^dependencies" {} \; > dependencies-7.x.txt
which shows some new dependency types
Door clemens op vr, 2011/08/05 - 1:09pm
By creating a php file named ~/.drush/content.drush.inc containing
<?php
/**
* @file
*/
/**
* Implementation of hook_drush_command().
*/
function content_drush_command() {
$items = array();
Door clemens op wo, 2011/08/03 - 4:56pm
Trying some Drupal 5 sites for upgrade script development on desktop PHP 5.3 I ran on *.info files causing annoyances.
Door clemens op vr, 2011/07/22 - 2:47pm
Door clemens op vr, 2011/07/22 - 1:36pm
Sooo ... I've finally upgraded my own site. I thought it would be easy. A simple drupal site only using images. And yes I'm not reading READMEs that often. I trust drush somehow to handle this for me. But drush only sooth the 'pain'.
This blog contains my bash script which does some staging from production onto my laptop where I update the site to the latest D6 then upgrade to D7. The script is generic enough to adapt for other upgrades.
Door clemens op zo, 2011/07/17 - 2:44pm
On http://drupal.org/node/686938 people are reporting a lot sloppy reports of error lines. The issue is about
Undefined index: [xyz] in line ...
But what are the names of the failing indexes?
jQuery has a nice grep so lets use it.
Door clemens op ma, 2011/05/23 - 12:20pm
Make sure you have your drush aliases file setup properly. Below a snippet from my b2b.aliases.drushrc.php
$aliases['dev'] = array(
'uri' => 'http://build2be.dev',
'root' => '/Users/clemens/Sites/build2be.dev/www/',
'path-aliases' => array(
'%dump-dir' => '/Users/clemens/Sites/build2be.dev/store',
'%files' => '/Users/clemens/Sites/build2be.dev/www/sites/build2be.dev/files',
),
);
Now we can run
drush rsync @b2b.prd @b2b.dev
Door clemens op wo, 2011/04/13 - 10:40am
I'm working on a patch to implement issue triage for Dreditor
But for ease of use and teasing in testers git issue branches would be great which are underways.
So in the mean time I use a sandbox for this. But how to get dreditor code into my repo?
- First create a sandbox on d.o. This gives to access to a new git repo.
- Ignore the initial git instructions
- Clone dreditor according the git instructions
git clone http://git.drupal.org/project/dreditor.git
Pagina's