what is drupal?handsomedogstudio.com › sites › default › files › drupal... · i....

25
What is Drupal? Global Training Day December 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.

Upload: others

Post on 28-Jun-2020

11 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: What is Drupal?handsomedogstudio.com › sites › default › files › Drupal... · I. Introduction to Drupal a. Overview of a CMS b. What "open source" means c. Drupal Showcase

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.

Page 2: What is Drupal?handsomedogstudio.com › sites › default › files › Drupal... · I. Introduction to Drupal a. Overview of a CMS b. What "open source" means c. Drupal Showcase

A Clarification

It's my dog that's handsome:

http://handsomedogstudio.com

(I thought it was important to mention)

Page 3: What is Drupal?handsomedogstudio.com › sites › default › files › Drupal... · I. Introduction to Drupal a. Overview of a CMS b. What "open source" means c. Drupal Showcase

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

Page 4: What is Drupal?handsomedogstudio.com › sites › default › files › Drupal... · I. Introduction to Drupal a. Overview of a CMS b. What "open source" means c. Drupal Showcase

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

Page 5: What is Drupal?handsomedogstudio.com › sites › default › files › Drupal... · I. Introduction to Drupal a. Overview of a CMS b. What "open source" means c. Drupal Showcase

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

Page 6: What is Drupal?handsomedogstudio.com › sites › default › files › Drupal... · I. Introduction to Drupal a. Overview of a CMS b. What "open source" means c. Drupal Showcase

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

Page 7: What is Drupal?handsomedogstudio.com › sites › default › files › Drupal... · I. Introduction to Drupal a. Overview of a CMS b. What "open source" means c. Drupal Showcase

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

Page 8: What is Drupal?handsomedogstudio.com › sites › default › files › Drupal... · I. Introduction to Drupal a. Overview of a CMS b. What "open source" means c. Drupal Showcase

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”

Page 9: What is Drupal?handsomedogstudio.com › sites › default › files › Drupal... · I. Introduction to Drupal a. Overview of a CMS b. What "open source" means c. Drupal Showcase

Getting started with Drupal

● Quick overview of setup.php– $db_url

– $databases array

– Change when publishing to production server

Page 10: What is Drupal?handsomedogstudio.com › sites › default › files › Drupal... · I. Introduction to Drupal a. Overview of a CMS b. What "open source" means c. Drupal Showcase

User Management

● Use cases– Triathlon club (admin, board, members,

unauthenticated users)

– Rowing club (coaches, board, rowers, unauthenticated users)

Page 11: What is Drupal?handsomedogstudio.com › sites › default › files › Drupal... · I. Introduction to Drupal a. Overview of a CMS b. What "open source" means c. Drupal Showcase

User management

● /admin/people/permissions/roles● “Authenticated user” permissions● Adding a role● Setting permissions

Page 12: What is Drupal?handsomedogstudio.com › sites › default › files › Drupal... · I. Introduction to Drupal a. Overview of a CMS b. What "open source" means c. Drupal Showcase

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)

Page 13: What is Drupal?handsomedogstudio.com › sites › default › files › Drupal... · I. Introduction to Drupal a. Overview of a CMS b. What "open source" means c. Drupal Showcase

Modules

Page 14: What is Drupal?handsomedogstudio.com › sites › default › files › Drupal... · I. Introduction to Drupal a. Overview of a CMS b. What "open source" means c. Drupal Showcase

Modules

● Contributed vs. custom● Drupal's “hook” system (click for article)● Core modules● Popular modules

– Ctools, Views, Pathauto

Page 15: What is Drupal?handsomedogstudio.com › sites › default › files › Drupal... · I. Introduction to Drupal a. Overview of a CMS b. What "open source" means c. Drupal Showcase

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

Page 16: What is Drupal?handsomedogstudio.com › sites › default › files › Drupal... · I. Introduction to Drupal a. Overview of a CMS b. What "open source" means c. Drupal Showcase

Configuring modules

● After enabling a module, check for updates● Example: Contact module

– enable

– check for updates

– configure● add a contact form category

Page 17: What is Drupal?handsomedogstudio.com › sites › default › files › Drupal... · I. Introduction to Drupal a. Overview of a CMS b. What "open source" means c. Drupal Showcase

Themes

● Cue Lindsay. . .

http://5ringsweb.com

Page 18: What is Drupal?handsomedogstudio.com › sites › default › files › Drupal... · I. Introduction to Drupal a. Overview of a CMS b. What "open source" means c. Drupal Showcase

Content

● Content types– /admin/structure/types

– Let's create a new type: coffee

– Add fields: origin country, rating

Page 19: What is Drupal?handsomedogstudio.com › sites › default › files › Drupal... · I. Introduction to Drupal a. Overview of a CMS b. What "open source" means c. Drupal Showcase

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”

Page 20: What is Drupal?handsomedogstudio.com › sites › default › files › Drupal... · I. Introduction to Drupal a. Overview of a CMS b. What "open source" means c. Drupal Showcase

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

Page 21: What is Drupal?handsomedogstudio.com › sites › default › files › Drupal... · I. Introduction to Drupal a. Overview of a CMS b. What "open source" means c. Drupal Showcase

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

Page 22: What is Drupal?handsomedogstudio.com › sites › default › files › Drupal... · I. Introduction to Drupal a. Overview of a CMS b. What "open source" means c. Drupal Showcase

Menus

● Example – add “contact” page to the main menu

– /admin/structure/menu

– logical place is “main” menu● add link

Page 23: What is Drupal?handsomedogstudio.com › sites › default › files › Drupal... · I. Introduction to Drupal a. Overview of a CMS b. What "open source" means c. Drupal Showcase

Views

● A structured way to query your database and select content

– database platform neutral

– “SELECT * FROM 'coffeedrinks' WHERE 'caffeinecontent' = “high”

Page 24: What is Drupal?handsomedogstudio.com › sites › default › files › Drupal... · I. Introduction to Drupal a. Overview of a CMS b. What "open source" means c. Drupal Showcase

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

Page 25: What is Drupal?handsomedogstudio.com › sites › default › files › Drupal... · I. Introduction to Drupal a. Overview of a CMS b. What "open source" means c. Drupal Showcase

Views

● /admin/structure/views● Let's make a view that shows us all content

that has taxonomy term of “coffee”