Drupal Features is one of the best module for the smart drupal developers.
It gives alot of power to developers and save huge development efforts if some feature needs to be implemented again and again in different websites.
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Drupal Features Module by New Tech Fusion presentation
1. Features Drupal Module
a better way to package stuff
www.newtechfusion.com 22 Press Complex,
Indore, MP India 452001
Phn No : +91-731-4050926
1www.newtechfusion.com
2. Introduction
• Features is a Drupal module created by
Development Seed.
• It enables ‘Features’ to be created which
package CCK types, Views, Contexts and
more
• It moves configuration from the database
to code
2www.newtechfusion.com
3. What is a Feature?
• A Feature is a special kind of module.
• Features consist of generated code
• Features are created via the admin UI
• Features have version numbers
3www.newtechfusion.com
4. Why use Features?
Re-use configuration settings; and
Add configuration settings to version
control.
4www.newtechfusion.com
5. How to create a simple Features mini-module
•Create a new content type and its
associated view to export via features.
•Install features module using
https://drupal.org/project/features
•Visit the Features administration page you
will get message
“No Features were found. Please use the Create Feature link to
create a new Feature”
5www.newtechfusion.com
6. How to create a simple Features mini-module
At this point, you want to visit the Create
Feature tab to begin creating the new feature.
You will need to enter a name and description for the feature.
6www.newtechfusion.com
7. How to create a simple Features mini-module
We build the feature by selecting components
from the Edit components drop-down menu
for both content type and views .
To do this, we select ‘Content types’ from the drop-down, and select ‘News’
from the checkbox list that appears.
7www.newtechfusion.com
8. How to create a simple Features mini-module
Once you do this, you will notice a table
appear to the right. This shows you the
components that make up your mini-module
8www.newtechfusion.com
9. Final Step
And the final step is to hit the ‘Download’
button to download the feature.
The feature mini-module is supplied as a TAR
file, that you will need to extract to one of the
places that Drupal looks for modules.
9www.newtechfusion.com
10. Final Step
Once you’ve installed the mini-module you
should see something like the following in the
Features admin page:
The final step is to enable the mini-module and it’s all done.
10www.newtechfusion.com
11. What things can be stored in a Features mini-
module?
Content types,
Module dependencies,
Fields (D7),
Menus,
Individual menu items,
User Roles,
Permissions,
Taxonomies,
Input flter Formats, and
Image formats (D7)
11www.newtechfusion.com
12. What things can be stored in a Features mini-
module?
Context,
Strongarm,
Boxes,
CCK (D6), and
Rules
Other modules that provide support for exporting to Features
include:
12www.newtechfusion.com