using drupal - o'reilly mediaassets.en.oreilly.com/1/event/27/using drupal presentation.pdf ·...

34
Using Drupal OSCON 2009 Thursday, July 23, 2009

Upload: doandiep

Post on 15-Feb-2019

243 views

Category:

Documents


2 download

TRANSCRIPT

Page 1: Using Drupal - O'Reilly Mediaassets.en.oreilly.com/1/event/27/Using Drupal Presentation.pdf · Drupal is... • Content Management System • Content Management Framework • Community

Using DrupalOSCON 2009

Thursday, July 23, 2009

Page 2: Using Drupal - O'Reilly Mediaassets.en.oreilly.com/1/event/27/Using Drupal Presentation.pdf · Drupal is... • Content Management System • Content Management Framework • Community

hi

Thursday, July 23, 2009

Page 3: Using Drupal - O'Reilly Mediaassets.en.oreilly.com/1/event/27/Using Drupal Presentation.pdf · Drupal is... • Content Management System • Content Management Framework • Community

James Walker

“walkah”

Addison Berry

“add1sun”

Thursday, July 23, 2009

Page 4: Using Drupal - O'Reilly Mediaassets.en.oreilly.com/1/event/27/Using Drupal Presentation.pdf · Drupal is... • Content Management System • Content Management Framework • Community

“walkah” “add1sun”

Thursday, July 23, 2009

Page 5: Using Drupal - O'Reilly Mediaassets.en.oreilly.com/1/event/27/Using Drupal Presentation.pdf · Drupal is... • Content Management System • Content Management Framework • Community

Thursday, July 23, 2009

Page 6: Using Drupal - O'Reilly Mediaassets.en.oreilly.com/1/event/27/Using Drupal Presentation.pdf · Drupal is... • Content Management System • Content Management Framework • Community

What is Drupal?

Thursday, July 23, 2009

Page 7: Using Drupal - O'Reilly Mediaassets.en.oreilly.com/1/event/27/Using Drupal Presentation.pdf · Drupal is... • Content Management System • Content Management Framework • Community

Drupal is...

• Content Management System

• Content Management Framework

• Community

Thursday, July 23, 2009

Page 8: Using Drupal - O'Reilly Mediaassets.en.oreilly.com/1/event/27/Using Drupal Presentation.pdf · Drupal is... • Content Management System • Content Management Framework • Community

Lego for building websites

http://www.flickr.com/photos/larimdame/

Thursday, July 23, 2009

Page 9: Using Drupal - O'Reilly Mediaassets.en.oreilly.com/1/event/27/Using Drupal Presentation.pdf · Drupal is... • Content Management System • Content Management Framework • Community

Building a Drupal Site

• Install

• Basic configuration (permissions, etc)

• Content types

• Views

• Theme

• Profit

• (ok, maybe some tweaking)

Thursday, July 23, 2009

Page 10: Using Drupal - O'Reilly Mediaassets.en.oreilly.com/1/event/27/Using Drupal Presentation.pdf · Drupal is... • Content Management System • Content Management Framework • Community

Thinking Drupal

Thursday, July 23, 2009

Page 11: Using Drupal - O'Reilly Mediaassets.en.oreilly.com/1/event/27/Using Drupal Presentation.pdf · Drupal is... • Content Management System • Content Management Framework • Community

Thursday, July 23, 2009

Page 12: Using Drupal - O'Reilly Mediaassets.en.oreilly.com/1/event/27/Using Drupal Presentation.pdf · Drupal is... • Content Management System • Content Management Framework • Community

Thursday, July 23, 2009

Page 13: Using Drupal - O'Reilly Mediaassets.en.oreilly.com/1/event/27/Using Drupal Presentation.pdf · Drupal is... • Content Management System • Content Management Framework • Community

Thursday, July 23, 2009

Page 14: Using Drupal - O'Reilly Mediaassets.en.oreilly.com/1/event/27/Using Drupal Presentation.pdf · Drupal is... • Content Management System • Content Management Framework • Community

Installation

Thursday, July 23, 2009

Page 15: Using Drupal - O'Reilly Mediaassets.en.oreilly.com/1/event/27/Using Drupal Presentation.pdf · Drupal is... • Content Management System • Content Management Framework • Community

Requirements

• Linux (any OS will do, really)

• Apache (recommended, while others can work)

• MySQL (or Postgres)

• PHP (just PHP)

http://drupal.org/requirementsThursday, July 23, 2009

Page 16: Using Drupal - O'Reilly Mediaassets.en.oreilly.com/1/event/27/Using Drupal Presentation.pdf · Drupal is... • Content Management System • Content Management Framework • Community

Basic settings

Thursday, July 23, 2009

Page 17: Using Drupal - O'Reilly Mediaassets.en.oreilly.com/1/event/27/Using Drupal Presentation.pdf · Drupal is... • Content Management System • Content Management Framework • Community

Site Information

• Site name

• Email

• Footer message, etc.

• Default front page

Thursday, July 23, 2009

Page 18: Using Drupal - O'Reilly Mediaassets.en.oreilly.com/1/event/27/Using Drupal Presentation.pdf · Drupal is... • Content Management System • Content Management Framework • Community

Menus

• Provide Navigation

• Entries added by modules

• Administrators can override

Thursday, July 23, 2009

Page 19: Using Drupal - O'Reilly Mediaassets.en.oreilly.com/1/event/27/Using Drupal Presentation.pdf · Drupal is... • Content Management System • Content Management Framework • Community

Thursday, July 23, 2009

Page 20: Using Drupal - O'Reilly Mediaassets.en.oreilly.com/1/event/27/Using Drupal Presentation.pdf · Drupal is... • Content Management System • Content Management Framework • Community

Blocks

• Contained in regions

• Theme can define any number of regions

• Additional content: lists of links, additional info, etc

Thursday, July 23, 2009

Page 21: Using Drupal - O'Reilly Mediaassets.en.oreilly.com/1/event/27/Using Drupal Presentation.pdf · Drupal is... • Content Management System • Content Management Framework • Community

Thursday, July 23, 2009

Page 22: Using Drupal - O'Reilly Mediaassets.en.oreilly.com/1/event/27/Using Drupal Presentation.pdf · Drupal is... • Content Management System • Content Management Framework • Community

Taxonomy

• Used for categorizing content

• Multiple vocabularies

• Supports flat lists, hierarchies, and free tagging “folksonomies”

Thursday, July 23, 2009

Page 23: Using Drupal - O'Reilly Mediaassets.en.oreilly.com/1/event/27/Using Drupal Presentation.pdf · Drupal is... • Content Management System • Content Management Framework • Community

Content Types

Thursday, July 23, 2009

Page 24: Using Drupal - O'Reilly Mediaassets.en.oreilly.com/1/event/27/Using Drupal Presentation.pdf · Drupal is... • Content Management System • Content Management Framework • Community

Content Types

• Multiple content types - created by admins

• Different workflows

• Different structure - via CCK

Thursday, July 23, 2009

Page 25: Using Drupal - O'Reilly Mediaassets.en.oreilly.com/1/event/27/Using Drupal Presentation.pdf · Drupal is... • Content Management System • Content Management Framework • Community

Speaker

• Name (title)

• Bio (body)

• Company (field_organization)

• Photo (field_speaker_photo)

Thursday, July 23, 2009

Page 26: Using Drupal - O'Reilly Mediaassets.en.oreilly.com/1/event/27/Using Drupal Presentation.pdf · Drupal is... • Content Management System • Content Management Framework • Community

Thursday, July 23, 2009

Page 27: Using Drupal - O'Reilly Mediaassets.en.oreilly.com/1/event/27/Using Drupal Presentation.pdf · Drupal is... • Content Management System • Content Management Framework • Community

Session

• Title (title)

• Description (body)

• Room (field_room)

• Session Type (field_session_type)

• Date (field_date)

• Speakers (field_speakers)

Thursday, July 23, 2009

Page 28: Using Drupal - O'Reilly Mediaassets.en.oreilly.com/1/event/27/Using Drupal Presentation.pdf · Drupal is... • Content Management System • Content Management Framework • Community

Thursday, July 23, 2009

Page 29: Using Drupal - O'Reilly Mediaassets.en.oreilly.com/1/event/27/Using Drupal Presentation.pdf · Drupal is... • Content Management System • Content Management Framework • Community

Views

Thursday, July 23, 2009

Page 30: Using Drupal - O'Reilly Mediaassets.en.oreilly.com/1/event/27/Using Drupal Presentation.pdf · Drupal is... • Content Management System • Content Management Framework • Community

Views

• Query builder - with a GUI

• Generates listings of stuff

• Provides multiple displays

• Highly extensible

Thursday, July 23, 2009

Page 31: Using Drupal - O'Reilly Mediaassets.en.oreilly.com/1/event/27/Using Drupal Presentation.pdf · Drupal is... • Content Management System • Content Management Framework • Community

Thursday, July 23, 2009

Page 32: Using Drupal - O'Reilly Mediaassets.en.oreilly.com/1/event/27/Using Drupal Presentation.pdf · Drupal is... • Content Management System • Content Management Framework • Community

Theme

Thursday, July 23, 2009

Page 33: Using Drupal - O'Reilly Mediaassets.en.oreilly.com/1/event/27/Using Drupal Presentation.pdf · Drupal is... • Content Management System • Content Management Framework • Community

Theme

• Controls the look and feel

• CSS, JS, Images and PHP files (on disk)

• Can override how anything looks

Thursday, July 23, 2009

Page 34: Using Drupal - O'Reilly Mediaassets.en.oreilly.com/1/event/27/Using Drupal Presentation.pdf · Drupal is... • Content Management System • Content Management Framework • Community

Demo

Thursday, July 23, 2009