46
Drupal Workshop Presented by OS Solu tions

Posscon 2011 Drupal Workshop

Embed Size (px)

DESCRIPTION

 

Citation preview

Page 1: Posscon 2011 Drupal Workshop

Drupal Workshop

Presented by OS Solutions

Page 2: Posscon 2011 Drupal Workshop

About

Us

Company Roger Steven Casey Bryan

Page 3: Posscon 2011 Drupal Workshop

Inte

nded

Audie

nce Beginner Intermediate Advanced

Page 4: Posscon 2011 Drupal Workshop

Ove

rvie

w To cover as much Drupal as we can in 2

hours to meet all audience levels

Page 5: Posscon 2011 Drupal Workshop

dru

pal.o

rg Navigation GIT Groups

Page 6: Posscon 2011 Drupal Workshop

Term

inolo

gy Modules Blocks Themes Taxonomy

Page 7: Posscon 2011 Drupal Workshop

Dru

pal

Requir

em

ent s Linux PHP

MySQL

Page 8: Posscon 2011 Drupal Workshop

Inst

alla

tion

Dir in Apache web dir Setup conf Hosts (local) MySQL settings.php / files

Page 9: Posscon 2011 Drupal Workshop

Adm

in

Inte

rface Default Admin Admin Menu

Page 10: Posscon 2011 Drupal Workshop

Dru

sh

PHP Drop-in Command Line Quick Commands

Page 11: Posscon 2011 Drupal Workshop

Enablin

g

Module

s

Download, Extract, Enable

New D7 Paste URLDrush dl, en (den on

github)https://github.com/jacksi

nn/Moar-Drush-Commands

Page 12: Posscon 2011 Drupal Workshop

Cre

ati

ng

Conte

nt Manual Devel Import

Page 13: Posscon 2011 Drupal Workshop

Cre

ati

ng N

ew

C

onte

nt

Types CCK CCK Extensions D7

Page 14: Posscon 2011 Drupal Workshop

CC

K F

ield

s Creating Ordering Displaying

Page 15: Posscon 2011 Drupal Workshop

Node

Refe

rence

CCK Field Type AJAX Field (easy, node

title -> nid) Relates nodes

Page 16: Posscon 2011 Drupal Workshop

Taxo

nom

y Semantic Web Similar Content Use across node types

Page 17: Posscon 2011 Drupal Workshop

Dis

pla

ying

Conte

nt Block Output Views Displays TPL Files

Page 18: Posscon 2011 Drupal Workshop

Blo

cks Chunks of information

Can drop in code

Page 19: Posscon 2011 Drupal Workshop

Vie

ws Query Generator Create pages, blocks,

feeds Live query results

Page 20: Posscon 2011 Drupal Workshop

Vie

ws

UI Main interface Configuration Displays

Page 21: Posscon 2011 Drupal Workshop

Vie

ws

Dis

pla

ys

Block Page Feed Attachment

Page 22: Posscon 2011 Drupal Workshop

Vie

ws

Field

s Items to output ‘select’ clause Ordering, relationships

Page 23: Posscon 2011 Drupal Workshop

Vie

ws

Filt

ers Main Filtering ‘where’ clause Can expose filters

Page 24: Posscon 2011 Drupal Workshop

Vie

ws

Sort Sort query output ‘order by’ clause Multiple options

Page 25: Posscon 2011 Drupal Workshop

Vie

ws

Arg

um

ents Like filters Limit output based on

node information, relationships

Page 26: Posscon 2011 Drupal Workshop

Vie

ws

Rela

tionsh

ip s

Used to tie information

/ nodes together ‘join’ clause Use with fields and filters

Page 27: Posscon 2011 Drupal Workshop

Use

rs User 1 User 0 Management

Page 28: Posscon 2011 Drupal Workshop

Role

s Logically group users Share permissions User may have

multiple roles

Page 29: Posscon 2011 Drupal Workshop

Perm

issi

ons

What users may and

may not view or modify Setup by role Users with multiple

roles get the most liberal (‘or’ logic)

Page 30: Posscon 2011 Drupal Workshop

Rule

s /

Trig

gers

Execute actions on event Generate emails

Create new content Flagged content

Page 31: Posscon 2011 Drupal Workshop

Flags

Allow users to mark nodes (like, report)

Use with triggered rules By user or global

Page 32: Posscon 2011 Drupal Workshop

Oth

er

Com

mon

Module

s Drupal relies on contrib modules to increase robustness

Modules on drupal.org

are GPLv2 Licensed

Page 33: Posscon 2011 Drupal Workshop

Conte

xt

Logically display items

based on conditions Bundle regional

information to be used

across many node types

Page 34: Posscon 2011 Drupal Workshop

Featu

res

Store logically grouped

items in code Helps with versioning /

multiple developers Can deploy to any site

Drush feature-update

(fu)

Page 35: Posscon 2011 Drupal Workshop

Nodequeue

Order nodes Useful with sliders, promoting nodes, ad

management Add to queue on node

page (easy)

Page 36: Posscon 2011 Drupal Workshop

Path

auto

Generate URLs for content based on information about the

node or static May use tokens

Page 37: Posscon 2011 Drupal Workshop

Mult

isit

e

Traditional drop in new

sites in sites/ dir Aegir GUI management of site deployment

Page 38: Posscon 2011 Drupal Workshop

List

of

Module

s http://drupal.org/proje

ct/modules Good ordering options

Page 39: Posscon 2011 Drupal Workshop

Cach

ing CSS / JS Block Views Squid (external)

Page 40: Posscon 2011 Drupal Workshop

Product

ion

Deplo

yment Turn off UI elements Caching Database direction

Use features

Page 41: Posscon 2011 Drupal Workshop

Managin

g

Deplo

yment s

Core updates (backup!) Drush pm-update (up)

Versioning Only pull from prod DB

never push to

Page 42: Posscon 2011 Drupal Workshop

Module

D

eve

lopm

en t Structure Hooks API

Submission Process

Page 43: Posscon 2011 Drupal Workshop

Them

e

Deve

lopm

en t Structure .info .tpl.php files template.php

Page 44: Posscon 2011 Drupal Workshop

Data

base

M

anagem

en t Features Export DB Dump Drush

Page 46: Posscon 2011 Drupal Workshop

Addit

ional

Reso

urc

es

drupal.org api.drupal.org