SlideShare a Scribd company logo
Hello Drupal

Created by Acquia Learning Services
(http://training.acquia.com/)
Want to take this course online? http://bit.ly/hello2014
What we'll do in this course
Depends on how much time we have!

Learn concepts
Watch demos
Try it yourself
Getting to know you

About me

Why I use Drupal
What I do with Drupal

About you!

What other systems have you
used?
What you absolutely must
know
1.
2.
3.
4.

What is Drupal?
Admin tour: Managing content with Drupal
Thinking like Drupal: The Drupal Magic Trick
Extending Drupal: The Big Three
Readiness check!

Tools you need

Nice to have

1. A working copy of Drupal 7 1. Browser inspection tool, such
Local install (Try Dev
as Firebug for Firefox; or
Desktop) OR
"Developer mode" in Chrome
Acquia Free Tier OR
2. Lorem ipsum generator
Account on Drupal
Gardens
2. Online exercises.
1. What is 
Drupal?
Why do we have CMSs?

Old days: just HTML To database-driven!
Sites were mainly text and
images
Hierarchical site structure.
Sites were assumed to be
accessed mainly from their
front pages.
Site maintenance consisted of
updating text files.

Templating languages like
PHP.
Separate data and business
logic separated from display.
Users, logging in and
interacting.
Non technical staff managing
websites
In comes Drupal!

Photo by Kathleen Murtagh Dries' State of Drupal keynote
(http://www.flickr.com/photos/ceardach/4540450692)
(CC BY 2.0) (http://creativecommons.org/licenses/by/2.0/deed.en_GB)
Used worldwide—many cases

Publishing, Community, Apps, Web presence
See more at drupalshowcase.com (http://drupalshowcase.com)

Economist.com, Dev.twitter.com, Whitehouse.gov, The King
Center
What does Drupal run on?

LAMP stack is most widely used and tested.

Requirements and flexibility

Details drupal.org/requirements
(https://drupal.org/requirements)
Built in PHP, HTML, CSS, JS.
Other OSs, other servers, other DBs possible (in green)
Building with Drupal

Drupal functionality is easily extended with contributed and
custom code

About 80-90% of a typical project is done with contributed code!
Drupal.org (http://drupal.org)
How many developers have contributed to Drupal? (Hint: check
"d.o")

Drupal.org (http://drupal.org) is the canonical location for
collaboration, support, downloading code, accessing
documentation and connecting to regional and working groups.
Referred to as "d.o"
Drupal is built by people
Drupal is software but also a community.

All photos by Kathleen Murtagh code sprints (http://www.flickr.com/photos/ceardach/)
(CC BY 2.0) (http://creativecommons.org/licenses/by/2.0/deed.en_GB)
DrupalCon

Held in Europe, North America and Australia
From 1500-3000 people
5 days of learning and collaboration
Affordable ticket prices; also Scholarships!

Where's the next DrupalCon?

Hint! Check association.drupal.org/drupalcon
(https://association.drupal.org/drupalcon)
Connect locally

Attend meet-ups, DrupalCamps (local conferences) and training

Drupical (http://drupical.com) hosts and up to date listing of
events across the world.
2. The Drupal 
Admin Tour!
Drupal as a CMS

Demos by your Drupal guide; you try the tasks.

In Drupal 7, most of the editing in the admin area is done in the
"overlay".
Managing content with Drupal
Demo

1. A quick tour of the admin UI,
the overlay and menus.
2. How to add content?
3. Where to find content?

Tasks

1.
2.
3.
4.
5.

Change your site title!
Add a basic page
Add an article
Bonus: Main menu link
Bonus: Comments
How did you do?

Which of these tasks did you complete?
1. Changed site title.
2. Added a Basic page titled “About”.
3. Created an article with tags.
4. Bonus: Added a comment.
5. Bonus: Added link to Main menu.
Important to know!

The Drupal content editing experience can (and should) be
customized by the developers for users.
1. Custom administration pages
2. Improved UI for editing content
3. WYSIWYG configuration
3. Thinking like 
Drupal
Assembling your website

Your mental model might be like this.
You use Drupal to assemble sites with data.
Drupal surprises users who expect "structure first". Drupal is
"data first".
The computing metaphor of "folders" and "documents" is
compelling. Beware!
Structured data

Compare these two data models. How can you control content
input and display with either?

Unstructured text on the left, structured data (fields) on the right.
Introducing Views!

Views is a query builder.
It's the most popular contributed module.

This shows the Views wizard screen which we'll use in the demo.
Drupal Magic Trick!

Demo
1.
2.
3.
4.

Tasks

Add a content type
1. Use Views!
Add an imagefield
2. Make a page of articles at
Create content (add a node)
/articles
Create lists of content with
Views
5. Place a block into a region
6. Fix the imagestyle
How did you do?

Which of these tasks did you complete?
1. Created a view
2. Added a page of articles at /articles
3. Bonus: Did you try something else?
Important to know!

Contributed modules extend what Drupal can do.

Many modules like Views slideshow extend Views. Guess what it
does?
4. Extending 
Drupal: 
The Big 3
First: 
Site Building

Site building is everything you can do in the UI layer of Drupal
What is Site Building?

Selecting and configuring contributed modules.
Modeling content types, users, etc with fields.
Configuring display of content, users, terms, etc.
Configuring lists (views) of content, users, terms, etc.
Second: 
Layout and theming

Layout and theming combines Drupal site building and coding in
PHP/HTML/CSS/JS.
What is Layout and theming?
1. Layout: Where things appear on the screen
2. Theming: How they look
Tasks include:
Various approaches for different use cases.
Contributed modules for configuring layout.
Extending base themes
Creating custom themes
Third: 
Custom coding with modules

Modules answer questions such as "Can Drupal do X?"
What is module development?
Knowing the landscape of contributed modules and
roadmaps.
Extending existing modules and contributing patches.
Use Drupal's API to write new modules in
PHP/HTML/CSS/JavaScript/etc.
Custom modules for new functionality and integrations.
Drupal emphasizes flexibility

Drupal 7
Tips on module selection
Reputation

Maintainers other contributions and involvement,
IRC, word of mouth, appearance in case studies and blog posts.

Reach

Community around module?
Related modules?
Number of installations?
Integrate with other modules?

Currency

Recent commits (last 4-6 weeks)?
Recent release? (green/stable)
Issue queue responsiveness and maintenance?
Reading a project page
Demo

Task

1. Compatible version for
1. Come up with an idea for
Drupal 7?
some functionality you'd like
2. How many installations?
on your site. (No ideas? How
3. Who maintains this?
about allowing users login
4. What are current issues?
with Facebook.)
5. Is Documentation available? 2. Search for a module.
3. Evaluate it against the criteria
we used: Reputation, reach,
currency
A basic theme

This is the bare minimum you need for a theme in Drupal 7.
What will happen?

What do you think the site will display when we enable this
theme?

Enable themes under "Appearance"
What will happen?

What do you think the site will display when we enable this
theme?

Enable themes under "Appearance"

More Related Content

Hello Drupal!