what is drupal? by peter k. johnson - ://webexplorations.com originally presented at minnebar -...
TRANSCRIPT
WHAT IS DRUPAL?
by Peter K. Johnson - http://WebExplorations.com
Originally presented at Minnebar - April 2012
• What you need• The 5-minute Install• Theming• Nodes & CCK• Views• Modules• Untouchable Core• Taxonomy • Resources
photo by QuinnDombrowski - flickr.comIntro video by Matt Terry - Vimeo
Using Drupal Without Knowing PHP
WHAT IS DRUPAL? WHAT IS DRUPAL?PHP Framework with customizable modules
and themes.
Site Administrators build the house and paint
the walls.
Content Editors hang pictures on the wall and
put fresh flower arrangements on the table.
Core - Themes - Modules - ContentContent is stored in a database
WHO USES DRUPAL? WHO USES DRUPAL?Stanford University
The Economist
Amnesty International
NASA
MIT Media Lab
WhiteHouse.gov
16,000+ active developers - worldwide (March 2012)
WHAT YOU NEED WHAT YOU NEED
•PHP 5 (with graphic library for font rendering)
•MySQL
•PHPmyAdmin (Use MAMP or WAMP for these three.)
•Drush - Drupal command line utility
•A working knowledge of HTML & CSS
and Drupal http://drupal.org
photo by pranav - flickr.com
The 5-minute Install The 5-minute Install
Download http://drupal.org - Unzip
Create Database - myNewSiteName
Duplicate sites/default.settings.php
Rename to settings.php - Set permissions
everyone read/write
Create folder: sites/default/files - Set permissionseveryone read/write
View site: http://localhost/myNewSiteName
Done!
photo by GammaMan - flickr.com
Video Demonstration
THEMINGTHEMING
Making a SubTheme DemonInstall a Theme using Drush
Nodes & CCKNodes & CCKphoto by GreyLight - flickr.com
Every content item added is a node.Every content item added is a node.
Story NodeStory NodemyContentType
NodemyContentType
Node
Article NodeArticle Node
Blog NodeBlog Node
Video Demo of CCK
VIEWSphoto by Girlfierce Photography - flickr.com
Building forms and viewing the Building forms and viewing the data.data.
Video Demo of Views
MODULESMODULESphoto by foxKiyo - flickr.com
The building blocksThe building blocks Behind-The-Curtain Demonstration
Drush Demonstration
THE untouchable CORE THE untouchable CORE
•Store your code inside the mySite/sites folder.
•Don't hack core - copy and override in mySite/sites
instead.
•Updates will not overwrite the code in mySite/sites
•Have a backup system in place!
photo by Mrank - flickr.com
TAXONOMY TAXONOMY
photo by juhansonin - flickr.com
Putting things into categories
•In Taxonomy - Set up a vocabulary - type of books
•Set up terms for the vocabulary:
Drupal -- PHP -- CSS -- Science Fiction
•In CCK - Add new field to the content type
•As New Content is added:
Content Editor will select the appropriate taxonomy
term from a checkbox or radio button.
Video Demonstration
RESOURCES RESOURCES
•Drupal.org
•Drupal Groupshttp://groups.drupal.org/twin-cities
•Lullabothttp://Lullabot.com
•Lynda.comhttp://lynda.com
•BuildAModule.comhttp://BuildAModule.com
•Drupal Videoshttp://drupal.org/videocasts
•Mustard Seed Mediahttp://mustardseedmedia.com/podcast
•Discussion Group on LinkedIn
•DrupalCon Sessions• Denver 2012
http://denver2012.drupal.org/
• Chicago 2011 http://chicago2011.drupal.org/http://archive.org/search.php?query=drupalcon%20chicago
• San Fransisco 2010http://drupal.org/node/780000
Special thanks to the photographers at Flickr.comwho gave permission to use their photos in this presentation.
Revised: April 8, 2012