Top Banner
Features++ Doing more with features, tips for feature-driven development By Jay Callicott Mediacurrent Consultant Drupalcamp Atlanta 2010 Oct 2, 2010 http://tiny.cc/9r0s3
23

Features++

Jun 21, 2015

Download

Technology

Mediacurrent

Doing more with features, tip for feature-driven development
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Features++

Features++Doing more with features, tips for

feature-driven development

By Jay CallicottMediacurrent ConsultantDrupalcamp Atlanta 2010Oct 2, 2010

http://tiny.cc/9r0s3

Page 2: Features++

Features++ Outline

Features ExtraStrongarm settingsContext & FeaturesPanels & FeaturesAdding stuff that isn't exportableReal World Examples!

Page 3: Features++

Features Extra Module

http://drupal.org/project/features_extraExport items that the features module does supportAdds 'machine_name' option to taxonomy, nodequeue, etcStill in development =(Exportables

Taxonomy (vocab & terms)BlocksNodequeue

Page 4: Features++

Features Extra Nodequeue

Adds a machine name field

Page 5: Features++

Stongarm settings

http://drupal.org/project/strongarmStrongarm lets you override settings A must-have module!

Allows you to export more settingsAnything in variable table

When exporting a content type, strongarm will automatically export many node type settings

Page 6: Features++

Stongarm settings

this can be overwhelming...

Page 7: Features++

Stongarm + content type

Auto-adding node type settings

Page 8: Features++

Context & Features

http://drupal.org/project/contextContext is used primarily for block placement (admin/build/block replacement)Exports to features out of the box(Screenshots next)

Page 9: Features++

Context Example Screenshot

Page 10: Features++

Adding Context to a Feature

Page 11: Features++

Panels & Features

Panels export to features easilyFalls under 'Panels' or 'Page Manager' in dropdown in components

I like panels for node layouts!(screenshots next)

Page 12: Features++

Panels Feature Example

context placed blocks

panel regions & views

Page 13: Features++

Panels Feature Underneath...

Page 14: Features++

Panel Feature Underneath

Using CCK, views, panel, strongarm

Page 15: Features++

Adding a Panel to a Feature

under "Panels" or "Page Manager"

Page 16: Features++

How to export non-exportables

Features doesn't export everything, but it's still a module!Next: simple example, creating a vocabulary with a feature

If you don't trust features_extra this could be helpful...

Page 17: Features++

How to export non-exportables

(Remember features_extra can export taxonomy)Could export nodes (node_export) & use node_save to create on installAnything you can do in a module you can do in a feature

Using hook_install() & hook_uninstall()

Page 18: Features++

Real World Examples!

Seeing is believing, some (more) real world screenshots of feature lists

Page 19: Features++

Real World List Screenshots

Page 20: Features++

Real World List Screenshots

Page 21: Features++

Real World List Screenshots

Page 22: Features++

Real World Screenshots

The trend is I always have at least 1 feature for each content type

Page 23: Features++

The EndResources

DevSeed Bloghttp://developmentseed.org/blog

Features Project Pagehttp://drupal.org/project/features

Strongarm Project Pagehttp://drupal.org/project/strongarm

Features Extra Project Pagehttp://drupal.org/project/features_extra

My DrupalDojo Presentationhttp://drupaldojo.com/session/features-everywhere-feature-driven-development

Hit me up on twitter: http://twitter.com/drupalninja/

Questions??

http://tiny.cc/9r0s3