• No results found

Drupal 101. Introduction to Drupal. October 10, 2015 nedcamp.org

N/A
N/A
Protected

Academic year: 2021

Share "Drupal 101. Introduction to Drupal. October 10, 2015 nedcamp.org"

Copied!
19
0
0

Loading.... (view fulltext now)

Full text

(1)

Drupal 101

Introduction to Drupal

October 10, 2015

nedcamp.org

(2)

Rick Hood


richard.hood@commonmediainc.com


richardhoodcreative@gmail.com


www.drupal.org/user/54879

2011 - present 


Project Manager & Drupal Developer


Common Media, Inc. located in Hadley, MA


www.commonmedia.com

2000 - 2010


Freelance web development and graphic design


Drupal since 2006 (Drupal 4.7)

1982 - 1999


President & COO Hood Enterprises (1991-1999)


Portsmouth, RI


(3)

Yacht Insider’s Guide

(4)

What we will cover

Some preliminaries, then dive into using Drupal

1. What is a CMS? What is Drupal? Why Drupal?

2. Using Drupal


dive into using a Drupal site

3. Creating a Drupal site


create the site we used above

4. Setting up your computer to run a website on it

(5)

PDFs are up on the session page

nedcamp.org/new-england-drupal-camp-2015/sessions/drupal-101

Drupal101_2015-10-10.pdf

(6)

What is a CMS?

CMS = Content Management System

= a database of content…


…as opposed to content scattered in various files

A CMS, like any database, uses forms to enter

content into the database.

Drupal is a CMS

Blogger, WordPress, Joomla, Django, SharePoint… 


…are all CMS’s

(7)

What is Drupal?

Drupal is a CMS.

It can also be thought of as a

“framework” (a tool to build software).

It can also be thought of as a pre-built

(8)

Why Drupal?

Drupal does not assume what your

website functionality is going to be…

…it has the building blocks to build

pretty much anything.

(9)

Drupal’s Building Blocks

Three features that make Drupal great

Content types & fields

Views

…for easy queries (lists of content)

User permission control

(10)

Title

Body

(the main text area) Date Author Category Image ARTICLE Category Local News National News World News Person Posted By First Name Last Name Email Bio First Name Last Name Email Bio

Content Type Content Type

Taxonomy

User

(11)

OK, let’s use Drupal

We’ll be looking at Drupal 7, but everything applies to Drupal 8

(12)

Summary

1. Content types and fields

2. Taxonomy (for categories)

3. Modules (for adding functionality)

4. Themes (for changing layout and look)

5. Blocks (placed in regions of a theme’s layout)

6. Views (easy query building for lists of content)

7. Users, roles, permissions

(13)

Installing Drupal on your local computer

A. Create a folder on your computer (e.g.”nerds”) in the folder that you keep you websites (e.g. “Sites”)

B. Download the Drupal zip file (https://www.drupal.org/download) into that folder and unzip it, rename the folder (e.g. “root”).

C. Setup vhost (e.g. drupal101) in MAMP or WAMP to point the local site name to the root folder (from “B”above).

D. Go to your local site in the browser (e.g. http://vhostname:8888), this will start the install process.

E. Create the MySQL database on your computer that Drupal needs, using

phpMyAdmin (in MAMP and WAMP) to Sequel Pro (Mac) or Navicat (Windows). F. Continue the install process by entering the database name, user name and

password. G. Thats it!

(14)

Setting up your computer

Drupal runs on what is called the LAMP stack

LAMP = Linux, Apache, MySQL, PHP

Linux = operating system (e.g. Ubuntu, CentOS)


Apache = web server 


MySQL = database


PHP = language used by Drupal

When you get a web host account to host your website on the

internet, it will use some form of the LAMP stack

We need to essentially setup a LAMP stack on our local

computer to run Drupal “locally” 


(15)

LAMP on your computer

Mac


MAMP (Mac Apache MySQL PHP) 


www.mamp.info 


MAMP (free) MAMP Pro $59 (2014)

Windows


WAMP (Windows Apache MySQL PHP) 


www.wampserver.com (free)

Windows, Linux or Mac


XAMP (Windows, Linux, OSX, Apache MySQL PHP) 


www.apachefriends.org (free)

Manage MySQL


Use phpMyAdmin (comes with MAMP and WAMP)


Get Sequel Pro (Mac) or Navicat (Windows)


Sequel Pro www.sequelpro.com (free)


Navicat www.navicat.com ($99)

(16)

Getting and using a web host

Web hosting

Shared hosting - recommend for trying things out


Dreamhost, Bluehost, Media Temple $10-$20/month


VPS (virtual private server) - a dedicated portion of a server


Dreamhost, Bluehost, Media Temple $50/month


Dedicated Server (most expensive)

…or hosted Drupal: www.drupalgardens.com 


(17)

Getting and using a web host

You need a way to move your files to your 


web host server

FTP = File Transfer Protocol


Simply moving files from your computer to another drive, but over the internet

rather than via USB or other cable.

Mac


FileZilla (free), Transmit ($34)

Windows


(18)

Installing Drupal on your web host

A. Upload your Drupal files to the root folder of your web hosting

account.

B. Create the MySQL database on your computer that Drupal

needs, most likely using phpMyAdmin, or some other database

management control panel that your web host will have. You will

probably need to create a database username and password,

and assign all privileges to that user for that database

C. Visit your site in a browser, you will see the install screen

D. Continue the install process by entering the database name,

user name and password.

(19)

Drupal Resources

Google is your friend, search for “Drupal how do I ______?”

www.drupalize.me ($ some free)


www.buildamodule.com ($ some free)

www.lynda.com ($)

Installing Drupal 7 Locally


References

Related documents

The preceding argument gives a good physical picture of how the refracted and reflected waves are built up from secondary wavelets. We can also understand the laws of reflection

Although this study presents a scale several orders of magnitude larger than the Ainsa Basin, the amount of deformation sandstone rafts show in the field suggest that debris

In addition, we can look to the storage market (i.e., the behavior of inventories and convenience yield ) to determine whether changes in the spot price are attributable

It then analyses the impact of regional integration on member countries based on traditional and new trade theories (Section IV), and reviews empirical findings (Section V)..

dissertation analyzes several strands of literature: the historical role of missionaries as producers of social scientific knowledge; the Christian roots of American sociology and

document describes a vision of a Mexico that by 2025 “will be a fully democratic nation with a high quality of life that will have reduced its extreme social imbalances and will

We find suggestive evidence for a Kuznet’s relationship using data from the ENADID, with migration increasing inequality at lower levels of migration stock, and then reducing