Build modes

Component ID

681664

Component name

Build modes

Component type

module

Maintenance status

Development status

Component security advisory coverage

not-covered

Downloads

2421

Component created

Component changed

Component body

The Drupal Build modes module allows a site administrator to add node build modes via the administration user interface.

Build modes are a feature in CCK that expand Drupal's node displays beyond just full, teaser, print and RSS. You can define any number of new build modes either in code using CCK's hook_content_build_modes(). (For information about the hook, see the implementations CCK provides on behalf of core.)

When you create a new build mode, you can set up display options for this build mode, use the build mode in Views, themes or your custom code.

Important

  • You must use strict comparisons when checking build modes. This module defines build modes as a string, but core's NODE_BUILD_NORMAL constant is 0. In PHP without strict comparison 0 is equal to 'any string'.
  • Teasers of node body content are not available in other build modes. You must provide this value in some other way if you want to use it in a template.

Drupal 7

The Drupal 7 successor of Build modes module is Entity view modes by Dave Reid. Please read carefully Entity view modes description to understand the difference with Display Suite which you should take a look to.