Press enter after choosing selection

Creating custom content types in Drupal

by ejk

While working on an upcoming feature on the site, I faced an initial dilemma: How do I want to store the custom content? I'm creating a system that will manage multiple records of content which contain more information than a standard drupal page or story node would provide. But I'd love to be able to use the established drupal functionality for creating, editing, tagging and protecting content.

The solution? Create my own custom node type. I found this article on drupal.org very helpful. (Note: this is written for drupal 4.7, which is a generation behind the latest release. So check out this article if you're using drupal 5.)

The best part is that I can add a new "free tagging" vocabulary that applies only to this new custom content type, and it uses drupal's built in AJAX suggesting auto complete on the tags already applied in that vocabulary.

Graphic for blog posts

Blog Post