Drupal Archives | Lee Willis https://www.leewillis.co.uk/tag/drupal/ Tue, 19 Apr 2016 20:47:46 +0000 en-US hourly 1 https://wordpress.org/?v=6.8.1 Looking ahead https://www.leewillis.co.uk/looking-ahead/ https://www.leewillis.co.uk/looking-ahead/#respond Tue, 19 Apr 2016 20:47:46 +0000 http://www.leewillis.co.uk/?p=757 I’ve spent the last four and half years working with a great team, on some fascinating, large-scale (predominantly Drupal) website builds. I’ve balanced that with a “spare-time” job building and selling WordPress plugins. Working on WordPress plugins in my spare-time gave … Continue reading

The post Looking ahead appeared first on Lee Willis.

]]>
I’ve spent the last four and half years working with a great team, on some fascinating, large-scale (predominantly Drupal) website builds. I’ve balanced that with a “spare-time” job building and selling WordPress plugins.

Working on WordPress plugins in my spare-time gave me the flexibility to experiment with things that interested me. I built some fun plugins, some useful plugins, and some boring-but neatly functional plugins. I’ve also learnt a lot along the way.

Selling some of those plugins has given me the flexibility to give up the day-job, and go out on my own full-time. So – as of early April, this my new office:


It comes complete with personalised mug from my ever-supportive wife Claire, greenhouse-style window display, and Bella the code-reviewing cat.

Going forward, my main aims are to:

  • expand my range of plugins – both free and paid
  • take care of some housekeeping and feature development on existing plugins
  • explore some other technical arenas

I’ll also be taking on some contract work (WordPress, Drupal, Symfony or Laravel for starters) to keep things interesting.

So far, I’ve released Cart recovery for WordPress, as well as its pro add-on, added new features to a few free, and paid-for plugins, done some R&D with Laravel and Ionic for future projects, and got a few nice contracts lined up.

Not a bad start – here’s to the future!

The post Looking ahead appeared first on Lee Willis.

]]>
https://www.leewillis.co.uk/looking-ahead/feed/ 0
DrupalCon Prague https://www.leewillis.co.uk/drupalcon-prague/ https://www.leewillis.co.uk/drupalcon-prague/#respond Wed, 18 Sep 2013 20:48:52 +0000 http://www.leewillis.co.uk/?p=578 I’ll be spending much of next week in Prague for DrupalCon. With Drupal 8 well underway, and some significant architecture changes since Drupal 7 it’s sure to be a great event, with plenty to catch up on, knowledge to be … Continue reading

The post DrupalCon Prague appeared first on Lee Willis.

]]>
I’ll be spending much of next week in Prague for DrupalCon. With Drupal 8 well underway, and some significant architecture changes since Drupal 7 it’s sure to be a great event, with plenty to catch up on, knowledge to be shared and contacts to be made.

I’m there with colleagues from Hydrant, and we’d love to chat!

The post DrupalCon Prague appeared first on Lee Willis.

]]>
https://www.leewillis.co.uk/drupalcon-prague/feed/ 0
Processing feed imports in bigger chunks https://www.leewillis.co.uk/processing-feed-imports-in-bigger-chunks/ https://www.leewillis.co.uk/processing-feed-imports-in-bigger-chunks/#respond Wed, 26 Jun 2013 09:51:03 +0000 http://www.leewillis.co.uk/?p=568 Just leaving this here for next time I need this. The change below allows you to change the number of items that Drupal’s feeds importer will process at once. /* Set feeds importer to import in chunks of 500, rather … Continue reading

The post Processing feed imports in bigger chunks appeared first on Lee Willis.

]]>
Just leaving this here for next time I need this. The change below allows you to change the number of items that Drupal’s feeds importer will process at once.

/* Set feeds importer to import in chunks of 500, rather than 50
 * Ref: http://drupalcode.org/project/feeds.git/blob/b39b547768abbda3b0d7b5425593c0e7c05800f2:/README.txt#l185
 */
$conf['feeds_process_limit'] = 500;

The post Processing feed imports in bigger chunks appeared first on Lee Willis.

]]>
https://www.leewillis.co.uk/processing-feed-imports-in-bigger-chunks/feed/ 0
Adding body classes based on Drupal role / user ID https://www.leewillis.co.uk/body-classes-drupal-role-user-id/ https://www.leewillis.co.uk/body-classes-drupal-role-user-id/#comments Sun, 13 Jan 2013 15:28:05 +0000 http://www.leewillis.co.uk/?p=481 I’m writing this down here quickly because it strikes me that it may well come in handy to others. This little module snippet that will add classes to Drupal’s html (On the body element) to indicate the current user’s role, … Continue reading

The post Adding body classes based on Drupal role / user ID appeared first on Lee Willis.

]]>
I’m writing this down here quickly because it strikes me that it may well come in handy to others. This little module snippet that will add classes to Drupal’s html (On the body element) to indicate the current user’s role, and user ID.

Before:

After:

Handy if for example you want to style things differently based on the user’s role. Just drop it into your module, and replace MODULE with your module name.

The code:

function MODULE_preprocess_html ( &$variables ) {

  global $user;

  foreach ( $user->roles as $role_id => $role ) {
    $variables['classes_array'][] = "role-id-".$role_id;
    $variables['classes_array'][] = "role-".strtolower(drupal_clean_css_identifier($role));
  }

  $variables['classes_array'][] = "user-uid-".$user->uid;

}

The post Adding body classes based on Drupal role / user ID appeared first on Lee Willis.

]]>
https://www.leewillis.co.uk/body-classes-drupal-role-user-id/feed/ 4
Capital D dangit… https://www.leewillis.co.uk/capital-d-dangit/ https://www.leewillis.co.uk/capital-d-dangit/#respond Wed, 09 Nov 2011 22:42:10 +0000 http://www.leewillis.co.uk/?p=400 Just a short post I promise. I’m pleased to announce that I’ll shortly be joining the fabulous team over at Hydrant. If you haven’t heard of them before, they’re a growing Drupal agency with big ideas. Can’t wait! PS. Yes, I … Continue reading

The post Capital D dangit… appeared first on Lee Willis.

]]>
Just a short post I promise.

I’m pleased to announce that I’ll shortly be joining the fabulous team over at Hydrant. If you haven’t heard of them before, they’re a growing Drupal agency with big ideas. Can’t wait!

PS. Yes, I said Drupal 😉

 

The post Capital D dangit… appeared first on Lee Willis.

]]>
https://www.leewillis.co.uk/capital-d-dangit/feed/ 0