features for beginners drupal 7 · features for absolute beginners (d7) alison mccauley cornell...

13
Features for Beginners CORNELL DRUPALCAMP 2016 Drupal 7

Upload: others

Post on 24-Jun-2020

7 views

Category:

Documents


0 download

TRANSCRIPT

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

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

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

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

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

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

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

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

*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

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

[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

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

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

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