Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Drupal Patterms Module V3


Published on


Check out the video here:

Drupal is an amazing framework. Complicated websites and web applications can be created by combining configurations of Modules, Content Types (CCK,) Views, Panels, Menus, Blocks, Categories, Roles & Permissions. This site setup and configuration process is very time consuming and repetitive.

This process can and should be automated! Site configuration should also be stored in a format that is easy to read, modify, manage, & share. The Patterns Module is about solving these issues and more.

Published in: Technology
  • Be the first to comment

Drupal Patterms Module V3

  1. 1. <ul><ul><li>Chris Bryant | | Drupalcon DC 2009 </li></ul></ul>
  2. 2. Automating Site Setup and Configuration
  3. 3. How did we get here? <ul><li>Feature rich websites to be created with very little custom programming: </li></ul><ul><ul><li>Core (Menus, Blocks, Roles, Permissions...) </li></ul></ul><ul><ul><li>CCK, Views, Panels, etc... </li></ul></ul><ul><li>Configuration can be complicated </li></ul><ul><li>Endless clicking through forms </li></ul><ul><li>Configuration only resides in the database </li></ul>
  4. 4. Goals & Vision <ul><li>Define & reuse configurations </li></ul><ul><li>Support multiple formats </li></ul><ul><li>Work on existing sites </li></ul><ul><li>Combine features and sub features </li></ul><ul><li>Optional features & gather input from users </li></ul><ul><li>Download modules easily or automatically </li></ul><ul><li>Future: </li></ul><ul><ul><li>Deployment & change management </li></ul></ul><ul><ul><li>Support external services </li></ul></ul>
  5. 5. Ways this can be accomplished <ul><li>One time install </li></ul><ul><li>Features as a Drupal module </li></ul><ul><li>Drupal APIs </li></ul><ul><ul><li>Form API </li></ul></ul><ul><ul><li>Batch API </li></ul></ul><ul><ul><li>Contrib Module APIs </li></ul></ul><ul><li>Other? </li></ul>
  6. 6. Projects Working on This <ul><li>Install Profiles & Install Profile API </li></ul><ul><li>Profile Generator </li></ul><ul><li>Pakgr </li></ul><ul><li>Config to Code </li></ul><ul><li>Context/Spaces </li></ul><ul><li>Patterns </li></ul><ul><li>Deployment </li></ul>
  7. 7. How does Patterns work? <ul><li>Define configurations in PHP, XML, or YAML files </li></ul><ul><li>Choose a pattern and enable it </li></ul><ul><li>Configuration is automated with Batch and Form APIs </li></ul>
  8. 8. Simplify configuration management <ul><li>Easy to read and manage format </li></ul><ul><ul><li>XML </li></ul></ul><ul><ul><li>YAML </li></ul></ul><ul><ul><li>JSON (maybe?) </li></ul></ul><ul><ul><li>Others formats? </li></ul></ul><ul><li>Define small pieces of functionality to combine </li></ul><ul><li>Ability to live in version control </li></ul>
  9. 9. Automate site configuration <ul><li>One click setup of: </li></ul><ul><ul><li>Modules </li></ul></ul><ul><ul><li>Content types and fields </li></ul></ul><ul><ul><li>Views </li></ul></ul><ul><ul><li>Menus </li></ul></ul><ul><ul><li>Blocks </li></ul></ul><ul><ul><li>Roles & permissions </li></ul></ul><ul><li>Combine and choose the patterns that are right for your needs </li></ul>
  10. 10. Collaborate on features and best practices <ul><li>Share patterns to central community Patterns server </li></ul><ul><li>Discuss, comment, & rate online </li></ul><ul><li>Defining functionality, configuration & best practices together </li></ul><ul><li>Write patterns for: </li></ul><ul><ul><li>Development & Administration </li></ul></ul><ul><ul><li>Blogging </li></ul></ul><ul><ul><li>Social Networking </li></ul></ul><ul><ul><li>Project Management </li></ul></ul><ul><ul><li>Wikis, SEO, Performance and more... </li></ul></ul>
  11. 11. What's New <ul><li>Improved error handling & reporting </li></ul><ul><li>Using Batch API </li></ul><ul><li>Patterns included with modules </li></ul><ul><li>YAML format </li></ul><ul><li>Configuration Framework </li></ul><ul><li>Patterns Install Profile </li></ul>
  12. 12. Patterns in action
  13. 13. The Path Forward Patterns Drupal Core Install Profiles Context / Spaces Pakgr Config to Code Profile Generator
  14. 14. Get involved <ul><li>Download and test the module </li></ul><ul><ul><li> </li></ul></ul><ul><li>Write patches for bugs and new features </li></ul><ul><li>Write some patterns </li></ul><ul><li>Join the discussion on </li></ul><ul><ul><li> </li></ul></ul>
  15. 15. Questions?
  16. 16. <ul><ul><li>Chris Bryant | | Drupalcon DC 2009 </li></ul></ul>Thank You! <ul><li> </li></ul><ul><li> </li></ul><ul><li> </li></ul>