Responsive HTML email and Drupal



Similar documents
How to craft a modern, mobile-optimized HTML template. Jason Samuels, NCFR IT Manager DrupalCamp Twin Cities May 2012

Level 1 - Clients and Markup

GUIDE TO CODE KILLER RESPONSIVE S

Essential HTML & CSS for WordPress. Mark Raymond Luminys, Inc mraymond@luminys.com

The Essential Guide to HTML Design

MCH Strategic Data Best Practices Review

HTML TIPS FOR DESIGNING

Looking Good! Troubleshooting Display Problems

Making Responsive s

Designing HTML ers

Web Design Basics. Cindy Royal, Ph.D. Associate Professor Texas State University

Introduction to Adobe Dreamweaver CC

Creating Effective HTML Campaigns

Magento Responsive Theme Design

CST 150 Web Design I CSS Review - In-Class Lab

Campaign Guidelines and Best Practices

8 STEPS TO CODE KILLER RESPONSIVE S

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

The Birth of Responsive Templates

RESPONSIVE DESIGN FOR MOBILE RENDERING

Web Authoring CSS. Module Descriptor

The Essential Guide to HTML Design

Creator Coding Guidelines Toolbox

How to Build a SharePoint Website

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

Converting Prospects to Purchasers.

Coding HTML Tips, Tricks and Best Practices

A quick guide to... Effective HTML Messages

Responsive Web Design: Media Types/Media Queries/Fluid Images

Web Portal User Guide. Version 6.0

Designing HTML s for Use in the Advanced Editor

JJY s Joomla 1.5 Template Design Tutorial:

Mobile Optimise your s. Code & examples to make your campaigns mobile friendly

Responsive Design for

To change title of module, click on settings

HTML and CSS. Elliot Davies. April 10th,

RESPONSIVE DESIGN BY COMMUNIGATOR

Web layout guidelines for daughter sites of Scotland s Environment

