Intro to Features Module on Drupal

4,246 views

Published on

0 Comments
3 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
4,246
On SlideShare
0
From Embeds
0
Number of Embeds
765
Actions
Shares
0
Downloads
22
Comments
0
Likes
3
Embeds 0
No embeds

No notes for slide
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • Intro to Features Module on Drupal

    1. 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 FosterFOSTER INTERACTIVE afoster@fosterinteractive.comWeb Development + Design Linked In: ca.linkedin.com/in/aidanfoster
    2. 2. What is “Features”? Slides & Links are posted:http://fosterinteractive.com/features-intro
    3. 3. A Drupal Module that saves yourChecky-Box-Stuff to the file system (as modules)
    4. 4. Checky Box Stuff ? CCK Field + Content Types
    5. 5. Checky Box Stuff ? VIEWS
    6. 6. Checky Box Stuff ? Permissions
    7. 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. 8. Config Settings Module Files(In Drupal Database) (can be version controlled)CCK Field + Content Types Exported as Modules Views Permissions
    9. 9. Why is this useful?Saves time for more important stuff
    10. 10. Basic Uses of Features Learning Learning how other people do Drupal things by installing their features Kickstart Even made 2 “events” content types inProjects by Drupal? Why do that work twice - Recycling Export a feature and import to new project.
    11. 11. Advanced Uses of Features Improved Different team members workCollaboration 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. 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. 13. Features SetupInstall “Features” and “Strongarm” Modules... sites/all/modules/contrib/features sites/all/modules/contrib/strongarm ...then Enable them
    14. 14. LOL CatZ Review so FarModules Installed What’s Been DoneViews Created “Review”CCK content TypeImage Cache (and dependant CCK modules)Admin Menu Made Homepage ViewBackup & MigrateFeaturesStrongarm
    15. 15. Demo #1 - Installing Other People’s Features http://community.featureservers.org (Click Actus)Demo #2 - Making our own feature
    16. 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

    ×