Drupal Camp, Pune 2009




           Patterns Module
Managing and automating site configuration




                Vojis...
The Problem

Drupal site configuration is:
     ● time consuming


     ● tedious


     ● repetitive


     ● lacking a s...
The Solution

With Patterns Module site configuration can be:
      ● saved


      ● managed


      ● automated


      ...
How it works

Basic outline:
     ● site configuration is saved in XML files

       called “Patterns”
     ● Patterns mod...
Demo

Let's begin with a fresh install of Drupal 6:
      ● add Patterns module


      ● add any/all required modules


 ...
Patterns

A closer look at Patterns and how to create them:
     ● XML


     ● essential tags: <pattern>, <info>,

      ...
Patterns Module architecture

Core module:
     ● Patterns management


     ● Import


     ● Execution
Patterns Module architecture

Components:
                         patterns
                     ●
        block
      ●
 ...
Patterns execution workflow

A closer look at how the module works:
     ● enable all required modules


     ● execute al...
The Future

What's in store for the future:
    ● pattern exporter, recorder


    ● configuration framework


    ● plugg...
Getting started

A few helpful resources:
     ● Get the Patterns module

       http://drupal.org/projects/patterns
     ...
User involvement

Participate!
      ● use module and report bugs, request

        features
        http://drupal.org/pro...
Developer involvement

Possible ways to help:
     ● submit patches


     ● write components


     ● write patterns
Module Maintainers

Possible ways to take advantage and/or help:
     ● write components for your own module


     ● cons...
Questions, please.

If any questions, ideas etc. came to your mind
   during the presentation, feel free to ask/share!
Upcoming SlideShare
Loading in...5
×

Patterns Drupal Camp Pune09

937

Published on

This presentation will be delivered by vaish and jonathan on 31st jan '09 in drupal camp pune.

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
937
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
20
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Patterns Drupal Camp Pune09

  1. 1. Drupal Camp, Pune 2009 Patterns Module Managing and automating site configuration Vojislav Jovanovic | vnd@graviteklabs.com Jonathan Hebel | jonathan@graviteklabs.com
  2. 2. The Problem Drupal site configuration is: ● time consuming ● tedious ● repetitive ● lacking a streamlined approach
  3. 3. The Solution With Patterns Module site configuration can be: ● saved ● managed ● automated ● shared
  4. 4. How it works Basic outline: ● site configuration is saved in XML files called “Patterns” ● Patterns module handles programmatic form submissions using configuration defined in the XML Pattern file
  5. 5. Demo Let's begin with a fresh install of Drupal 6: ● add Patterns module ● add any/all required modules ● run a Pattern ● oooh! aaah!
  6. 6. Patterns A closer look at Patterns and how to create them: ● XML ● essential tags: <pattern>, <info>, <modules> and <actions> ● defining functionality ● calling other Patterns ● Patterns form helper
  7. 7. Patterns Module architecture Core module: ● Patterns management ● Import ● Execution
  8. 8. Patterns Module architecture Components: patterns ● block ● profile ● ● content system ● ● imagecache taxonomy ● user ● menu ● views ● ● node and more coming... ● ● pathauto
  9. 9. Patterns execution workflow A closer look at how the module works: ● enable all required modules ● execute all actions in the order they were defined in the Pattern file ● each action emulates one form submission ● build $form_values array and additional params and pass it to drupal_execute()
  10. 10. The Future What's in store for the future: ● pattern exporter, recorder ● configuration framework ● pluggable input format support (YAML) ● make it easier to write components ● Integration with install profiles ● possible inclusion of configuration framework in Drupal Core
  11. 11. Getting started A few helpful resources: ● Get the Patterns module http://drupal.org/projects/patterns ● Check out the documentation http://drupal.org/node/346509
  12. 12. User involvement Participate! ● use module and report bugs, request features http://drupal.org/project/issues/patterns ● help improve documentation ● Pattern user group on D.O. http://groups.drupal.org/patterns
  13. 13. Developer involvement Possible ways to help: ● submit patches ● write components ● write patterns
  14. 14. Module Maintainers Possible ways to take advantage and/or help: ● write components for your own module ● consider using patterns for defining your module configuration or example setups
  15. 15. Questions, please. If any questions, ideas etc. came to your mind during the presentation, feel free to ask/share!
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×