How To Create A Web Page On A Windows (For Free) With A Notepad) On A Macintosh (For A Freebie) Or Macintosh Web Browser (For Cheap) On Your Computer Or Macbook (

Base template development guide

Creating Mailing Lables in IBM Cognos 8 Report Studio

Full report on all 24 clients

Web Design with CSS and CSS3. Dr. Jan Stelovsky

Mail Chimp Basics. Glossary

DESIGNING MOBILE FRIENDLY S

Welcome to MailChimp.

Responsive Design

Let's Dig Into the Omega Theme October 27,

SAHARA DIGITAL8 RESPONSIVE MAGENTO THEME

HTML Power Tips. HTML messages improve your CTR. World s Easiest Marketing.

ICE: HTML, CSS, and Validation

Principles of Web Design 6 th Edition. Chapter 12 Responsive Web Design

Recreate your Newsletter Content and Layout within Informz (Workshop) Monica Capogna and Dan Reade. Exercise: Creating two types of Story Layouts

Outline of CSS: Cascading Style Sheets

On the Marketing home page, click the arrow to expand the Admin Tools area. Admin Tools

An overview of designing HTML s for Hotmail, Yahoo, Outlook, Lotus Notes and AOL

User Guide for Smart Former Gold (v. 1.0) by IToris Inc. team

Responsive Web Design. birds of feather

State of Nevada. Ektron Content Management System (CMS) Basic Training Guide

Development Perspective: DIV and CSS HTML layout. Web Design. Lesson 2. Development Perspective: DIV/CSS

Mobile Web Site Style Guide

Responsive Design Best Practices

Create Your own Company s Design Theme

Building Your First Drupal 8 Company Site

Create Signature for the Scott County Family Y

MICROSOFT OUTLOOK 2010 READ, ORGANIZE, SEND AND RESPONSE S

Blueball Design Dynamic Content 2 Stack Readme Manual v1.0

Super Resellers // Getting Started Guide. Getting Started Guide. Super Resellers. AKJZNAzsqknsxxkjnsjx Getting Started Guide Page 1

Contents. Downloading the Data Files Centering Page Elements... 6

Web Development. Owen Sacco. ICS2205/ICS2230 Web Intelligence

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

presented by Maxmail

SimplyCast emarketing User Guide

Basic tutorial for Dreamweaver CS5

Dreamweaver CS4 Day 2 Creating a Website using Div Tags, CSS, and Templates

Creative Guidelines for s

MAILCHIMP INTEGRATION:

Magic Liquidizer Documentation

HOW Interactive Design Conference 2013

BASICS OF WEB DESIGN CHAPTER 2 HTML BASICS KEY CONCEPTS COPYRIGHT 2013 TERRY ANN MORRIS, ED.D

Using jquery and CSS to Gain Easy Wins in CiviCRM

How to make sure you receive all s from the University of Edinburgh

CREATING A NEWSLETTER IN ADOBE DREAMWEAVER CS5 (step-by-step directions)

How to Properly Compose HTML Code : 1

What options do I have for creating a classroom website if I...

Table of Contents Recommendation Summary... 3 Introduction... 4 Formatting Recommendations... 5 Creative:... 7 Deliverability & Infrastructure:...

Informz for Mobile Devices: Making Your s PDA and Phone-Friendly

OPENTABLE GROUP SEARCH MODULE GETTING STARTED ADD RESERVATIONS TO YOUR WEBSITE

Table of Contents Find out more about NewZapp

SAML Authentication Quick Start Guide

UAE Bulk System. User Guide

Copyright 2011 Smart VA Ltd All Rights Reserved.

Sales Dynamite / Mobile Prospector Jack

HTML Fails: What No One Tells You About HTML

Mobile Device Design Tips For Marketing

Introduction to Ingeniux Forms Builder. 90 minute Course CMSFB-V6 P

Mobile Friendly Design

How To Create A Campaign On Facebook.Com

Dashboard Skin Tutorial. For ETS2 HTML5 Mobile Dashboard v3.0.2

Introduction to Drupal

Transcription:

Responsive HTML email and Drupal Mobile + Email + Drupal Drew Gorton

Drew Gorton Founder gortonstudios.com

Responsive HTML email Why? ~19% of email messages are read on smartphones or tablets. Source: hbp://labs.mrss.com/mobile- is- hot- is- your- organizagon- opgmized (Oct, 2011) NTEN Cameron Lefevre hbp://www.nten.org/argcles/2012/the- age- of- mobile- email- has- arrived- are- you- ready Human Rights Campaign: Mobile ~17% of subscribers Mobile ~5% of acgon

Pros Simple Lightweight Worked as plain- text Rendered OK on mobile Cons Outdated look Mistakes easy Inconsistent with brand

Pros Simple Lightweight Works as plain- text More Pros! OpGmized for mobile Consistent with brand Clean code Tested across email clients

Process How we got there Start with MailChimp templates Copy in your website s styles Add CSS3 Media Queries Test, Test and Test again (Email on Acid)

Start with a solid foundagon MailChimp Templates & Resources Free resources at: hbp://mailchimp.com/resources/ Email Jitsu guide: hbp://mailchimp.com/resources/guides/ email- jitsu Free email templates: hbp://mailchimp.com/resources/html- email- templates

Get your brand right Copy your website Open Firebug (or other code inspector) and start matching elements Focus on: color font- family font- size font- weight line- height

Add CSS3 @media query Normal Responsive HTML @media screen and (max-width: 600px) { table.emailtable, td.emailcontent { width: 95%!important; } h1, h2, h3, h4 { text-align:center!important; }.nomob { display: none!important; }.header_content{ text-align:center!important; } a.footer_nav { display: block!important; font-size: 14px!important; font-weight: bold!important; padding: 6px 4px 8px 4px!important; line-height: 18px!important; background: #dddddd!important; border-radius: 5px!important; margin: 10px auto; width: 240px; text-align: center; } }

Mobile TransformaGon Normal Responsive HTML Mobile transformagon <a href="http://www.twitter.com/ncfr" class="footer_nav">follow on Twitter</a><span class="nomob"> </span><a href="http:// www.facebook.com/ncfrpage" class="footer_nav">friend on Facebook</a><span class="nomob"> </span><a href="-" class="footer_nav">forward to a friend</a>!

Tools Email on Acid Email TesGng Service hbp://www.emailonacid.com Cross- client email tesgng service Shows how your message displays in 70 combinagons of email services, browsers, and clients Plus code analysis and spam filter tesgng $35/month for unlimited tesgng Discounted for longer term commitments $2 - $5 per test a la carte pricing available

Email on Acid

Gotchas No bullet points or numbered lists Some webmail clients leh jusgfy them Some webmail clients center them Some leh- jusgfy lists & center the content Path of least resistance = ditch the <ol> tag, go w/ asterisks & line breaks instead

Gotchas <p align= leh > GMail and Yahoo Mail default paragraph (<p>) tags to align center align when viewed in Internet Explorer Other browsers sgll align paragraphs leh?!? Forcing the alignment leh fixes it

GeneraGng HTML emails with Drupal Normal theming with some problems Email Clients Absolute Paths (Links and Images) Drupal s Smarts

GeneraGng HTML emails with Drupal Process Create a Content Type Theme it Create and Send (repeat)

GeneraGng HTML emails with Drupal Problems Email Clients Absolute Paths (Links and Images) Drupal s Smarts

Problem: Email Clients

Problem: Email Clients

Problem: Absolute Paths for Links and Images #FAIL <img src=../images/logo.png /> <a href= argcle >Read More</a> OK <img src= hbp://www.ncfr.org/sites/default/themes/ncrf_theme/images/ logo.png /> <a href= hbp://www.ncfr.org/secgon/argcle >Read More</a> URL FuncGon hbp://api.drupal.org/api/drupal/includes!common.inc/funcgon/url D6/D7: url($path, array('absolute' => TRUE));

Problem: Drupal s Smarts What modules are installed? What permissions does this user have? Am I logged in? Can I edit this page? What acgons can this user take? SoluGon: Stooopid Theming

GeneraGng emails with Drupal Process Create a Content Type Theme it Send it

Create a Content Type

IdenGfy and configure your fields

Theme it Stoopid Copy the HTML from the email template Drop in your content variables Leave out the tabs, smarts, etc.

Theme it Files and Code Add a template suggesgon file for per- content- type pages: Drupal 6: funcgon yourthemename_preprocess_page(&$vars) { if (isset($vars['node'])) { // If node type is "newsleber", it will pickup "page- newsleber.tpl.php". $vars['template_files'][] = 'page- '. str_replace('_', '- ', $vars['node']- >type); } } Drupal 7: funcgon yourthemename_preprocess_page(&$vars) { if (isset($vars['node']- >type)) { // If node type is "newsleber", it will pickup "page- newsleber.tpl.php". $vars['theme_hook_suggesgons'][] = 'page- '. str_replace('_', '- ', $vars['node']- >type); } }

Theme it page-newsletter.tpl.php Copy your email template and add the page- level content / variables Title, logo

Theme it node-newsletter.tpl.php Theme & Preprocess your nodes Render out the content using acceptable low- grade newsleber HTML

Send it Manual Send = Better Copy- Paste that HTML to your tool (MailChimp, Listserv, etc). TEST! Drupal can send your email newsleber directly - - but YIKES (I click submit and 20,000+ people get an email?!?!)

Responsive HTML email and Drupal Questions? Drew Gorton Gorton Studios NodeSquirrel