24
WEB CONTENT MANAGEMENT SYSTEMS FROM A DESIGNER'S PERSPECTIVE THE TECHNICAL STUFF Chris Charlton Author; Community Leader; Coder http://XTND.US

Web Content Management Systems From A Designer's Perspective (Drupal Technical Stuff)

Embed Size (px)

DESCRIPTION

Technical details about working with Web CMS systems from a Designer's perspective as presented by Chris Charlton at SxSW Interactive 2010.

Citation preview

Page 1: Web Content Management Systems From A Designer's Perspective (Drupal Technical Stuff)

WEB CONTENT MANAGEMENT SYSTEMS FROM A DESIGNER'S PERSPECTIVE

THE TECHNICAL STUFFChris Charlton

Author; Community Leader; Coder

http://XTND.US

Page 2: Web Content Management Systems From A Designer's Perspective (Drupal Technical Stuff)

WEB DESIGN IS CODING

HTML/XHTML (markup)

CSS (not markup)

Page 3: Web Content Management Systems From A Designer's Perspective (Drupal Technical Stuff)

WEB DESIGN SKILLS: TODAY

HTML + CSS (required)

JavaScript (optional)

Basic PHP

Source code management - Subversion (SVN)

Multiple environments discipline (local, dev, staging, live)

Page 4: Web Content Management Systems From A Designer's Perspective (Drupal Technical Stuff)

HOW MUCH PHP?

Easy stuff:

Print variables and text to screen (“echo”)

Conditional logic (IF...ELSE)

Call functions

Not as easy, but not hard:

Arrays

Objects

Page 5: Web Content Management Systems From A Designer's Perspective (Drupal Technical Stuff)

DEVELOP LOCALLY. ALWAYS.

Code Repository

Your Local Machine

(code & test)

RemoteServer

Page 6: Web Content Management Systems From A Designer's Perspective (Drupal Technical Stuff)

DRUPAL

Page 7: Web Content Management Systems From A Designer's Perspective (Drupal Technical Stuff)

DRUPAL UNDER THE HOOD

Over 400 files: PHP with some CSS & JS.

Over 700 developers contribute to Drupal core.

Ships with a handful of themes and dozens of modules.

Never ever, ever hack “core”.

Page 8: Web Content Management Systems From A Designer's Perspective (Drupal Technical Stuff)

DRUPAL UNDER THE HOOD

Level 1: Drupal core

Level 2: Module(s)

Level 3: Theme(s)

Page 9: Web Content Management Systems From A Designer's Perspective (Drupal Technical Stuff)

HOW DRUPAL BUILDS A PAGE

Step 1: Drupal bootstraps.

Step 2: Modules chime in with their own markup and styles.

Step 3: Theme manipulates markup and styles.

Page 10: Web Content Management Systems From A Designer's Perspective (Drupal Technical Stuff)

WHERE DOES IT ALL COME FROM?

drupal/includes/theme.inc

drupal/modules/system/*

drupal/modules/node/*

drupal/modules/block/*

drupal/themes/*

Page 11: Web Content Management Systems From A Designer's Perspective (Drupal Technical Stuff)

DRUPAL THEMES“a folder of stuff”

Page 12: Web Content Management Systems From A Designer's Perspective (Drupal Technical Stuff)

DRUPAL THEME FILES

REQUIRED

*.info = theme manifest

NOT REQUIRED

*.css = styles

*.tpl.php = templates

template.php = logic

Page 13: Web Content Management Systems From A Designer's Perspective (Drupal Technical Stuff)

.INFO DEMO

Page 14: Web Content Management Systems From A Designer's Perspective (Drupal Technical Stuff)

THEME TEMPLATESPage, Node, Block, etc.

Page 15: Web Content Management Systems From A Designer's Perspective (Drupal Technical Stuff)

PAGE TEMPLATE (PAGE.TPL.PHP)

Provides <HTML> <HEAD> and <BODY> tags.

Page 16: Web Content Management Systems From A Designer's Perspective (Drupal Technical Stuff)

NODE TEMPLATE (NODE.TPL.PHP)

Provides <DIV> <SPAN> and <H2> tags.

Page 17: Web Content Management Systems From A Designer's Perspective (Drupal Technical Stuff)

BLOCK TEMPLATE (BLOCK.TPL.PHP)

Provides secondary content & layout tags: <DIV> <H3>

Page 18: Web Content Management Systems From A Designer's Perspective (Drupal Technical Stuff)

MANY MODULES HAVE TEMPLATES

Page 19: Web Content Management Systems From A Designer's Perspective (Drupal Technical Stuff)

COMMENT TEMPLATE (COMMENT.TPL.PHP)

Provides content & layout tags: <DIV> <SPAN>

Page 20: Web Content Management Systems From A Designer's Perspective (Drupal Technical Stuff)

SUB-THEMES

Inherit logic and styles from parent themes.

No headaches when parent theme gets updated.

Base Parent Theme

Sub-Theme

Page 21: Web Content Management Systems From A Designer's Perspective (Drupal Technical Stuff)

SUB-THEME WORKFLOW

Download parent theme.

Create design.

Slice and export graphics.

Prepare sub-theme folder.

Generate sub-theme files.

.info

CSS

Copy templates & edit.

Page 22: Web Content Management Systems From A Designer's Perspective (Drupal Technical Stuff)

THEME FRAMEWORKS

Provide layout and logic.

Markup is really good.

Styles are easy to find.

Ultimate parent themes!

Design more, code less.

Page 23: Web Content Management Systems From A Designer's Perspective (Drupal Technical Stuff)

SUB-THEME WORKFLOW B

Download framework (parent theme).

Create design.

Slice and export graphics.

Follow theme framework instructions.

Prepare sub-theme folder.

Generate sub-theme files.

.info

CSS

Copy templates & edit.

Page 24: Web Content Management Systems From A Designer's Perspective (Drupal Technical Stuff)

LEARN & DO MOREVideo Tutorials: http://tinyurl.com/theme-drupal

Written Tutorials: http://adobe.com/devnet