Introduction to Drupal 7 - Working with features
-
Upload
kalin-chernev -
Category
Technology
-
view
1.648 -
download
1
description
Transcript of Introduction to Drupal 7 - Working with features
![Page 1: Introduction to Drupal 7 - Working with features](https://reader036.fdocuments.net/reader036/viewer/2022073011/54b5f5d84a79594d038b45b0/html5/thumbnails/1.jpg)
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](https://reader036.fdocuments.net/reader036/viewer/2022073011/54b5f5d84a79594d038b45b0/html5/thumbnails/2.jpg)
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](https://reader036.fdocuments.net/reader036/viewer/2022073011/54b5f5d84a79594d038b45b0/html5/thumbnails/3.jpg)
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](https://reader036.fdocuments.net/reader036/viewer/2022073011/54b5f5d84a79594d038b45b0/html5/thumbnails/4.jpg)
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](https://reader036.fdocuments.net/reader036/viewer/2022073011/54b5f5d84a79594d038b45b0/html5/thumbnails/5.jpg)
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](https://reader036.fdocuments.net/reader036/viewer/2022073011/54b5f5d84a79594d038b45b0/html5/thumbnails/6.jpg)
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](https://reader036.fdocuments.net/reader036/viewer/2022073011/54b5f5d84a79594d038b45b0/html5/thumbnails/7.jpg)
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](https://reader036.fdocuments.net/reader036/viewer/2022073011/54b5f5d84a79594d038b45b0/html5/thumbnails/8.jpg)
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](https://reader036.fdocuments.net/reader036/viewer/2022073011/54b5f5d84a79594d038b45b0/html5/thumbnails/9.jpg)
Time for questions
Drupalist: Kalin Chernev Course by Init Lab (http://initlab.org) 9
![Page 10: Introduction to Drupal 7 - Working with features](https://reader036.fdocuments.net/reader036/viewer/2022073011/54b5f5d84a79594d038b45b0/html5/thumbnails/10.jpg)
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