May 2010

02
May
2010
Grayside

OA Book Manager

This module provides group administrators with a new notebook tab that leads them to a list of all group books alongside links to edit each book, or reorganize the hierarchy of pages beneath it.

03
May
2010
Grayside

OA Login Redirect

This feature identifies users that are members of a single group, and on login redirects them to the front page of that group.

This module requires the Rules module, PURL, and OG.

06
May
2010
Grayside

OpenAtrium Group Manager as Content Administrator

In Drupal, it only takes a couple hours (or perhaps a couple days) to build the concept of a site-wide content manager into your system. It gets mighty tricky to start parceling out administrative tasks for parts of the site.

With Organic Groups (the module behind OpenAtrium’s groups), the solution to this problem has always been messy. But with the advent of Spaces and Group Administrator configuration, it seems like OA and related sites are within shouting distance of giving Group Managers the power of Content Administration.

06
May
2010
Grayside

Feature Server: Not That Hard

It turns out that running your own Feature Server isn’t that complicated. Get a Drupal site. Install the fserver feature. It’s most exotic requirements are Filefield and Context, and context is just their to facilitate easy block placement of release information.

All the feature really does is provide a fancy XML Views style plugin, a couple content types with their CCK fields to specify things like version information, and some special file-handling magic to push files and tarballs around.

06
May
2010
Grayside

Feature Server Aggregator

This was supposed to be my next blog post, when I finished mulling it over. Then I saw @open_atrium twitter the exact words.

I’ve been wondering what good a Feature Server is if every individual server had to handle it’s own marketing if anyone was going to learn about it. Google is a bit hard to use with keywords like “Drupal Feature”.

21
May
2010
scribe

Reset Drupal Password, the SQL Way

update users set pass=md5('NEWPASS') where uid = 1;

I constantly find myself needing to google up a page like this to figure out how to reset a password without troubling the website.

Here’s my own little note.

22
May
2010
Grayside

Renaming a Project

Often enough you create a project, get halfway through, and don’t like the namespace you’ve scattered throughout every file and function name. There are plenty of ways to use IDE’s and other tools to change that name, but I prefer the command line.

22
May
2010
Grayside

cat kit | summarize namespacing

I decided a few notes would help me grok the Kit Specification. I post them here in case someone else finds them useful.

Shortest Summary

Project Name and Feature Name should be the same. They should have a nice, unique namespace. The human readable version doesn’t need to show the prefix. Views and other individually exported pieces should be prefixed with the not-necessarily-unique part of the Feature name.

Barely-Shorter Sumary

This summary currently covers the Features Specification 1.0-draft.

31
May
2010
Grayside

cat kit | specificity

When you read through Kit, one of the themes that keeps cropping up is the concept of specific relevance. How do you know when it is a good idea to include a given variable, permission, or other component in your Feature?