Integrating entities with Views

Dive into how you integrate your entities with views. I'm explaining my findings and show how simple it can be to create views integration for custom data which usually in Drupal 7 resides in entities.

Drupal answers - 100 days down the road.

I decided that it was time to write a blogpost. This time about something that I’ve been spending some of my time on lately: Drupal answers aka Drupal Stack Exchange.

Upgrading Drupal Commerce data - 1047078

The post now contains what I would call a full upgrade path from alpha to beta. I might be missing a detail in this post, but for the most part, this is what you need to do.

Note: This post is written and have since been updated twice. The reason for this, is that when I updated the commerce site I maintain, I did it in these steps. This means you need to complete all the steps to complete the upgrade from alpha to beta.

Blog reroll on Drupal 7

So after having having run my blog on Django Mingus and pretty much abandoned it for quite a while I figured it was a time for change. With the new Drupal 7.0 release what better time than now was there to freshen up my blog a little and reroll it on Drupal 7.

I hope in the future to use this as my own personal playground, where I can show stuff off that I'm working on or just some cool tricks or hacks that might be useful. Code tend to be a bit more credible when you can see it in action after all.

How to run sql on a Django test database before syncdb

I've had a problem for some time with running tests on one of my older Django projects. In this project I had some models that wasn't being managed by Django. This mean that it was me who created the tables for the models instead of Django. This can be done pretty easily with the Meta class like this:

from django.db import models
class SomeModel(models.Model):

class Meta:
managed = False
db_table = 'table_name'

Creating a field formatter for CCK

A field formatter is what CCK uses to format it's fields or in Drupal terms: **theme**. All that a formatter really is, is a theme function that's designed for CCK. Where ever a field is displayed it can have several options as to how it should be displayed. One example could be link fields which by default can be displayed in different ways, title as link, URL as link etc. This can be selected as standard for the node full and teaser views, but can also be used in different views where you thus can display the same field in different ways.

JavaScript closures and jQuery plugins

Making a jQuery plugin is actually not so difficult that I once thought it was. One thing you need to learn when doing this is closure. If you plan on doing any real JavaScript development, it's time well spent to wrap your hear around this.

My first blog

About a year ago I started learning python, after having stopped studying chemistry at the university of Copenhagen. A good [friend]( of mine had started his own company, [Reveal IT]( and I joined him as what you could call an apprentice. After getting the basics of python I started right away with [Django]( I can still remember the struggles I had in the beginning understanding stuff like HttpResponse, templates etc.

Subscribe to Front page feed