Patterns

Discuss Patterns, work on new Patterns together, suggest ideas and improvements and get help with questions.

http://drupal.org/project/patterns

What are Patterns? What is the Patterns module?
The patterns module enables the setup, configuration, and reconfiguration of [Drupal] sites without actually doing any of the setup manually. A pattern will be a collection of rules, definitions, and dependencies, currently in XML, YAML & PHP formats, that will automatically setup and create simple or complex features for you. Patterns can be saved and shared easily.

Here are some primary uses:
* Define reusable site architecture patterns and best practices that are easy to update and maintain.
* Quickly setup and configure new (and existing!) sites based on site architecture documents/patterns. (Next evolution of Install Profiles)
* Migrate changes, updates and new features from you local development environment to dev server to QA site to the final production environment. (Change Management)
* Possibility of making a specific pattern to update/change a site(s) from some other known configuration (legacy best practice to current best practice for instance)

PHP developer-Fulltime in New York City-Direct Client | Our client is a media and publishing company

Employment type: 
Full time
Telecommute: 
Allowed

Hi ,

Our client is a media and publishing company focusing in B2B magazines and event management . This position will be a part of the Web Development team, and be responsible for development on websites owned by client.

Primary Responsibilities

  • Assist with requirements gathering, analysis and design
  • Act as a key member of the development team for front-end activities for multiple projects.
  • Ability to juggle multiple priorities and tasks effectively.
  • Development using PHP (PHP5 preferred) on LAMP stack.
Read more

PHP developer-Fulltime in New York City-Direct Client | Our client is a media and publishing company

Employment type: 
Full time
Telecommute: 
Allowed

Hi ,

Our client is a media and publishing company focusing in B2B magazines and event management . This position will be a part of the Web Development team, and be responsible for development on websites owned by client.

Primary Responsibilities

  • Assist with requirements gathering, analysis and design
  • Act as a key member of the development team for front-end activities for multiple projects.
  • Ability to juggle multiple priorities and tasks effectively.
  • Development using PHP (PHP5 preferred) on LAMP stack.
Read more

PHP developer-Fulltime in New York City-Direct Client | Our client is a media and publishing company

Employment type: 
Full time
Telecommute: 
Allowed

Hi ,

Our client is a media and publishing company focusing in B2B magazines and event management . This position will be a part of the Web Development team, and be responsible for development on websites owned by client.

Primary Responsibilities

  • Assist with requirements gathering, analysis and design
  • Act as a key member of the development team for front-end activities for multiple projects.
  • Ability to juggle multiple priorities and tasks effectively.
  • Development using PHP (PHP5 preferred) on LAMP stack.
Read more
pmackay's picture

Date formatting

Hi,

I have a content type with a date field defined thus:

  • tag: field
    type: event
    name: time_from
    label: Start
    option: date
    widget: date_popup

I'm then trying to create a node of that content type:

  • tag: node
    type: event
    title: An event
    fields:
    time_from:
    value: 01-08-2010T10:30:00

The above does not import the date/time, and some other variations didn't help. The error says "The dates are invalid." What would be the correct way to format the value?

Thanks

Login or register to post comments
pmackay's picture

Strange issue with CCK field

I have a field definition in a pattern:

- tag: field
type: event
field_name: location
label: Location
option: text
widget_type: text_textfield

It fails to import and returns with this error:

* Add new field: you need to select a field type.
* Add new field: you need to select a widget.
* Above error(s) occured while executing action #1 (CCK: Add Field or Group) in Events pattern. Error location(s) are: _add_new_field->type, _add_new_field->widget_type

I have tried with name rather than field_name and widget rather than widget_type too.

4 comments · Read more
pmackay's picture

Writing views

Hello,

I've been experimenting with Patterns and I really like the approach. However I'm struggling more trying to write a view, because reference docs for the valid fields are not available and views are one of the more complex configuration elements.

Is there any way to get a definitive list of the XML/YAML syntax that can be used by some relatively simple code tweak?

How is progress on exporting a Pattern?

For now is the view_import.yaml example the recommended way to store views?

Thanks

Paul

1 comment

Non-GUI execution

