what is drupal?handsomedogstudio.com › sites › default › files › drupal... · i....
TRANSCRIPT
What is Drupal?
Global Training DayDecember 14, 2012
HandsomeDog Studio
An introduction to Drupal, from content management system (CMS) and open source basics to content types, user
permissions, theming, taxonomies and accessing data through views.
A Clarification
It's my dog that's handsome:
http://handsomedogstudio.com
(I thought it was important to mention)
Today's agendaI. Introduction to Drupal
a. Overview of a CMSb. What "open source" meansc. Drupal Showcase - how Drupal is being used worldwided. Drupal vs. Wordpress, DNN
II. Some exciting things that Drupal can doa. User roles and permissions b. Social media integrationc. Business processes / rule-based actionsd. Distributions
III. Getting started with Drupala. Aquia Desktop development environmentb. Installing code base, configuring setup.php
IV. User managementa. Creating user rolesb. Creating / managing user accounts
Today's agenda, continuedV. Modules
a. Overviewb. Some handy modules you may want to usec. Enabling / configuring modules
VI. Themesa. Contributed themesb. Commercial themesc. Installing / configuring themes
VII. Contenta. Content typesb. Taxonomiesc. URL aliases
VIII. Blocks, Regions and Menus
Today's agenda, continuedIX. Accessing content through Views a. overview b. setting up a view c. accessing view through URL with a contextual filter
X. The Colorado Drupal Community a. groups.drupal.org/denver b. IRC: #drupal-colorado c. turntable.fm/drupalcolorado
XI. Questions and Answers
BuildAModule.com – free learning!http://buildamodule.com/free
Introduction to Drupal
● Overview of a CMS● What "open source" means● Drupal Showcase - how Drupal is being
used worldwide (drupalshowcase.com)● Drupal vs. Wordpress, DNN
Some exciting things that Drupal can do
● User roles and permissions ● Social media integration● Business processes / rule-based actions● http://drupal.org/project/distributions
Distributions● FedEx, Stanford, UMG,
USA Pro Cycling Challenge
Getting started with Drupal
● Aquia Desktop development environment– “LAMP”, “MAMP”, “WAMP”
– https://network.acquia.com/downloads/7.x
– Download latest version fromdrupal.org/project/drupal
● Installing code base, database– “settings”, then “sites”, then “import”
Getting started with Drupal
● Quick overview of setup.php– $db_url
– $databases array
– Change when publishing to production server
User Management
● Use cases– Triathlon club (admin, board, members,
unauthenticated users)
– Rowing club (coaches, board, rowers, unauthenticated users)
User management
● /admin/people/permissions/roles● “Authenticated user” permissions● Adding a role● Setting permissions
User management
● Account settings – who can add users?– /admin/config/people/accounts
– manage user account fields
– email messages
● Adding users – /admin/people/create
– select role(s)
Modules
Modules
● Contributed vs. custom● Drupal's “hook” system (click for article)● Core modules● Popular modules
– Ctools, Views, Pathauto
Let's install a module
● drupal.org/project/views– quick word on views in Drupal 8
– download, unzip move/copy to “sites/all/modules”
– reload modules page (/admin/modules)
– missing dependency
● drupal.org/project/ctools
Configuring modules
● After enabling a module, check for updates● Example: Contact module
– enable
– check for updates
– configure● add a contact form category
Themes
● Cue Lindsay. . .
http://5ringsweb.com
Content
● Content types– /admin/structure/types
– Let's create a new type: coffee
– Add fields: origin country, rating
Taxonomies
● That's another word for “categories”● /admin/structure/taxonomy
– add vocabulary
– add terms
– rearrange if desired
● Add new field to a content type to cover taxonomy - “field type” is “term reference”
URL aliases
● For SEO and human reasons, it's good to have URL aliases
– http://yourdomain.com/node/14
– http://yourdomain.com/about-us
● A couple of ways to use aliases– at the /node/add level
– pathauto module
Blocks and menus
● Blocks – configurable nuggets of content● Regions – places on a page layout where
blocks can be displayed● Menus – standard or custom
– Main, Management, Navigation, User
Menus
● Example – add “contact” page to the main menu
– /admin/structure/menu
– logical place is “main” menu● add link
Views
● A structured way to query your database and select content
– database platform neutral
– “SELECT * FROM 'coffeedrinks' WHERE 'caffeinecontent' = “high”
Views
● Add content first– by the way, front page doesn't have to look
like a blog● create basic page● /admin/config/system/site-information● set new default front page
Views
● /admin/structure/views● Let's make a view that shows us all content
that has taxonomy term of “coffee”