SlideShare une entreprise Scribd logo
1  sur  16
Intro to Features

    english:               fea· tures (NOUN)
                           A) THE STRUCTURE, FORM, OR APPEARANCE ESPECIALLY
                           OF A PERSON




    drupalese:             fea· tures (module)
                           a) A feature is a collection of Drupal entities which taken
                           together satisfy a certain use-case.




                                                   Presented by Aidan Foster
FOSTER INTERACTIVE                                 afoster@fosterinteractive.com
Web Development + Design                           Linked In: ca.linkedin.com/in/aidanfoster
What is “Features”?



         Slides & Links are posted:
http://fosterinteractive.com/features-intro
A Drupal Module
    that saves your

Checky-Box-Stuff
   to the file system
     (as modules)
Checky Box Stuff ?




   CCK Field + Content Types
Checky Box Stuff ?




       VIEWS
Checky Box Stuff ?




      Permissions
Checky Box Stuff ?
     Add on Modules Extend this to include more
               Drupal “Elements”


Features “Extras” module     “Strongarm” module
•
 Taxonomy Terms            •
 Config Settings used
•
 Nodequeues                by many modules & core
•
 Blocks
                             Commerce Features
                             •
 Product Types
Config Settings                                Module Files
(In Drupal Database)                      (can be version controlled)




CCK Field + Content Types

                            Exported as
                             Modules


         Views




      Permissions
Why is this useful?




Saves time for more important stuff
Basic Uses of Features

  Learning    Learning how other people do
    Drupal    things by installing their features



  Kickstart   Even made 2 “events” content types in
Projects by   Drupal? Why do that work twice -
 Recycling    Export a feature and import to new
              project.
Advanced Uses of Features

    Improved    Different team members work
Collaboration   on database dependant parts at
    Workflow     the same time


   Helps the    This issue comes up where you’ve got
   “content     a live site with changing content.
     Freeze”
 Deployment     Features can help apply changes to the
    Problem     Live server with little or no down-
                time.
Features Setup
   In “Modules” add a few extra folders to keep
   things organized.


/sites/all/modules/contrib    << Put all contributed modules including “features”
                              module in here


/sites/all/modules/custom     << Put you custom project modules in here



/sites/all/modules/features   << Put the modules generated in features here.
Features Setup

Install “Features” and “Strongarm” Modules...


   sites/all/modules/contrib/features
   sites/all/modules/contrib/strongarm


                                   ...then Enable them
LOL CatZ Review so Far

Modules Installed                         What’s Been Done
Views                                     Created “Review”
CCK                                       content Type
Image Cache (and dependant CCK modules)
Admin Menu                                Made Homepage View
Backup & Migrate
Features
Strongarm
Demo #1 - Installing Other
   People’s Features
  http://community.featureservers.org
             (Click Actus)



Demo #2 - Making our own
        feature
Features “Cheat Sheet”
    http://nuvole.org/blog/2011/mar/25/code-driven-
                development-cheatsheet



        Features “Naming Conventions”
http://drupalcode.org/project/kit.git/blob_plain/refs/heads/
                     master:/kitf.txt

Contenu connexe

Tendances

Java database connectivity
Java database connectivityJava database connectivity
Java database connectivityVaishali Modi
 
Java.sql package
Java.sql packageJava.sql package
Java.sql packagemyrajendra
 
Database Access in mule ESB
Database Access in mule ESBDatabase Access in mule ESB
Database Access in mule ESBSrinu Prasad
 
JDBC: java DataBase connectivity
JDBC: java DataBase connectivityJDBC: java DataBase connectivity
JDBC: java DataBase connectivityTanmoy Barman
 
Managing JavaScript Dependencies With RequireJS
Managing JavaScript Dependencies With RequireJSManaging JavaScript Dependencies With RequireJS
Managing JavaScript Dependencies With RequireJSDen Odell
 
vBrownBag 2015-07-08 - VCP6-DCV Foundations Section 7: Monitoring
vBrownBag 2015-07-08 - VCP6-DCV Foundations Section 7: MonitoringvBrownBag 2015-07-08 - VCP6-DCV Foundations Section 7: Monitoring
vBrownBag 2015-07-08 - VCP6-DCV Foundations Section 7: MonitoringDan Barr
 
Jdbc in servlets
Jdbc in servletsJdbc in servlets
Jdbc in servletsNuha Noor
 
Interface callable statement
Interface callable statementInterface callable statement
Interface callable statementmyrajendra
 
14 asp.net session20
14 asp.net session2014 asp.net session20
14 asp.net session20Niit Care
 
Staying Sane with Drupal NEPHP
Staying Sane with Drupal NEPHPStaying Sane with Drupal NEPHP
Staying Sane with Drupal NEPHPOscar Merida
 
Develop plugin for Mozilla Firefox and structure a JS-based application
Develop plugin for Mozilla Firefox and structure a JS-based applicationDevelop plugin for Mozilla Firefox and structure a JS-based application
Develop plugin for Mozilla Firefox and structure a JS-based applicationAfshin Mehrabani
 
Java- JDBC- Mazenet Solution
Java- JDBC- Mazenet SolutionJava- JDBC- Mazenet Solution
Java- JDBC- Mazenet SolutionMazenetsolution
 
Drupal module development training delhi
Drupal module development training delhiDrupal module development training delhi
Drupal module development training delhiunitedwebsoft
 
Jsp (java server page)
Jsp (java server page)Jsp (java server page)
Jsp (java server page)Chitrank Dixit
 

Tendances (20)

Java database connectivity
Java database connectivityJava database connectivity
Java database connectivity
 
Java.sql package
Java.sql packageJava.sql package
Java.sql package
 
Database Access in mule ESB
Database Access in mule ESBDatabase Access in mule ESB
Database Access in mule ESB
 
JDBC: java DataBase connectivity
JDBC: java DataBase connectivityJDBC: java DataBase connectivity
JDBC: java DataBase connectivity
 
Managing JavaScript Dependencies With RequireJS
Managing JavaScript Dependencies With RequireJSManaging JavaScript Dependencies With RequireJS
Managing JavaScript Dependencies With RequireJS
 
vBrownBag 2015-07-08 - VCP6-DCV Foundations Section 7: Monitoring
vBrownBag 2015-07-08 - VCP6-DCV Foundations Section 7: MonitoringvBrownBag 2015-07-08 - VCP6-DCV Foundations Section 7: Monitoring
vBrownBag 2015-07-08 - VCP6-DCV Foundations Section 7: Monitoring
 
JDBC Tutorial
JDBC TutorialJDBC Tutorial
JDBC Tutorial
 
Jdbc in servlets
Jdbc in servletsJdbc in servlets
Jdbc in servlets
 
Interface callable statement
Interface callable statementInterface callable statement
Interface callable statement
 
14 asp.net session20
14 asp.net session2014 asp.net session20
14 asp.net session20
 
jsf2 Notes
jsf2 Notesjsf2 Notes
jsf2 Notes
 
Staying Sane with Drupal NEPHP
Staying Sane with Drupal NEPHPStaying Sane with Drupal NEPHP
Staying Sane with Drupal NEPHP
 
Develop plugin for Mozilla Firefox and structure a JS-based application
Develop plugin for Mozilla Firefox and structure a JS-based applicationDevelop plugin for Mozilla Firefox and structure a JS-based application
Develop plugin for Mozilla Firefox and structure a JS-based application
 
Jdbc Ppt
Jdbc PptJdbc Ppt
Jdbc Ppt
 
Java- JDBC- Mazenet Solution
Java- JDBC- Mazenet SolutionJava- JDBC- Mazenet Solution
Java- JDBC- Mazenet Solution
 
Drupal module development training delhi
Drupal module development training delhiDrupal module development training delhi
Drupal module development training delhi
 
Jdbc
JdbcJdbc
Jdbc
 
java Jdbc
java Jdbc java Jdbc
java Jdbc
 
Jsp (java server page)
Jsp (java server page)Jsp (java server page)
Jsp (java server page)
 
Jdbc
JdbcJdbc
Jdbc
 

Similaire à Intro to Features Module on Drupal

Features and Context Overview
Features and Context OverviewFeatures and Context Overview
Features and Context Overviewbrentratliff
 
Features everywhere
Features everywhere Features everywhere
Features everywhere Mediacurrent
 
IBM Drupal Users Group Discussion on Managing and Deploying Configuration
IBM Drupal Users Group Discussion on Managing and Deploying ConfigurationIBM Drupal Users Group Discussion on Managing and Deploying Configuration
IBM Drupal Users Group Discussion on Managing and Deploying ConfigurationDevelopment Seed
 
Features & Installation Profiles
Features & Installation ProfilesFeatures & Installation Profiles
Features & Installation ProfilesDavid Watson
 
Building and Deployment of Drupal sites with Features and Context
Building and Deployment of Drupal sites with Features and ContextBuilding and Deployment of Drupal sites with Features and Context
Building and Deployment of Drupal sites with Features and ContextSvilen Sabev
 
Drupal distributions - how to build them
Drupal distributions - how to build themDrupal distributions - how to build them
Drupal distributions - how to build themDick Olsson
 
Beginner's guide to drupal
Beginner's guide to drupalBeginner's guide to drupal
Beginner's guide to drupalmayank.grd
 
Anna Fedoruk.Theworkflow.DrupalCamp Kyiv 2011
Anna Fedoruk.Theworkflow.DrupalCamp Kyiv 2011Anna Fedoruk.Theworkflow.DrupalCamp Kyiv 2011
Anna Fedoruk.Theworkflow.DrupalCamp Kyiv 2011camp_drupal_ua
 
Building a Drupal Distribution using Features, Drush Make, Installation Profi...
Building a Drupal Distribution using Features, Drush Make, Installation Profi...Building a Drupal Distribution using Features, Drush Make, Installation Profi...
Building a Drupal Distribution using Features, Drush Make, Installation Profi...Ben Shell
 
Drupal as a Programmer-Friendly CMS at ConFoo
Drupal as a Programmer-Friendly CMS at ConFooDrupal as a Programmer-Friendly CMS at ConFoo
Drupal as a Programmer-Friendly CMS at ConFooSuzanne Dergacheva
 
Drupal: Reusing functionality
Drupal: Reusing functionalityDrupal: Reusing functionality
Drupal: Reusing functionalityRaymond Muilwijk
 
Features: safely deploying your site
Features: safely deploying your siteFeatures: safely deploying your site
Features: safely deploying your siteJoão Ventura
 
Introduction to Drupal, Wayne Eaker, Nov 11, 09
Introduction to Drupal, Wayne Eaker, Nov 11, 09 Introduction to Drupal, Wayne Eaker, Nov 11, 09
Introduction to Drupal, Wayne Eaker, Nov 11, 09 Lunch Ann Arbor Marketing
 
Drupal Presentation for CapitalCamp 2011: Features Driven Development
Drupal Presentation for CapitalCamp 2011: Features Driven DevelopmentDrupal Presentation for CapitalCamp 2011: Features Driven Development
Drupal Presentation for CapitalCamp 2011: Features Driven DevelopmentMediacurrent
 
Easy Drupal Project Deployment With Features Module & Drush
Easy Drupal Project Deployment With Features Module & DrushEasy Drupal Project Deployment With Features Module & Drush
Easy Drupal Project Deployment With Features Module & DrushQArea
 
Introduction to the features module
Introduction to the features moduleIntroduction to the features module
Introduction to the features moduleJoão Ventura
 

Similaire à Intro to Features Module on Drupal (20)

Features and Context Overview
Features and Context OverviewFeatures and Context Overview
Features and Context Overview
 
Features everywhere
Features everywhere Features everywhere
Features everywhere
 
IBM Drupal Users Group Discussion on Managing and Deploying Configuration
IBM Drupal Users Group Discussion on Managing and Deploying ConfigurationIBM Drupal Users Group Discussion on Managing and Deploying Configuration
IBM Drupal Users Group Discussion on Managing and Deploying Configuration
 
Features & Installation Profiles
Features & Installation ProfilesFeatures & Installation Profiles
Features & Installation Profiles
 
Drupal distribution
Drupal distributionDrupal distribution
Drupal distribution
 
Building and Deployment of Drupal sites with Features and Context
Building and Deployment of Drupal sites with Features and ContextBuilding and Deployment of Drupal sites with Features and Context
Building and Deployment of Drupal sites with Features and Context
 
Features
FeaturesFeatures
Features
 
Drupal distributions - how to build them
Drupal distributions - how to build themDrupal distributions - how to build them
Drupal distributions - how to build them
 
Beginner's guide to drupal
Beginner's guide to drupalBeginner's guide to drupal
Beginner's guide to drupal
 
Anna Fedoruk.Theworkflow.DrupalCamp Kyiv 2011
Anna Fedoruk.Theworkflow.DrupalCamp Kyiv 2011Anna Fedoruk.Theworkflow.DrupalCamp Kyiv 2011
Anna Fedoruk.Theworkflow.DrupalCamp Kyiv 2011
 
Recipes for Drupal distributions
Recipes for Drupal distributionsRecipes for Drupal distributions
Recipes for Drupal distributions
 
Building a Drupal Distribution using Features, Drush Make, Installation Profi...
Building a Drupal Distribution using Features, Drush Make, Installation Profi...Building a Drupal Distribution using Features, Drush Make, Installation Profi...
Building a Drupal Distribution using Features, Drush Make, Installation Profi...
 
Drupal as a Programmer-Friendly CMS at ConFoo
Drupal as a Programmer-Friendly CMS at ConFooDrupal as a Programmer-Friendly CMS at ConFoo
Drupal as a Programmer-Friendly CMS at ConFoo
 
Drupal: Reusing functionality
Drupal: Reusing functionalityDrupal: Reusing functionality
Drupal: Reusing functionality
 
Features: safely deploying your site
Features: safely deploying your siteFeatures: safely deploying your site
Features: safely deploying your site
 
Introduction to Drupal, Wayne Eaker, Nov 11, 09
Introduction to Drupal, Wayne Eaker, Nov 11, 09 Introduction to Drupal, Wayne Eaker, Nov 11, 09
Introduction to Drupal, Wayne Eaker, Nov 11, 09
 
Using Features
Using FeaturesUsing Features
Using Features
 
Drupal Presentation for CapitalCamp 2011: Features Driven Development
Drupal Presentation for CapitalCamp 2011: Features Driven DevelopmentDrupal Presentation for CapitalCamp 2011: Features Driven Development
Drupal Presentation for CapitalCamp 2011: Features Driven Development
 
Easy Drupal Project Deployment With Features Module & Drush
Easy Drupal Project Deployment With Features Module & DrushEasy Drupal Project Deployment With Features Module & Drush
Easy Drupal Project Deployment With Features Module & Drush
 
Introduction to the features module
Introduction to the features moduleIntroduction to the features module
Introduction to the features module
 

Plus de Aidan Foster

6 UX Mistakes to Avoid on Your Next Site Redesign
6 UX Mistakes to Avoid on Your Next Site Redesign6 UX Mistakes to Avoid on Your Next Site Redesign
6 UX Mistakes to Avoid on Your Next Site RedesignAidan Foster
 
6 UX Tips for a successful site redesign
6 UX Tips for a successful site redesign6 UX Tips for a successful site redesign
6 UX Tips for a successful site redesignAidan Foster
 
5 User Experience Tips for a Successful Site Redesign
5 User Experience Tips for a Successful Site Redesign5 User Experience Tips for a Successful Site Redesign
5 User Experience Tips for a Successful Site RedesignAidan Foster
 
A user experience focused case study of Woodsworth College U of T - UnITe TKE...
A user experience focused case study of Woodsworth College U of T - UnITe TKE...A user experience focused case study of Woodsworth College U of T - UnITe TKE...
A user experience focused case study of Woodsworth College U of T - UnITe TKE...Aidan Foster
 
Advanced Front End Architecture in D8: Sass, Gulp, & Living Style Guides
Advanced Front End Architecture in D8: Sass, Gulp, & Living Style GuidesAdvanced Front End Architecture in D8: Sass, Gulp, & Living Style Guides
Advanced Front End Architecture in D8: Sass, Gulp, & Living Style GuidesAidan Foster
 
The state of front end architecture_in_2015
The state of front end architecture_in_2015The state of front end architecture_in_2015
The state of front end architecture_in_2015Aidan Foster
 
Responsive Themeing With Aurora Theme, SASS, and BEM Syntax (Drupal Camp Toro...
Responsive Themeing With Aurora Theme, SASS, and BEM Syntax (Drupal Camp Toro...Responsive Themeing With Aurora Theme, SASS, and BEM Syntax (Drupal Camp Toro...
Responsive Themeing With Aurora Theme, SASS, and BEM Syntax (Drupal Camp Toro...Aidan Foster
 
A Responsive Design Case Study - What We Did Wrong Building ResponsiveDesign....
A Responsive Design Case Study - What We Did Wrong Building ResponsiveDesign....A Responsive Design Case Study - What We Did Wrong Building ResponsiveDesign....
A Responsive Design Case Study - What We Did Wrong Building ResponsiveDesign....Aidan Foster
 
Responsive Web Design - Introduction & Workflow Overview
Responsive Web Design - Introduction & Workflow OverviewResponsive Web Design - Introduction & Workflow Overview
Responsive Web Design - Introduction & Workflow OverviewAidan Foster
 
Simplifying End-user Drupal 7 Content Administration
Simplifying End-user Drupal 7 Content Administration Simplifying End-user Drupal 7 Content Administration
Simplifying End-user Drupal 7 Content Administration Aidan Foster
 
Production process presentation - drupalcamp Toronto 2010
Production process presentation - drupalcamp Toronto 2010Production process presentation - drupalcamp Toronto 2010
Production process presentation - drupalcamp Toronto 2010Aidan Foster
 

Plus de Aidan Foster (11)

6 UX Mistakes to Avoid on Your Next Site Redesign
6 UX Mistakes to Avoid on Your Next Site Redesign6 UX Mistakes to Avoid on Your Next Site Redesign
6 UX Mistakes to Avoid on Your Next Site Redesign
 
6 UX Tips for a successful site redesign
6 UX Tips for a successful site redesign6 UX Tips for a successful site redesign
6 UX Tips for a successful site redesign
 
5 User Experience Tips for a Successful Site Redesign
5 User Experience Tips for a Successful Site Redesign5 User Experience Tips for a Successful Site Redesign
5 User Experience Tips for a Successful Site Redesign
 
A user experience focused case study of Woodsworth College U of T - UnITe TKE...
A user experience focused case study of Woodsworth College U of T - UnITe TKE...A user experience focused case study of Woodsworth College U of T - UnITe TKE...
A user experience focused case study of Woodsworth College U of T - UnITe TKE...
 
Advanced Front End Architecture in D8: Sass, Gulp, & Living Style Guides
Advanced Front End Architecture in D8: Sass, Gulp, & Living Style GuidesAdvanced Front End Architecture in D8: Sass, Gulp, & Living Style Guides
Advanced Front End Architecture in D8: Sass, Gulp, & Living Style Guides
 
The state of front end architecture_in_2015
The state of front end architecture_in_2015The state of front end architecture_in_2015
The state of front end architecture_in_2015
 
Responsive Themeing With Aurora Theme, SASS, and BEM Syntax (Drupal Camp Toro...
Responsive Themeing With Aurora Theme, SASS, and BEM Syntax (Drupal Camp Toro...Responsive Themeing With Aurora Theme, SASS, and BEM Syntax (Drupal Camp Toro...
Responsive Themeing With Aurora Theme, SASS, and BEM Syntax (Drupal Camp Toro...
 
A Responsive Design Case Study - What We Did Wrong Building ResponsiveDesign....
A Responsive Design Case Study - What We Did Wrong Building ResponsiveDesign....A Responsive Design Case Study - What We Did Wrong Building ResponsiveDesign....
A Responsive Design Case Study - What We Did Wrong Building ResponsiveDesign....
 
Responsive Web Design - Introduction & Workflow Overview
Responsive Web Design - Introduction & Workflow OverviewResponsive Web Design - Introduction & Workflow Overview
Responsive Web Design - Introduction & Workflow Overview
 
Simplifying End-user Drupal 7 Content Administration
Simplifying End-user Drupal 7 Content Administration Simplifying End-user Drupal 7 Content Administration
Simplifying End-user Drupal 7 Content Administration
 
Production process presentation - drupalcamp Toronto 2010
Production process presentation - drupalcamp Toronto 2010Production process presentation - drupalcamp Toronto 2010
Production process presentation - drupalcamp Toronto 2010
 

Intro to Features Module on Drupal

  • 1. Intro to Features english: fea· tures (NOUN) A) THE STRUCTURE, FORM, OR APPEARANCE ESPECIALLY OF A PERSON drupalese: fea· tures (module) a) A feature is a collection of Drupal entities which taken together satisfy a certain use-case. Presented by Aidan Foster FOSTER INTERACTIVE afoster@fosterinteractive.com Web Development + Design Linked In: ca.linkedin.com/in/aidanfoster
  • 2. What is “Features”? Slides & Links are posted: http://fosterinteractive.com/features-intro
  • 3. A Drupal Module that saves your Checky-Box-Stuff to the file system (as modules)
  • 4. Checky Box Stuff ? CCK Field + Content Types
  • 6. Checky Box Stuff ? Permissions
  • 7. Checky Box Stuff ? Add on Modules Extend this to include more Drupal “Elements” Features “Extras” module “Strongarm” module • Taxonomy Terms • Config Settings used • Nodequeues by many modules & core • Blocks Commerce Features • Product Types
  • 8. Config Settings Module Files (In Drupal Database) (can be version controlled) CCK Field + Content Types Exported as Modules Views Permissions
  • 9. Why is this useful? Saves time for more important stuff
  • 10. Basic Uses of Features Learning Learning how other people do Drupal things by installing their features Kickstart Even made 2 “events” content types in Projects by Drupal? Why do that work twice - Recycling Export a feature and import to new project.
  • 11. Advanced Uses of Features Improved Different team members work Collaboration on database dependant parts at Workflow the same time Helps the This issue comes up where you’ve got “content a live site with changing content. Freeze” Deployment Features can help apply changes to the Problem Live server with little or no down- time.
  • 12. Features Setup In “Modules” add a few extra folders to keep things organized. /sites/all/modules/contrib << Put all contributed modules including “features” module in here /sites/all/modules/custom << Put you custom project modules in here /sites/all/modules/features << Put the modules generated in features here.
  • 13. Features Setup Install “Features” and “Strongarm” Modules... sites/all/modules/contrib/features sites/all/modules/contrib/strongarm ...then Enable them
  • 14. LOL CatZ Review so Far Modules Installed What’s Been Done Views Created “Review” CCK content Type Image Cache (and dependant CCK modules) Admin Menu Made Homepage View Backup & Migrate Features Strongarm
  • 15. Demo #1 - Installing Other People’s Features http://community.featureservers.org (Click Actus) Demo #2 - Making our own feature
  • 16. Features “Cheat Sheet” http://nuvole.org/blog/2011/mar/25/code-driven- development-cheatsheet Features “Naming Conventions” http://drupalcode.org/project/kit.git/blob_plain/refs/heads/ master:/kitf.txt

Notes de l'éditeur

  1. \n
  2. \n
  3. \n
  4. \n
  5. \n
  6. \n
  7. \n
  8. \n
  9. \n
  10. \n
  11. \n
  12. \n
  13. \n
  14. \n
  15. \n
  16. \n