drupal 7 tutorial: features module
TRANSCRIPT
![Page 1: Drupal 7 Tutorial: Features Module](https://reader033.vdocuments.us/reader033/viewer/2022042714/554ae1a8b4c905852a8b4864/html5/thumbnails/1.jpg)
FEATURES MODULE Drupal 7 Webinar
![Page 2: Drupal 7 Tutorial: Features Module](https://reader033.vdocuments.us/reader033/viewer/2022042714/554ae1a8b4c905852a8b4864/html5/thumbnails/2.jpg)
Presented By
![Page 3: Drupal 7 Tutorial: Features Module](https://reader033.vdocuments.us/reader033/viewer/2022042714/554ae1a8b4c905852a8b4864/html5/thumbnails/3.jpg)
Prasad ShirgaonkarCurriculum Developer, Acquia Learning Services"
• Designs and conducts Training programs on Drupal and Acquia Products!
• Over 20 years of Industry experience, 7 years on Drupal!
• In past, worked on 200+ Drupal projects @prasadshir
![Page 4: Drupal 7 Tutorial: Features Module](https://reader033.vdocuments.us/reader033/viewer/2022042714/554ae1a8b4c905852a8b4864/html5/thumbnails/4.jpg)
The Config Management Challenge
How to copy or move site configurations between environments?
![Page 5: Drupal 7 Tutorial: Features Module](https://reader033.vdocuments.us/reader033/viewer/2022042714/554ae1a8b4c905852a8b4864/html5/thumbnails/5.jpg)
Drupal Development Workflow
GIT$
DB$
CODE$
DB$
CODE$
DB$
CODE$
![Page 6: Drupal 7 Tutorial: Features Module](https://reader033.vdocuments.us/reader033/viewer/2022042714/554ae1a8b4c905852a8b4864/html5/thumbnails/6.jpg)
Drupal Site Components
Code%
• Modules%• Themes%
Config%ura3ons%
• Content%Types%• Views%
Content%• Nodes%• Terms%
![Page 7: Drupal 7 Tutorial: Features Module](https://reader033.vdocuments.us/reader033/viewer/2022042714/554ae1a8b4c905852a8b4864/html5/thumbnails/7.jpg)
Drupal Site Components
Code Files
Database
Database
Code%
• Modules%• Themes%
Config%ura3ons%
• Content%Types%• Views%
Content%• Nodes%• Terms%
![Page 8: Drupal 7 Tutorial: Features Module](https://reader033.vdocuments.us/reader033/viewer/2022042714/554ae1a8b4c905852a8b4864/html5/thumbnails/8.jpg)
Initial Development
DB#
CODE#
GIT#
DB#
CODE#
DB#
CODE#
DB#
CODE#
In#Sync!#
![Page 9: Drupal 7 Tutorial: Features Module](https://reader033.vdocuments.us/reader033/viewer/2022042714/554ae1a8b4c905852a8b4864/html5/thumbnails/9.jpg)
Continuous Workflow
DB#
CODE#
DB#
CODE#
Changed#
![Page 10: Drupal 7 Tutorial: Features Module](https://reader033.vdocuments.us/reader033/viewer/2022042714/554ae1a8b4c905852a8b4864/html5/thumbnails/10.jpg)
How do we manage site configurations?
![Page 11: Drupal 7 Tutorial: Features Module](https://reader033.vdocuments.us/reader033/viewer/2022042714/554ae1a8b4c905852a8b4864/html5/thumbnails/11.jpg)
FeaturesThere’s a module for that!
![Page 13: Drupal 7 Tutorial: Features Module](https://reader033.vdocuments.us/reader033/viewer/2022042714/554ae1a8b4c905852a8b4864/html5/thumbnails/13.jpg)
Features Module• Enables the capture
and management of features in Drupal. !
• A feature is a collection of Drupal entities which taken together satisfy a certain use-case.!
• Converts and stores site configurations in code rather than in DB!
![Page 14: Drupal 7 Tutorial: Features Module](https://reader033.vdocuments.us/reader033/viewer/2022042714/554ae1a8b4c905852a8b4864/html5/thumbnails/14.jpg)
Features Applications• Move your site configurations from database
to code making them easier to • Move between environments• Check-in in a version control system• Distribute independently as ‘features’ and
re-use across different sites
![Page 15: Drupal 7 Tutorial: Features Module](https://reader033.vdocuments.us/reader033/viewer/2022042714/554ae1a8b4c905852a8b4864/html5/thumbnails/15.jpg)
Demo
![Page 16: Drupal 7 Tutorial: Features Module](https://reader033.vdocuments.us/reader033/viewer/2022042714/554ae1a8b4c905852a8b4864/html5/thumbnails/16.jpg)
More Discussion
Understanding intricacies and extending Features
![Page 17: Drupal 7 Tutorial: Features Module](https://reader033.vdocuments.us/reader033/viewer/2022042714/554ae1a8b4c905852a8b4864/html5/thumbnails/17.jpg)
Features Terminology• Revert • Changes your site
configuration in DB to match up with the definitions in the feature module code.
• Code —> DB
!
• Update • Produces a
modified version of your feature module code, which matches up with the configuration found in the DB.
• DB —> Code
![Page 18: Drupal 7 Tutorial: Features Module](https://reader033.vdocuments.us/reader033/viewer/2022042714/554ae1a8b4c905852a8b4864/html5/thumbnails/18.jpg)
What can be ‘feature’ized• Core
• Content Types
• Vocabularies
• User Roles
• Permissions
• Fields
• Text Formats
• Menus
• Image Styles
• Contrib
• Views
• Panels
• Rules
• Contexts
• Display Suite
![Page 19: Drupal 7 Tutorial: Features Module](https://reader033.vdocuments.us/reader033/viewer/2022042714/554ae1a8b4c905852a8b4864/html5/thumbnails/19.jpg)
What cannot be ‘feature’ized• Content • Nodes• Terms• Users• Custom Blocks
![Page 20: Drupal 7 Tutorial: Features Module](https://reader033.vdocuments.us/reader033/viewer/2022042714/554ae1a8b4c905852a8b4864/html5/thumbnails/20.jpg)
Advanced Usage• Strongarm Module • Use for exporting Variables like site name,
slogan etc
• Diff Module • For comparing difference between code and DB
• Drush Integration • features-list (fl), features-components (fc),
features-diff (fd) • features-export (fe), features-revert (fr), features-
update (fu)
![Page 21: Drupal 7 Tutorial: Features Module](https://reader033.vdocuments.us/reader033/viewer/2022042714/554ae1a8b4c905852a8b4864/html5/thumbnails/21.jpg)
Resources• Features Module on D.O.
https://drupal.org/project/features• Features Module Documentation
https://drupal.org/documentation/modules/features
• Strongarm Module https://drupal.org/project/strongarm
• Diff Modulehttps://drupal.org/project/diff
![Page 22: Drupal 7 Tutorial: Features Module](https://reader033.vdocuments.us/reader033/viewer/2022042714/554ae1a8b4c905852a8b4864/html5/thumbnails/22.jpg)
Q + AYour questions please!