120 likes | 257 Views
WHAT IS DRUPAL?. Using Drupal Without Knowing PHP. What you need The 5-minute Install Theming Nodes & CCK Views Modules Untouchable Core Taxonomy Resources. by Peter K. Johnson - http://WebExplorations.com Originally presented at Minnebar - April 2012.
E N D
WHAT IS DRUPAL? Using Drupal Without Knowing PHP • What you need • The 5-minute Install • Theming • Nodes & CCK • Views • Modules • Untouchable Core • Taxonomy • Resources • by Peter K. Johnson - http://WebExplorations.com • Originally presented at Minnebar - April 2012 photo by QuinnDombrowski - flickr.comIntro video by Matt Terry - Vimeo
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 - Content • Content is stored in a database
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 • 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
Video Demonstration The 5-minute Install • Downloadhttp://drupal.org - Unzip • Create Database - myNewSiteName • Duplicate sites/default.settings.php • Rename to settings.php - Set permissionseveryone read/write • Create folder: sites/default/files - Set permissionseveryone read/write • View site: http://localhost/myNewSiteName • Done! photo by GammaMan - flickr.com
Install a Theme using Drush Making a SubTheme Demon THEMING
Story Node Article Node Blog Node myContentType Node Every content item added is a node. Video Demo of CCK Nodes & CCK photo by GreyLight - flickr.com
Building forms and viewing the data. Video Demo of Views VIEWS photo by Girlfierce Photography - flickr.com
The building blocks Behind-The-Curtain Demonstration Drush Demonstration MODULES photo by foxKiyo - flickr.com
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
Video Demonstration 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. TAXONOMY photo by juhansonin - flickr.com
RESOURCES • Drupal Videoshttp://drupal.org/videocasts • Mustard Seed Mediahttp://mustardseedmedia.com/podcast • Discussion Group on LinkedIn • DrupalCon Sessions • Denver 2012 http://denver2012.drupal.org/ • Chicago 2011http://chicago2011.drupal.org/http://archive.org/search.php?query=drupalcon%20chicago • San Fransisco 2010http://drupal.org/node/780000 • Drupal.org • Drupal Groupshttp://groups.drupal.org/twin-cities • Lullabothttp://Lullabot.com • Lynda.comhttp://lynda.com • BuildAModule.comhttp://BuildAModule.com Special thanks to the photographers at Flickr.com who gave permission to use their photos in this presentation. Revised: April 8, 2012