The facilities of Features Drupal module

34
Using Features module The facilities of Features Drupal module Wednesday, November 30, 2011

Transcript of The facilities of Features Drupal module

Page 1: The facilities of Features Drupal module

Using Features module

The facilities of Features Drupal module

Wednesday, November 30, 2011

Page 2: The facilities of Features Drupal module

About us

Kálmán HosszuFactory Creative StudioHead of Drupal Group

• @kalmanhosszu

• kalman-hosszu.com

Attila Cs. NagyFactory Creative StudioJunior Drupal Developer

• @hairqles

Wednesday, November 30, 2011

Page 3: The facilities of Features Drupal module

Numbers

New commits every two weeks

Latest stable version is not older than 1 month

46 000 site using

In top 50 modules

Wednesday, November 30, 2011

Page 4: The facilities of Features Drupal module

Usage statistics

from drupal.org

Wednesday, November 30, 2011

Page 5: The facilities of Features Drupal module

Cool but why?

Wednesday, November 30, 2011

Page 6: The facilities of Features Drupal module

BeforeWednesday, November 30, 2011

Page 7: The facilities of Features Drupal module

AfterWednesday, November 30, 2011

Page 8: The facilities of Features Drupal module

Content types

Permissions

Views

Panels

Image styles/presets

Exportable settings

Wednesday, November 30, 2011

Page 9: The facilities of Features Drupal module

Felxibility

Features module hooks

API functions

Implementing own (custom) modules

Wednesday, November 30, 2011

Page 10: The facilities of Features Drupal module

Interface

Wednesday, November 30, 2011

Page 11: The facilities of Features Drupal module

Creating pageWednesday, November 30, 2011

Page 12: The facilities of Features Drupal module

Creating pageWednesday, November 30, 2011

Page 13: The facilities of Features Drupal module

Listing pageWednesday, November 30, 2011

Page 14: The facilities of Features Drupal module

Status pageWednesday, November 30, 2011

Page 15: The facilities of Features Drupal module

Problems? Solutions!

Wednesday, November 30, 2011

Page 16: The facilities of Features Drupal module

Things that we create over and over again...

Wednesday, November 30, 2011

Page 17: The facilities of Features Drupal module

My news system:

News content type with fieldsListing page with viewsImage stylesContent view

Wednesday, November 30, 2011

Page 18: The facilities of Features Drupal module

Again and again...Wednesday, November 30, 2011

Page 19: The facilities of Features Drupal module

Use Features!Wednesday, November 30, 2011

Page 20: The facilities of Features Drupal module

Deployment workflow

Wednesday, November 30, 2011

Page 21: The facilities of Features Drupal module

Problems

Creating content types...

Setting up views...

Adding new image style...

On live site?!

Wednesday, November 30, 2011

Page 22: The facilities of Features Drupal module

No way!Wednesday, November 30, 2011

Page 23: The facilities of Features Drupal module

dev > staging > productionCode Driven Development

Wednesday, November 30, 2011

Page 24: The facilities of Features Drupal module

Version control

Wednesday, November 30, 2011

Page 25: The facilities of Features Drupal module

Problems

I have to use another computer

I haven’t got backup of my work

Workgroup, we can’t synchronize databases

Wednesday, November 30, 2011

Page 26: The facilities of Features Drupal module

Versioning the code

You’ve got backup

The team can work together

You can use other computers

You can use branches

Wednesday, November 30, 2011

Page 27: The facilities of Features Drupal module

Now you are using Features

Wednesday, November 30, 2011

Page 28: The facilities of Features Drupal module

Best practises

Wednesday, November 30, 2011

Page 29: The facilities of Features Drupal module

Don’t be lazy!Wednesday, November 30, 2011

Page 30: The facilities of Features Drupal module

Thinking in features

Encapsulation

Permission features

Variables into a separate feature

Content types and their views for separate features

Wednesday, November 30, 2011

Page 31: The facilities of Features Drupal module

Drush

Wednesday, November 30, 2011

Page 32: The facilities of Features Drupal module

Cool modules

Diff (http://drupal.org/project/diff)

Strongarm (http://drupal.org/project/strongarm)

Node export (http://drupal.org/project/node_export)

Wednesday, November 30, 2011

Page 33: The facilities of Features Drupal module

Experimental possibilities

Using install profiles

Managing installs with Aegir

Wednesday, November 30, 2011

Page 34: The facilities of Features Drupal module

Questions?Wednesday, November 30, 2011