Designing for Drupal. John Albin Wilkins



Similar documents
Drupal for Designers

Table of Contents. What is ProSite? What is Behance? How do ProSite & Behance work together? Get Started in 6 Easy Steps.

An Introduction to Drupal Architecture. John VanDyk DrupalCamp Des Moines, Iowa September 17, 2011

A "content-first" approach to designing responsive Drupal layouts using Twitter Bootstrap

Learning Web Design. Third Edition. A Beginner's Guide to (X)HTML, Style Sheets, and Web Graphics. Jennifer Niederst Robbins

HOW TO CREATE THEME IN MAGENTO 2

Content Manager User Guide Information Technology Web Services

Content Management Systems versus Flat Files Open Source versus Closed Selecting a Content Management System Drupal A Note about Drupal Versions

MASTER DRUPAL 7 MODULE DEVELOPMENT

Drupal 8 The site builder's release

Responsive Web Design for Drupal

How To Change Your Site On Drupal Cloud On A Pcode On A Microsoft Powerstone On A Macbook Or Ipad (For Free) On A Freebie (For A Free Download) On An Ipad Or Ipa (For

Microsoft Expression Web Quickstart Guide

We automatically generate the HTML for this as seen below. Provide the above components for the teaser.txt file.

Using your Drupal Website Book 1 - Drupal Basics

Coding HTML Tips, Tricks and Best Practices

Creating a Drupal 8 theme from scratch

Responsive Web Design. birds of feather

ART 379 Web Design. HTML, XHTML & CSS: Introduction, 1-2

Interspire Website Publisher Developer Documentation. Template Customization Guide

MAILCHIMP INTEGRATION:

BUILDING MULTILINGUAL WEBSITES WITH DRUPAL 7

Web Developer Jr - Newbie Course

Develop a Native App (ios and Android) for a Drupal Website without Learning Objective-C or Java. Drupaldelphia 2014 By Joe Roberts

Chapter 7 Page Layout Basics Key Concepts. Copyright 2013 Terry Ann Morris, Ed.D

Going Beyond SAP ITS Mobile Apps to a Responsive Design Mobile Apps. JK (JayaKumar Pedapudi) Principal Consultant NTT DATA, Inc.

DEMO ONLY VERSION. Easy CramBible Lab M Magento Front End Developer Certification Exam. ** Single-user License **

PASTPERFECT-ONLINE DESIGN GUIDE

Fast, Cheap & Easy. DIY Library 2.0 Services

Software Development & Education Center PHP 5

01/42. Lecture notes. html and css

Garfield Public Schools Fine & Practical Arts Curriculum Web Design

The Essential Guide to HTML Design

Using jquery and CSS to Gain Easy Wins in CiviCRM

Frames. In this chapter

Building Responsive Websites with the Bootstrap 3 Framework

MAGENTO TRAINING PROGRAM

Joomla! template Blendvision v 1.0 Customization Manual

DESIGN RESPONSIVELY DRUPAL CAMP CT RESPONSIVE WEB DESIGN AND DRUPAL PROJECT. Monday, August 27, 12

Building Your First Drupal 8 Company Site

Hypercosm. Studio.

This manual cannot be redistributed without permission from joomla-monster.com

Dreamweaver and Fireworks MX Integration Brian Hogan

Making a Web Page with Microsoft Publisher 2003

Graphic Design Best Practices

WordPress websites themes and configuration user s guide v. 1.6

Designing HTML ers

The Essential Guide to HTML Design

Getting Started with SharePoint Three projects. Legislative Service Center (LSC) Homepage Employee Bulletin Board CMS to SharePoint Migration

Responsive HTML and Drupal

JJY s Joomla 1.5 Template Design Tutorial:

Magento Responsive Theme Design

HTML TIPS FOR DESIGNING

Outline of CSS: Cascading Style Sheets

Hello. What s inside? Ready to build a website?

Simple Tips to Improve Drupal Performance: No Coding Required. By Erik Webb, Senior Technical Consultant, Acquia

Joomla! Actions Suite

Drupal and ArcGIS Yes, it can be done. Frank McLean Developer

Content Manager User Guide Information Technology Web Services

Kentico CMS, 2011 Kentico Software. Contents. Mobile Development using Kentico CMS 6 2 Exploring the Mobile Environment 1

Base template development guide

Lisa Sabin-Wilson WILEY. Wiley Publishing, Inc.

Google Sites: Creating, editing, and sharing a site

Beginning Web Development with Node.js

Theming on Drupal 7. Working with Omega s Responsive Framework

FORTIS. User Guide. Fully responsive flexible Magento theme by Infortis. Copyright Infortis. All rights reserved

IE Class Web Design Curriculum

CREATING RESPONSIVE UI FOR WEB STORE USING CSS

Rochester Institute of Technology. Finance and Administration. Drupal 7 Training Documentation

Trainer name is P. Ranjan Raja. He is honour of and he has 8 years of experience in real time programming.

Inspiring Creative Fun Ysbrydoledig Creadigol Hwyl. Web Design in Nvu Workshop Session Plan

PORTAL ADMINISTRATION

How To Send Your Newsletter

Grids for Web Design

UOFL SHAREPOINT ADMINISTRATORS GUIDE

2011 ithemes Media LLC. All rights reserved in all media. May be shared with copyright and credit left intact

6 HUGE Website Mistakes that could Cost You Thousands

Discovery and Planning

Workshop on Using Open Source Content Management System Drupal to build Library Websites Hasina Afroz Auninda Rumy Saleque

Web Development. Owen Sacco. ICS2205/ICS2230 Web Intelligence

EXAM - M Magento Front End Developer. Buy Full Product.

Advanced Web Development SCOPE OF WEB DEVELOPMENT INDUSTRY

Transcription:

Designing for Drupal John Albin Wilkins

Who is this guy anyway? Real Name: John Albin Wilkins Drupal Nick: JohnAlbin I ve been writing HTML since 1994. I ve been developing CSS Layouts since 2001 ALA: A List Apart Issue #99 (February 2001). To Hell with Bad Browsers By Jeffrey Zeldman Building Drupal websites since Sep 2005. Contributing to Drupal for 2 years. Drupal is a Do-ocracy.

Designing for Drupal Drupal theming has long been seen as a dark art. There are many Drupalisms such as CSS class names, XHTML structure, and PHP knowledge which web designers should be aware of before embarking on a Drupal project. John Wilkins is a CSS master and the maintainer of Drupal s respected Zen theme framework. This session will be a must for designers or anyone who has struggled with CSS.! Drupal Theming Layer! Templates and preprocessors! XHTML and PHP! Base Themes ftw! CSS and class names! Where to go for help

Taking Control (and giving up)

Theming Example

Theming Example

Drupal Design

<?php print "with some PHP"?> Drupal Design

Drupal s Theme Layer (the big picture)

Drupal s Theme Layer (the big picture)

Drupal s Theme Layer (the big picture)

Drupal Templates! page.tpl.php pull data pull data pull data pull data! node.tpl.php theme('menu_local_tasks') theme('menu_local_task') theme('breadcrumb') theme('links') theme('help') theme('closure') theme('box') theme('block') theme('item_list')! block.tpl.php theme('menu_local_task') theme('links') push $content theme('username') theme('node') theme('blocks')! comment.tpl.php! node-story.tpl.php node-[type].tpl.php theme('page')! page-node-37.tpl.php page-node-[nid].tpl.php

Template Variables Conditional Info Title Author Info NODE Template node.tpl.php content Read More, etc.

Preprocess Functions Page Variable modifications Node Variable Additions template.php is found in your theme directory

What was the part in the middle? http://drupal.org/theme-guide

Base Themes Powerful Frameworks for Beginners and Power Users

Benefits of Base Themes Sub-theme of a Base Theme You don t have to build everything yourself. Copy, override, and modify only what you need to. Bug fixes. Others can fix any bugs in the base theme. New features. For contrib Themes, there will occasionally be new features. Support. If you have modified an existing theme, sometimes the only answer you will get to your support question is Well, it works fine in the original theme. Rapid Theme Development. Many things are built for you. DIY Theme You get to build everything by yourself! Bugs! You get to build everything yourself! pphft. Rapid Heart Rate.

http://drupal.org/project/zen

Why use Zen? Designed for beginners and Theming ninjas. Extensive on-line documentation. Step-by-step instructions on building your own sub-theme. Extensive in-line comments in its PHP and CSS files. It s also got a laundry list of features. (which are exciting to use, but boring to list.) A fantastically flexible CSS Layout method (that even works with IE5.5.) You know the developer.

Why use Zen? Designed for beginners and Theming ninjas. Extensive on-line documentation. Step-by-step instructions on building your own sub-theme. Extensive in-line comments in its PHP and CSS files.

Drupal CSS Class Names, CSS Tips, Zen Tricks

Body Classes

Body Classes Core provides:!.front,.not-front!.logged-in,.not-logged-in!.page-path (internal path, first part only) example:.page-admin,.page-node!.node-type-type example:.node-type-event Zen provides:!.page-path-alias (full path) example:.page-about-staff!.section-path (url path, first part only) example:.section-about!.section-node-add,.section-node-edit,.section-node-delete!.two-sidebars,.one-sidebar.sidebar-left,.one-sidebar.sidebar-right,.no-sidebars

Node and Comment Classes (if you use Zen).sticky.node-unpublished.node-mine.node-teaser.node-type-TYPE.comment-new.first.last.comment-by-anon.comment-by-author.comment-mine

Brief overview of Zen s Layout method Source-ordered HTML: The importance of the pieces of content determines the order in HTML, and not the graphic design. Flexible layout options: Fluid (100% width) or fixed-width layout Optional horizontal navbar 1-3 columns built-in. More columns are possible without mind-bending contortions. Zen s default Layout Method is completely pluggable. If you don t like it, just replace the layout.css file with your own layout method: YUI, YAML, Jello Mold, Holy Grail, etc.

Brief overview of Zen s Layout method Source-ordered HTML: The importance of the pieces of content determines the order in HTML, and not the graphic design. Flexible layout options: Fluid (100% width) or fixed-width layout Optional horizontal navbar 1-3 columns built-in. More columns are possible without mind-bending contortions. Zen s default Layout Method is completely pluggable. If you don t like it, just replace the layout.css file with your own layout method: YUI, YAML, Jello Mold, Holy Grail, etc.

Brief overview of Zen s Layout method Source-ordered HTML: The importance of the pieces of content determines the order in HTML, and not the graphic design. Flexible layout options: Fluid (100% width) or fixed-width layout Optional horizontal navbar 1-3 columns built-in. More columns are possible without mind-bending contortions. Zen s default Layout Method is completely pluggable. If you don t like it, just replace the layout.css file with your own layout method: YUI, YAML, Jello Mold, Holy Grail, etc.

Negative Margins (and positive results) ( These blocks have float: left; )

Negative Margins (and positive results) ( These blocks have float: left; )

Negative Margins (and positive results) ( These blocks have float: left; )

Negative Margins (and positive results) ( These blocks have float: left; )

Negative Margins (and positive results) ( These blocks have float: left; )

Getting Help http://drupal.org/theme-guide http://drupal.org/project/zen http://drupal.org/irc #drupal-themes #drupal-support #drupal Ask Questions!