Drupal:features

From EWBTechies Wiki

Jump to: navigation, search

Contents

[edit] Features

[edit] Story

Paul the Programmer keeps changing his mind, he wants the view sidebar block to now print the date. Since Paul is the type that is going to KEEP changing his mind, you are going to make sure all these database changes are logged in the filesystem with features module.

[edit] Goal

  • Combine various Drupal elements intofunction-based “features”, which can be used for deployment

[edit] Reference Material

[edit] Instructions

  1. Install the Features and Diff module
  2. Create a new Feature that encapsulates the geek content type, recent-geeks view/block, geek permissions, and the geek imagecache presets
  3. Go to the features list, it should now say "overridden". Examine the changes of this feature, if everything checks out recreate this feature so you can save it to the file system
  4. Save and extract this feature in sites/all/modules/_custom/features
  5. Enable this feature in Structure > Features
  6. Modify the recent-content-sidebar-block view to display the submission date
  7. See how the features module now says "overridden", click on it, and "Review Overrides" to see how your change resulted in a file system change
  8. Recreate this features module and save it so it does not say overridden anymore
  9. Commit this to the repository