Notes by:

Nick Young

http://oitdesign.ncsu.edu

@usaussie or @oitdesign

North Carolina State University

DrupalCon 2011: Chicago: Day 2 Notes

#########################################################

              Session 1:

                   Teaching Drupal: Creating Effective Drupal Training Materials

                   for Clients, Employees, and the Public

#########################################################

Session URL: http://chicago2011.drupal.org/sessions/teaching-drupal-creating-effective-drupal-training-materials-clients-employees-and-public

#########################################################

              Session 2:

Building Conference & Event Websites in Drupal with COD

#########################################################

Session URL: http://chicago2011.drupal.org/sessions/building-conference-event-websites-drupal-cod

#########################################################

              Session 3:

Failure to launch: Drupal performance tuning

#########################################################

Session URL: http://chicago2011.drupal.org/sessions/failure-launch-drupal-performance-tuning

aka: the nerf gun session

#########################################################

Session 4:

From Zero to Distribution using Features, Profiler and Drush Make

#########################################################

Session URL: http://chicago2011.drupal.org/sessions/zero-distribution-using-features-profiler-and-drush-make

Start off building a drupal distribution -- just install and configure what you need

The only additional module is "features"

1st: Export a feature (collection of components that are packaged up as a piece of code, as opposed to being in the database).

after exporting module, copy exported module directory

into the sites/all/modules page (of a different drupal instance)...enable on the features page....and it will create/enable/configure all the necessary pieces to make that feature work

Drush Make

URL: http://drupal.org/project/drush_make

DOES NOT WORK WITH MULTI-SITE....planned to support multi-site in the next version

assemble modules into a drupal site

like drush dl (download modules)

makeFileName.make

    core = 6.x

    api = 2

   

    ; will grab the latest version of the specified module

    projects[] = moduleName1

   

    ; will grab specific version

    projects[moduleName5] = 2.9

   

    ; the above is shortcode for

    projects[moduleName6][version] = 2.9

   

    ; to put that module in a subdirectory (must not use short code syntax for version if putting it in a subdirectory with this command)

    projects[moduleName6][subdir] = subdirNameHere

   

    projects[featureName][type] = module

    projects[featureName][download][type] = get

    projects[featureName][download][url] = "http://path/to/feature.tgz"

   

then run: drush make makeFileName.make path/to/install/drupal

Translated: HAWT!

Profiler

php library that makes creating install profiles easy

uses same syntax as the .make files

Clarification on terminology

--install profile is just the code that runs during the initial install process

--a distribution is a combination of the install profile and the modules that come with it

.profile file

grab code from the profiler module page / existing code

.info file

    ; required setup information

    name = my profile name...ie: News Wesbite

    description = my cool news website

   

    ;dependencies for this install profile

    dependencies[] = myFeatureName

   

    ; the theme that will be used/activated

    themes = pushbutton

   

    ;copy lines of code from profiler page

    libraries[profiler][download][type] = "get"

    libraries[profiler][download][.......

   

#########################################################

        Session 5: Advanced Drush

#########################################################

Session URL: http://chicago2011.drupal.org/sessions/advanced-drush

All demonstration...no real notes....pretty hawt stuff though.