Skip to: Site menu | Main content


Author Biographies on Nodes Using the Content Profile and Views Modules in Drupal 6

Collecting and using user profile information has always been a popular aspect of the Drupal module scene. The Profile module (part of Drupal core) has always been a relatively straight-forward way of collecting additional profile data about users, but its lack of default Views and CCK integration has been problematic for most users.

Saving user data as nodes has been possible using a variety of methods for quite a while, but it seems that with Drupal 6.x, things are coalescing around the Content Profile module. This allows you to set a particular CCK content type as a user profile (the module actually creates a default "profile" content type automatically for you) - thus gaining all the advantages of CCK and Views (and their associated universe of modules) when dealing with user profile data. This is extremely powerful and lets you do all sorts of wacky things with your user's profile data (don't be evil).

This article talks about the (relatively easy) process of getting the Content Profile module configured for a Drupal 6.x site. Then, I'll go through the process of making one of the profile fields available to Views and a template file for use when displaying a node. This might be useful if one of the Content Profile fields you're collecting is a short biography of the user that you want displayed within any nodes the user has authored. Then, your standard node view can look like this:

Short Biography display

Submitted by michael on Mon, 11/03/2008 - 6:12pm
Filed under:

Drupal Stuff (and more) at BarCampChaos

I attended BarCampChaos at the Orlando's Marriott World resort on Monday evening, October 13, 2008. The BarCamp was piggy-backed on Create Chaos, a conference for creative professionals. Ryan Price gave a presentation on developing an online portfolio site using Drupal, and I gave a 20 minute presentation titled "Anatomy of a Drupal Theme".

Submitted by michael on Tue, 10/14/2008 - 8:42am
Filed under:

Drupal: Toggling "posted" Information in Content Types

File this one under "holy-cow-I-can't-believe-how-much-time-I-just-spent-figuring-out-how-to-this". What I'm talking about is this: the "posted" information is the information stored in the PHPTemplate's $submitted variable: "posted 2007-08-01 12:32:42 by admin". Normally, this information is displayed right before or right after the node's main content. I recently ran across this problem when I was working on a site with numerous content types - all created with CCK. I was working on theming one of the content types and I couldn't figure out why the $submitted variable wasn't being populated when the node was displayed.
Submitted by michael on Thu, 08/09/2007 - 6:18pm
Filed under:

Drupal: Customizing the "more" Links in Views

Everytime I have to dig a little deeper into the views module, I'm always more and more impressed with the thought that went into the module by Earl Miles and the other authors. A recently had a request from a client to modify the "more" link that is shown at the bottom of blocks that are generated by views.

Default 'more' link

Submitted by michael on Fri, 07/20/2007 - 4:21pm
Filed under: