drupal

Drupal in the Enterprise

At DrupalCon Chicago, I had the pleasure of being able to give a presentation on using Drupal in the Enterprise. The session was recorded. Unfortunately, the audio recording is not very good.

Tags: 

Add menu item during node_save in Drupal 6

Use this code for adding a menu item when saving a node. The menu item will automatically link to the node. Link_title is the display name of the menu item. Menu_name is the unique name of the menu you are adding to. The value can be found in the database under table menu_custom and column menu_name. Plid is the parent mlid that the menu item is assigned to. 0 for the root of the menu.

Tags: 

Updating Individual Node Path via API when using Pathauto in Drupal 6

When saving a node using node_save, the path is not saved when pathauto is enabled for the node type being saved. An exception can be added to the url_alias table using path_set_alias.

Tags: 

Migrating Drupal 6 CCK Programmatically – Add New Fields

Here is a method for adding new CCK fields to an existing content types and distributing those changes to multiple environments. See previous post for adding an entire content type.

Install the Install Profile API module from http://drupal.org/project/install_profile_api.

Tags: 

Migrating Drupal 6 CCK Programmatically - New Node Types

CCK allows you to add custom content (node) types to Drupal. However, there is no automated method for migrating these content types to multiple environments, such as local developer machines, integration, quality assurance, staging and production servers.

CCK offers a manually executed export/import process, located at /admin/content/types/export. This works well for migrating from one environment to another. However, this process is time consuming and difficult to track when dealing with multiple target environments running different versions of your node types.

Tags: