Skip to content

Configuration features

zzolo edited this page Dec 1, 2011 · 5 revisions

Configuration Features are bundled configuration in code, as provided by the Drupal Features module.

These can be found in the codebase at: sites/all/modules/features

Creating New Features

The following is a rough description of guidelines for creating new features.

Most features are content-type related. So, content type related Features include Content type, all Views that display items of this type (even they are displayed on other content types pages), blocks settings for blocks that are displayed on single node display for this content type, etc.

For example, feature for Application content type contains following components:

  • Application content type
  • Fields used for Application and their settings (pulled by Feature automatically)
  • Field Groups used for Application content type (that's why it's important to name them explicitly)
  • ALL Views that display nodes of Application type
  • Settings for blocks that are displayed on Application-related pages. Note: for example, we have a block: "Orgs that created this App" displayed on single App page. This block displays Orgs, not applications. So, we include settings only for this block into Apps feature, NOT View that generates the block.

Updating Features

See Development Workflow.

Features

All links are to the main application and will require admin access. To list all Features, go to: admin/structure/features.

Applications

  • Machine name: cc_applications
  • Focused on structures related to the Application content type.
  • Includes: Application content type, Fields, Views, Block settings
  • Application Feature details

Content Creation

Contexts

  • Machine name: cc_contexts
  • Focused on Context structures.
  • Includes: Contextx
  • Contexts Feature details
  • Note: The general nature of this feature will cause some maintainability issues down the line.

Flags

  • Machine name: cc_flags
  • Focused on Flag structures.
  • Includes: Block settings, Flags
  • Flags Feature details
  • Note: The general nature of this feature will cause some maintainability issues down the line.

Interactions

  • Machine name: cc_interactions
  • Focused on structures related to the Interaction content type.
  • Includes: Interaction content type, Fields, Views
  • Interaction Feature details

Menus

  • Machine name: cc_menus
  • Focused on various menus and specific links.
  • Includes: Menus and Menu Links
  • Menus Feature details
  • Note: The general nature of this feature will cause some maintainability issues down the line.

Organization

  • Machine name: cc_organization
  • Focused on structures related to the Organization content type.
  • Includes: Organization content type, Fields, Views
  • Organization Feature details

Places

  • Machine name: cc_places_feature
  • Focused on structures related to Places (custom thing?).
  • Includes: Block settings, OpenLayers objects, Views
  • Places Feature details

Project

  • Machine name: cc_project
  • Focused on structures related to the Project content type.
  • Includes: Organization content type, Fields, Views
  • Project Feature details

Standard

  • Machine name: cc_standard
  • Focused on structures related to the Standard content type.
  • Includes: Organization content type, Fields, Views
  • Standard Feature details

User Feature