Ramblings

A journey: Converting this site to D8

Tue, 2014-05-13 09:57 -- Erik

Well, Drupal 8 is right around the corner. There's a lot of effort to get a beta release out, there are trainings being developed and books being written. But when I thought about the best way to teach myself about Drupal 8, the obvious choice was to install it and play around, investigate the issue queues, try to help in Sprints, and pick a small site to just bite the bullet and convert.

So since I only maintain one site, I guess this will have to do.

Varnish, Mollom, and Spam (oh, my!)

Sat, 2013-08-03 18:15 -- Erik

I received an email the other day with the subject "Mollom's volume limit exceeded". Now, I work with the fine folks from Mollom and popped over to ask what was up? I have this blog and it's not all that crazy popular in terms of hits or probably even spam attempts, I do get spam that I have to clear out, but since I enabled Mollom two years ago, it has blocked 160K+ spam attempts… Mollom's free subscription for personal blogs is great and the spam that it auto blocks is not counted against you. So this volume limit should only be for "legitimate" comments and you're allowed 50 per day.

Migration bliss

Sun, 2012-04-15 16:39 -- Erik

I have recently been working on a few projects that involve migrating legacy data to Drupal. In the past, I have used node_import, node_export, user_import, feeds, and migrate (version 1.x) and each has its pros and cons. But this project had a little more complexity and some pieces that I wasn't sure of how to approach with any of these methods. So I decided it was time to dive into migrate version 2.x.

Drupal login redirection

Mon, 2011-12-12 15:51 -- Erik

One handy trick I've found is that when you're visiting a Drupal page and you notice that you're not logged in, you can simply add user?destination= into the URL right after the root of your Drupal site and keep the path. This means that

http://eporama.com/ramblings

becomes

http://eporama.com/user?destination=ramblings

Then when you log in, you're brought back to the page you were viewing with no fuss.

I do this often enough that I decided to make it a bookmarklet.

Migrate nodereferences with dissimilar keys

Mon, 2011-10-24 22:06 -- Erik

I ran into a problem using the Migrate module where I migrated a series of newsletter issues and then imported a series of articles that were related to each newsletter.

Typically, for nodereferences, you can add a dependency of the first migration. If both the newsletter issue table used a primary key and the article table used a foreign key of "issueid" then the mapping is very straight forward.

Develop Locally

Sun, 2011-10-16 21:19 -- Erik

I presented at Drupal Camp New Hampshire 2011 and Drupal Camp MA 2012.

This talk was about running Drupal locally and how to set up a good development environment.

Edit: [2011-11-10] Just found out there's an error on the location of the my.cnf file. MAMP 2.x wants them in /Applications/MAMP/conf ... slides updated.

Pages

Powered by Drupal
Subscribe to Ramblings