Features for Beginners Drupal 7 · Features for Absolute Beginners (D7) Alison McCauley Cornell...
Transcript of Features for Beginners Drupal 7 · Features for Absolute Beginners (D7) Alison McCauley Cornell...
![Page 1: Features for Beginners Drupal 7 · Features for Absolute Beginners (D7) Alison McCauley Cornell University, Drupal Developer (CIT-Custom Development) alison@cornell.edu alisonjo2786](https://reader033.fdocuments.us/reader033/viewer/2022060318/5f0ca5487e708231d4366fb1/html5/thumbnails/1.jpg)
Features for Beginners
CORNELL DRUPALCAMP 2016
Drupal 7
⌃
![Page 2: Features for Beginners Drupal 7 · Features for Absolute Beginners (D7) Alison McCauley Cornell University, Drupal Developer (CIT-Custom Development) alison@cornell.edu alisonjo2786](https://reader033.fdocuments.us/reader033/viewer/2022060318/5f0ca5487e708231d4366fb1/html5/thumbnails/2.jpg)
Features for Absolute Beginners (D7)Alison McCauleyCornell University, Drupal Developer (CIT-Custom Development)[email protected] alisonjo2786 on Drupal.org, Twitter, Github, Google
![Page 3: Features for Beginners Drupal 7 · Features for Absolute Beginners (D7) Alison McCauley Cornell University, Drupal Developer (CIT-Custom Development) alison@cornell.edu alisonjo2786](https://reader033.fdocuments.us/reader033/viewer/2022060318/5f0ca5487e708231d4366fb1/html5/thumbnails/3.jpg)
What is Features?
Features is an essential tool for...● deploying configurations to your Drupal site● eliminating the need to replicate 100s of clicks between
development and production environments● bundling sets of functionality for reuse● configuration version control
![Page 4: Features for Beginners Drupal 7 · Features for Absolute Beginners (D7) Alison McCauley Cornell University, Drupal Developer (CIT-Custom Development) alison@cornell.edu alisonjo2786](https://reader033.fdocuments.us/reader033/viewer/2022060318/5f0ca5487e708231d4366fb1/html5/thumbnails/4.jpg)
Features are just custom Drupal modules!
![Page 5: Features for Beginners Drupal 7 · Features for Absolute Beginners (D7) Alison McCauley Cornell University, Drupal Developer (CIT-Custom Development) alison@cornell.edu alisonjo2786](https://reader033.fdocuments.us/reader033/viewer/2022060318/5f0ca5487e708231d4366fb1/html5/thumbnails/5.jpg)
We will cover:● Using the Features user interface to...
○ create a new feature○ enable/disable features○ examine overrides○ recreate and/or revert an existing feature○ examine feature conflicts
● Using Drush to...○ do most of the same stuff -- from the command line
● And, we’ll look at Feature files.
![Page 6: Features for Beginners Drupal 7 · Features for Absolute Beginners (D7) Alison McCauley Cornell University, Drupal Developer (CIT-Custom Development) alison@cornell.edu alisonjo2786](https://reader033.fdocuments.us/reader033/viewer/2022060318/5f0ca5487e708231d4366fb1/html5/thumbnails/6.jpg)
What can you “featurize” OOTB?● Content types● Custom fields● Image styles● Vocabularies● Text formats● User roles & permissions
![Page 7: Features for Beginners Drupal 7 · Features for Absolute Beginners (D7) Alison McCauley Cornell University, Drupal Developer (CIT-Custom Development) alison@cornell.edu alisonjo2786](https://reader033.fdocuments.us/reader033/viewer/2022060318/5f0ca5487e708231d4366fb1/html5/thumbnails/7.jpg)
What contrib modules play nicelywith Features?
● Blocks*● CKEditor / WYSIWYG● Context● Ctools / Page manager / Panels● Custom Formatters● Date*● Display Suite● Entity API● File entity
● Flag● LinkIt● Organic Groups● Pathauto● Radioactivity● Rules● Strongarm● Workbench Moderation● Views
To name a few...
...and many more!*with Features Extra
![Page 8: Features for Beginners Drupal 7 · Features for Absolute Beginners (D7) Alison McCauley Cornell University, Drupal Developer (CIT-Custom Development) alison@cornell.edu alisonjo2786](https://reader033.fdocuments.us/reader033/viewer/2022060318/5f0ca5487e708231d4366fb1/html5/thumbnails/8.jpg)
*Any module can be built to allow for exporting configuration with Features
* No really! It’s like Benjamin Franklin said, nothing’s certain but death, taxes, and that there’s
nothing you can’t do in Drupal!
![Page 9: Features for Beginners Drupal 7 · Features for Absolute Beginners (D7) Alison McCauley Cornell University, Drupal Developer (CIT-Custom Development) alison@cornell.edu alisonjo2786](https://reader033.fdocuments.us/reader033/viewer/2022060318/5f0ca5487e708231d4366fb1/html5/thumbnails/9.jpg)
Time for the demo!
![Page 10: Features for Beginners Drupal 7 · Features for Absolute Beginners (D7) Alison McCauley Cornell University, Drupal Developer (CIT-Custom Development) alison@cornell.edu alisonjo2786](https://reader033.fdocuments.us/reader033/viewer/2022060318/5f0ca5487e708231d4366fb1/html5/thumbnails/10.jpg)
[Demo: Try this at home!]● Contrib modules:
○ features*○ admin_menu○ ctools*○ diff*○ pathauto○ token○ strongarm*
● Core modules:○ comment○ contextual○ field_ui*○ file○ path
![Page 11: Features for Beginners Drupal 7 · Features for Absolute Beginners (D7) Alison McCauley Cornell University, Drupal Developer (CIT-Custom Development) alison@cornell.edu alisonjo2786](https://reader033.fdocuments.us/reader033/viewer/2022060318/5f0ca5487e708231d4366fb1/html5/thumbnails/11.jpg)
Bonus Round!● features_master● features_extra● features-clone (drush)● BOLO:
○ "active tab," "last cron," etc.○ removing stuff○ what to bundle with what??○ role ID's○ menus
![Page 12: Features for Beginners Drupal 7 · Features for Absolute Beginners (D7) Alison McCauley Cornell University, Drupal Developer (CIT-Custom Development) alison@cornell.edu alisonjo2786](https://reader033.fdocuments.us/reader033/viewer/2022060318/5f0ca5487e708231d4366fb1/html5/thumbnails/12.jpg)
Questions?
![Page 13: Features for Beginners Drupal 7 · Features for Absolute Beginners (D7) Alison McCauley Cornell University, Drupal Developer (CIT-Custom Development) alison@cornell.edu alisonjo2786](https://reader033.fdocuments.us/reader033/viewer/2022060318/5f0ca5487e708231d4366fb1/html5/thumbnails/13.jpg)
Resources● Features module: drupal.org/project/features● Mike Potter’s 2012 BADCamp session: http://goo.gl/bMkybY ● Features video intro and tutorial by Mustardseed Media:
http://goo.gl/c4QrmG● KIT Feature Specification https://goo.gl/mKDMlD
Alison McCauleyCornell University, Drupal Developer (CIT-Custom Development)[email protected] on Drupal.org, Twitter, Github, Google