hello drupal!

40
Hello Drupal Created by Acquia Learning Services (http://training.acquia.com/) Want to take this course online? http://bit.ly/hello2014

Upload: acquia

Post on 08-May-2015

1.024 views

Category:

Technology


0 download

TRANSCRIPT

Page 1: Hello Drupal!

Hello DrupalCreated by Acquia Learning Services

(http://training.acquia.com/)

Want to take this course online? http://bit.ly/hello2014

Page 2: Hello Drupal!

What we'll do in this courseDepends on how much time we have!

Learn conceptsWatch demosTry it yourself

Page 3: Hello Drupal!

Getting to know youAbout me

Why I use DrupalWhat I do with Drupal

About you!What other systems have youused?

Page 4: Hello Drupal!

What you absolutely mustknow

1. What is Drupal?2. Admin tour: Managing content with Drupal3. Thinking like Drupal: The Drupal Magic Trick4. Extending Drupal: The Big Three

Page 5: Hello Drupal!

Readiness check!Tools you need

1. A working copy of Drupal 7Local install (Try DevDesktop) ORAcquia Free Tier ORAccount on DrupalGardens

2. Online exercises.

Nice to have1. Browser inspection tool, such

as Firebug for Firefox; or"Developer mode" in Chrome

2. Lorem ipsum generator

Page 6: Hello Drupal!

1. What is Drupal?

Page 7: Hello Drupal!

Why do we have CMSs?Old days: just HTML

Sites were mainly text andimagesHierarchical site structure. Sites were assumed to beaccessed mainly from theirfront pages.Site maintenance consisted ofupdating text files.

To database-driven!Templating languages likePHP.Separate data and businesslogic separated from display. Users, logging in andinteracting.Non technical staff managingwebsites

Page 8: Hello Drupal!

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)

Page 9: Hello Drupal!

Used worldwide—many casesPublishing, Community, Apps, Web presence

See more at drupalshowcase.com (http://drupalshowcase.com)

Economist.com, Dev.twitter.com, Whitehouse.gov, The KingCenter

Page 10: Hello Drupal!

What does Drupal run on?

LAMP stack is most widely used and tested.

Requirements and flexibilityDetails

Built in PHP, HTML, CSS, JS.Other OSs, other servers, other DBs possible (in green)

drupal.org/requirements(https://drupal.org/requirements)

Page 11: Hello Drupal!

Building with DrupalDrupal functionality is easily extended with contributed and

custom code

About 80-90% of a typical project is done with contributed code!

Page 12: Hello Drupal!

Drupal.org (http://drupal.org)How many developers have contributed to Drupal? (Hint: check

"d.o")

is the canonical location forcollaboration, support, downloading code, accessing

documentation and connecting to regional and working groups.Referred to as "d.o"

Drupal.org (http://drupal.org)

Page 13: Hello Drupal!

Drupal is built by peopleDrupal 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)

Page 14: Hello Drupal!

DrupalConHeld in Europe, North America and AustraliaFrom 1500-3000 people5 days of learning and collaborationAffordable ticket prices; also Scholarships!

Where's the next DrupalCon?Hint! Check association.drupal.org/drupalcon

(https://association.drupal.org/drupalcon)

Page 15: Hello Drupal!

Connect locallyAttend meet-ups, DrupalCamps (local conferences) and training

hosts and up to date listing ofevents across the world.

Drupical (http://drupical.com)

Page 16: Hello Drupal!

2. The Drupal Admin Tour!

Page 17: Hello Drupal!

Drupal as a CMSDemos by your Drupal guide; you try the tasks.

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

Page 18: Hello Drupal!

Managing content with DrupalDemo

1. A quick tour of the admin UI,the overlay and menus.

2. How to add content?3. Where to find content?

Tasks1. Change your site title!2. Add a basic page3. Add an article4. Bonus: Main menu link5. Bonus: Comments

Page 19: Hello Drupal!

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.

Page 20: Hello Drupal!

Important to know!The Drupal content editing experience can (and should) be

customized by the developers for users.

1. Custom administration pages2. Improved UI for editing content3. WYSIWYG configuration

Page 21: Hello Drupal!

3. Thinking like Drupal

Page 22: Hello 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" iscompelling. Beware!

Page 23: Hello Drupal!

Structured dataCompare 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.

Page 24: Hello Drupal!

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.

Page 25: Hello Drupal!

Drupal Magic Trick!Demo

1. Add a content type2. Add an imagefield3. Create content (add a node)4. Create lists of content with

Views5. Place a block into a region6. Fix the imagestyle

Tasks1. Use Views!2. Make a page of articles at

/articles

Page 26: Hello Drupal!

How did you do?Which of these tasks did you complete?

1. Created a view2. Added a page of articles at /articles3. Bonus: Did you try something else?

Page 27: Hello Drupal!

Important to know!Contributed modules extend what Drupal can do.

Many modules like Views slideshow extend Views. Guess what itdoes?

Page 28: Hello Drupal!

4. Extending Drupal: The Big 3

Page 29: Hello Drupal!

First: Site Building

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

Page 30: Hello 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.

Page 31: Hello Drupal!

Second: Layout and theming

Layout and theming combines Drupal site building and coding inPHP/HTML/CSS/JS.

Page 32: Hello Drupal!

What is Layout and theming?1. Layout: Where things appear on the screen2. Theming: How they look

Tasks include:

Various approaches for different use cases. Contributed modules for configuring layout. Extending base themesCreating custom themes

Page 33: Hello Drupal!

Third: Custom coding with modules

Modules answer questions such as "Can Drupal do X?"

Page 34: Hello Drupal!

What is module development?Knowing the landscape of contributed modules androadmaps. Extending existing modules and contributing patches. Use Drupal's API to write new modules inPHP/HTML/CSS/JavaScript/etc.Custom modules for new functionality and integrations.

Page 35: Hello Drupal!

Drupal emphasizes flexibility

Drupal 7

Page 36: Hello Drupal!

Tips on module selectionReputation

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

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

CurrencyRecent commits (last 4-6 weeks)?Recent release? (green/stable)Issue queue responsiveness and maintenance?

Page 37: Hello Drupal!

Reading a project pageDemo

1. Compatible version forDrupal 7?

2. How many installations?3. Who maintains this?4. What are current issues?5. Is Documentation available?

Task1. Come up with an idea for

some functionality you'd likeon your site. (No ideas? Howabout allowing users loginwith Facebook.)

2. Search for a module.3. Evaluate it against the criteria

we used: Reputation, reach,currency

Page 38: Hello Drupal!

A basic theme

This is the bare minimum you need for a theme in Drupal 7.

Page 39: Hello Drupal!

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

theme?

Enable themes under "Appearance"

Page 40: Hello Drupal!

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

theme?

Enable themes under "Appearance"