• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
Introduction to Drupal features
 

Introduction to Drupal features

on

  • 2,994 views

An introduction to features and how to keep your site configuration in code helping you and your team during development and making maintaining a site a breeze

An introduction to features and how to keep your site configuration in code helping you and your team during development and making maintaining a site a breeze

Statistics

Views

Total Views
2,994
Views on SlideShare
2,974
Embed Views
20

Actions

Likes
0
Downloads
0
Comments
0

4 Embeds 20

http://www.slideshare.net 17
http://sken.be 1
http://www.lmodules.com 1
http://www.linkedin.com 1

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    Introduction to Drupal features Introduction to Drupal features Presentation Transcript

    • Using features/ exportables in production @drupalvolcon Antwerp April 20, 2010 Stijn De Meyere @stijndm www.sken.be VILLAVISCOM
    • Stijn De Meyere freelance drupal dev as villaviscom.be working closely with nascom.be @stijndm sken.be Stijn De Meyere @stijndm www.sken.be VILLAVISCOM
    • The problem Development local/online Staging Production Stijn De Meyere @stijndm www.sken.be VILLAVISCOM
    • The problem Different databases No version control Did we do that? Stijn De Meyere @stijndm www.sken.be VILLAVISCOM
    • Solution As much settings as possible in code Stijn De Meyere @stijndm www.sken.be VILLAVISCOM
    • Features drupal.org/project/features Stijn De Meyere @stijndm www.sken.be VILLAVISCOM
    • Features Allows you to export settings that live in the database to code A feature is a module, but more Stijn De Meyere @stijndm www.sken.be VILLAVISCOM
    • Features: exportables Strongarm (variables) Permissions Context Imagecache Views Content (node + cck) Set dependencies Stijn De Meyere @stijndm www.sken.be VILLAVISCOM
    • Features extra drupal.org/project/features_extra Taxonomy (vocabularies) Nodequeue Blocks Stijn De Meyere @stijndm www.sken.be VILLAVISCOM
    • Fun and easy Easy creation Easy additions Diff (drupal.org/project/diff) Easy maintenance with Drush (drush features- update [feature-name] (drupal.org/project/ drush) Acts as a module (because it is a module) Stijn De Meyere @stijndm www.sken.be VILLAVISCOM
    • Fun and easy Except the first export Oh, and don’t forget ... What to do whith stuff already in code? Stijn De Meyere @stijndm www.sken.be VILLAVISCOM
    • When is a module a feature When the .info file has one of these: features[context][] = features[variable][] = features[user][] = features[node][] = features[views][] = Stijn De Meyere @stijndm www.sken.be VILLAVISCOM
    • Why is this important Stijn De Meyere @stijndm www.sken.be VILLAVISCOM
    • Why is this important All (most of) our settings are in code Source control Easy deployment (upload, revert) Operate and support Getting rid of thix (and minimizing template.php) Stijn De Meyere @stijndm www.sken.be VILLAVISCOM
    • Other stuff Stijn De Meyere @stijndm www.sken.be VILLAVISCOM
    • Display Suite Has features support, but not for individual objects Individual display and fields export (settings are in variables) Stijn De Meyere @stijndm www.sken.be VILLAVISCOM
    • Formatters Custom CCK formatters, hand coded or with the help of drupal.org/project/ custom_formatters Stijn De Meyere @stijndm www.sken.be VILLAVISCOM
    • Feature server fserver Stijn De Meyere @stijndm www.sken.be VILLAVISCOM
    • Fserver code.developmentseed.org/featureserver/ node/163 Make you site act as a module/feature server Update notifications Automated release in combination with Project module (drupal.org/project/project) Stijn De Meyere @stijndm www.sken.be VILLAVISCOM
    • Fserver examples fserver.nascom.be/ fserver.pronovix.net/ Stijn De Meyere @stijndm www.sken.be VILLAVISCOM
    • Jump-starting a project Stijn De Meyere @stijndm www.sken.be VILLAVISCOM
    • Jump-starting a project Define default modules Define default features Standardising workflow Drush + Drush Make Stijn De Meyere @stijndm www.sken.be VILLAVISCOM
    • Questions? Stijn De Meyere @stijndm www.sken.be VILLAVISCOM