Drupal from Scratch - Drupal_OSU

Document Sample
Drupal from Scratch - Drupal_OSU Powered By Docstoc
					Drupal from Scratch
by The Drupal@OSU Group
  1.   Introduction
  2.   History
  3.   Setup
  4.   Using Drupal
  5.   Custom Modules
  6.   Theming
      Why use a CMS?
         o The world is aware
                 Technology barriers are being broken down every day. As
                   more and more people become not just familiar with web
                   based technologies, but expert consumers, the landscape of
                   web services is changing.
         o Small Teams
         o Edit content right on the web
         o Quicker updates
         o Small site wide changes become easy
         o Expands as you do
         o Plenty of low cost solutions
         o Security
         o Lowers technology barriers
         o Search Optimization
         o Extensible
         o Community
      Why use Drupal?
         o Non-proprietary
                 Drupal and its supporting software (Linux, Apache, MySQL, and
                   PHP) are open source and free for download. No licensing costs
                   or maintenance agreements.
                 Drupal is one of three content management systems (along
                   with Joomla and WordPress) that dominate the open source
         o Powerful
                 Once the Drupal installation is complete, powerful web sites
                   can be created within a matter of minutes.
                 No special programming skills needed.
                 Drupal “out of the box” is feature-rich: standard modules
                   include blogs, taxonomy, friendly URLs, forums, RSS, role-
                   based permissions, site-wide search.
         o Scalable
                 A single code base can support any number of web sites.
                   Administrators can centrally maintain this code base, making
                   upgrades easier.
                 Customers are empowered to create and maintain their own
                   content, freeing developers to support more web sites.
         o Customizable
                 All aspects of Drupal sites are customizable, including look and
                   feel, user experience, and access control.
         o Extensible
                Drupal is modular in nature, so that any number of the 4000+
                 free contributed modules at can be added on to
                 Drupal web sites.
              Drupal is written in PHP, a popular programming language,
                 and as an open source product, its code base is transparent.
                 Developers can modify code and write their own modules in
                 PHP to extend Drupal’s core functionality.
       o Integrates well
              Drupal’s open framework allows developers to integrate
                 Drupal web sites with enterprise data sources and
                 authentication systems.
              The latest in social media, from Flickr to Twitter, can be
                 integrated into Drupal web sites.
       o Supported
              Drupal has a very large and active developer community with
                 over 600,000 members2 and 2,000 registered developers.
              The Drupal 7 Usability Project (d7ux) ensures that future
                 releases of Drupal are easier to use, one of the most frequent
                 criticisms of the content management system.
       o Mature
              Drupal was written by Dries Buytaert in 2001. The 7th
                 generation of Drupal will be released in 2011.
              Drupal has been downloaded more than 2.5 million times.
       o Proven
              It’s estimated conservatively that there are over 150,000
                 Drupal 6 web sites, from personal blogs to corporate intranets
                 to governmental sites.
              Large entities using Drupal include Zappos, Nokia Research,
                 Fast Company, FedEx, SourceForge, Human Rights Watch, The
                 Onion, and many others.
              Large installations of Drupal are found at many universities,
                 including Texas A & M, University of Arizona, and Oregon State
                 University. Other universities using Drupal include MIT, Duke,
                 Stanford, Portland State, Harvard, and Rutgers.
       o Recognized
              Gartner recently moved Drupal to the “visionaries” quadrant of
                 their Magic Quadrant. Drupal shares this quadrant with Google,
                 Socialtext, Telligent, and other proprietary content
                 management systems.
              The U.S. government has recognized Drupal as a content
                 management system appropriate for federal web sites,
              Drupal won the Best Open Source PHP CMS Category in the
                 2009 Open Source CMS Awards.
   Drupal vs Joomla, Wordpress, and everything else
       o Joomla
      Some modules are charged for, part of the culture
      No native forum
o Wordpress
o Everything else
      Story of Drupal
          o Timeline
          o Dries
          o DrupalCon
       System Requirements
           o Linux (Windows/Mac)
           o MySQL or PostgreSQL (PDO in D7)
           o Apache
           o PHP
       Installing Drupal (for development/testing)
           o Acquia Installer
           o WAMP
           o MAMP
       Setting up Drupal
           o Download Core
           o Download Modules
           o Unzip core
           o Config File
           o Directories
                    Modules
                    Themes
                    Files
           o Note about modules that need third party software (jQuery UI and
Using Drupal
      Nodes
      Blocks/Regions
      Permissions
      Content Types
      Cache
      Enabling Modules
Custom Modules
     Essentials:
         o Administration menu
         o CCK
         o Views
         o Panels
         o FCKEditor
         o IMCE
     Developer Modules:
         o Coder
         o Devel
         o Drush
         o Backup and Migrate
         o Poor Mans Cron
         o css injector
         o Examples
     Other Highlights:
         o FileField
         o Node Reference
         o ImageCache
         o ImageAPI
         o ImageField
         o ImageCrop
         o Pathauto
         o Quicktabs
         o Workflow
     Others to look at:
         o emfield
         o date
         o jQuery UI
         o ctools
         o token
         o views slideshow
         o webform
         o organic groups
         o mollom
         o lightbox 2
         o contemplate
         o features
         o xmlsitemap
         o google analytics
         o Calendar
         o captcha
         o content access
         o link
o email
o jcarousel
o wysiwyg
     What is a theme?
     Theming in Drupal is not hard. Destroying myths.
     {sitename}.info
     Regions
     Folder Structure
          o {sitename} (folder)
                 css (folder)
                 js (folder)
                 images (folder)
                 page.tpl.php (file)
                 {sitename}.info (file)
     PHP variables
     Template variable reference sheet

Shared By: