Introduction to Drupal 7 - Working with features

10
Introduction to Drupal 7 Bonus Session (Session 5.3) Features 1 Course by Init Lab (http://initlab.org) Drupalist: Kalin Chernev

description

Short overview on Features module in Drupal 7. It's more a plus rather than obligatory. Still, dividing your project into features and managing them with the Features is highly recommended.

Transcript of Introduction to Drupal 7 - Working with features

Page 1: Introduction to Drupal 7 -  Working with features

Introduction to Drupal 7

Bonus Session (Session 5.3)

Features

1Course by Init Lab (http://initlab.org)Drupalist: Kalin Chernev

Page 2: Introduction to Drupal 7 -  Working with features

Agenda

• What is Features and reasons to use

• Advantages of using Features

• Common ways to compile functionalities

• Enabling a feature

2Course by Init Lab (http://initlab.org)Drupalist: Kalin Chernev

Page 3: Introduction to Drupal 7 -  Working with features

Features

• A Drupal modules: http://drupal.org/project/features

• Set of combined Drupal functionalities

• Configurations from database into code

• Reusable functionalities through websites

• A Drupal feature might be

– Dynamic news section

– Dynamic gallery section

– Block with latest registered members

Drupalist: Kalin Chernev Course by Init Lab (http://initlab.org) 3

Page 4: Introduction to Drupal 7 -  Working with features

Features

Drupalist: Kalin Chernev Course by Init Lab (http://initlab.org) 4

Source: http://www.lullabot.com/articles/features-module

Page 5: Introduction to Drupal 7 -  Working with features

Advantages of using Features

• Export of database configurations into code

• Code can be kept into versioning system

• Code can be easily transferred through different website instances

• You can reuse functionalities and save time

Drupalist: Kalin Chernev Course by Init Lab (http://initlab.org) 5

Page 6: Introduction to Drupal 7 -  Working with features

Common features combinations

The most important paradigm is to separate functionalities in a way to keep them independent from each other. If you want and do a change in time, it should not affect other features in the best case

Common combinations are– Content type + its fields + the view they use

– Views pages and blocks with their panels

– Content type + Views

– Taxonomy vocabularies by purpose

– Roles and permissions by role/purpose

Drupalist: Kalin Chernev Course by Init Lab (http://initlab.org) 6

Page 7: Introduction to Drupal 7 -  Working with features

Enabling features

• Features can be enabled as any other module

• Features can be also enabled from the Features management panel at the Administration > Structure > Features

Drupalist: Kalin Chernev Course by Init Lab (http://initlab.org) 7

Page 8: Introduction to Drupal 7 -  Working with features

Useful links on Features

• Bundling site settings using Features

• Making and Using Features in Drupal

• Introduction to Drupal Features module

• The Features Module (again Lullabot)

Drupalist: Kalin Chernev Course by Init Lab (http://initlab.org) 8

Page 9: Introduction to Drupal 7 -  Working with features

Time for questions

Drupalist: Kalin Chernev Course by Init Lab (http://initlab.org) 9

Page 10: Introduction to Drupal 7 -  Working with features

Contacts

Kalin Chernev

– E: [email protected]

– T: twitter.com/kalinchernev

– U: http://shtrak.eu/kalata

Drupalist: Kalin Chernev Course by Init Lab (http://initlab.org) 10