We are trying to integrate Patterns execution in our change management system based on Liquibase. It seems like the Patterns module only supports execution in GUI mode. Is there any way to execute them from command line or any API we can use to create a Drush extension?

Does the Configuration Framework try to cover these use cases? If so, what's its current development status and where should we start looking for more information?

Thanks a lot!

Esteban

2 comments
musry7's picture

Nested Pattern?

I am very new to this module and I must say that it is love at first site! (pun intended)

I have been very successful with the combination of Patterns + Features to accomplish what I need in very few steps. I am seeking to eliminate a couple of steps.

One hang up I have is taken from the sample XML pattern.

<!-- execute pattern "news" -->
<pattern>news</pattern>

What is the reference? Is this a pattern within a pattern?

1 comment

Changes required to run patterns duing install via Aegir

Hopefully starting a discussion on modifying the patterns and/or patterns install profile to support installation via Aegir.

I spent quite a bit of time getting it almost working but have run into a few issues. Bringing it up so hopefully we can work through issues that I weren't clear to me.

  1. Aegir runs install profiles without user input. So my plan was to add a "patterns"
2 comments · Read more

Creating a Pattern

I have been working on developing a site to track information about clients in a treatment program. The initial write up about Patterns indicates that it is exactly what I need to automate the replication of new patient records. I am not, however, understanding how to use the module to do this. Is there anyone with the time or patience who can walk me through this process.

Thank you.

Login or register to post comments
sdondley's picture

Can you create patterns with d6 devel?

I just downloaded a snapshot of the d6 devel code. The code for importing patterns seems to be there but I don't see a way to create patterns. There's not README file or any kind of documentation. hook_menu has a bunch of code commented out.

So unless I'm missing something, there doesn't seem to be a way to create patterns. Am I wrong on this? If I'm not wrong, do we have an idea of when this needed feature will be ready to use? I'd love to help test this module.

1 comment
antoniodemarco's picture

Patterns Exporter

Hi all,

in the documentation I've read that somebody is already working on a way to export patterns directly from forms and pages. Can I have more information about it? I haven't found anything on Drupal, is it possible to follow the development and/or to contribute?

Thanks,

Antonio

3 comments
ChrisBryant's picture

Drupal and Project Management Systems outline and discussion

For today's BDUG (Berkeley Drupal User Group) meetup we had an open discussion about project management methodologies and tools, and layed out a basic plan for what a full featured project management system might look like in Drupal. I know many Drupal development shops each have their own tools for this, many developed internally on Drupal for specific needs.

This document is an initial rough outline, so feel free to suggest changes or other ideas for it.

Here is the wiki page:
http://groups.drupal.org/node/17288

And the original google doc:

4 comments · Read more
Chris Charlton's picture

Have you been looking for ways to automate your Drupal installations, configurations, and/or customizations?

Yes, I'd like to automate Drupal work and get home as reasonable hours!
74% (34 votes)
Maybe or "I'm not sure how I can automate my Drupal work. Maybe I should look at the Patterns module."
7% (3 votes)
I don't do enough Drupal work to require automation. I click.
0% (0 votes)
I never knew Drupal can be automated!
4% (2 votes)
I already deploy & configure Drupal sites with mental telepathy, sysadmin with an iPhone, and follow Twitter while on the can.
15% (7 votes)
Total votes: 46
4 comments
Chris Charlton's picture

Which patterns, or repeated tasks, would people be interested in seeing from the community?

I'm just going to get the conversation started here...

What patterns (or repeated tasks) would people be interested in seeing for Drupal? Remember, these are [XML-based] instructions that fellow users/developers can share or include with their modules or install profiles.

Here's some quick ideas:

  • Developer site patterns
  • Quick blog site settings
  • Super simple site that has some common pages made with URL aliases like Contact (form or no form), About Us, etc.
  • Video module related configurations
  • Complete dump of a current site (to make local copies of a site)?

Again, I'm just trying to spark the conversation and this group would like to hear what Pattern(s) you would like to see or make.

7 comments
mackh's picture

The way forward!

Hi Chris and Co

Really interested to get into patterns, having major issues managing configuration over time and have been thinking that Patterns might be a good way to go. Is there a newest version of the module? or is the March release the one to start with.

Peace from VanCity
-Mack

1 comment
Syndicate content