SlideShare a Scribd company logo
Building a Mobile Drupal Site
Presented by Mark W. Jarrell   mark@fleetthought.com
                               Twitter: attheshow

April 30, 2011
DrupalCamp Nashville
Overview


✤   Showcasing the new Austin Peay
    State University mobile site
    (m.apsu.edu)

✤   Talking about development
    process

✤   How it works
Demo
Why is this site important?

✤   APSU already has native iPhone and Android
    apps.
    Needed something that would work for other
    devices too

✤   Since most administrators are using touch screen
    devices, still focused primarily on optimizing
    interface for iPhone/Android

✤   This site is more likely to be used by people who
    aren't currently part of the university
    e.g., potential students, community members,
    potential employees
Going Mobile - Methods

✤   A) Keep current site theme same, use separate theme for mobile browsers.
    Only one URL.
Going Mobile - Methods

✤   B) Keep current site same, add a new mobile site with a separate URL and
    redirect users to that.
Going Mobile - Methods

✤   C) Restyle current site such that it works better on mobile browsers (CSS3
    Media Queries) - See http://bit.ly/dWqtGm
Going Mobile - Methods

✤   We chose: B) Keep current site same, add a new mobile site with a
    separate URL and redirect users to that.
What was the process?
(Executive Summary)


✤   Worked with Public Relations and Admissions to come up with a feature
    list

✤   Designed initial theme

✤   Originally started building this site in Drupal 6
What was the process?
(Executive Summary)

✤   Upgraded content to D7 in January/February

✤   Upgraded theme and custom modules to D7 in February/March

✤   Converted existing theme to be a subtheme of "jQM" theme in April

✤   Added in jQuery Mobile module/library in April

✤   Site officially launched this week
Content - What goes into the site?

✤   What's do we include here in mobile version that's not on the main site?

    ✤   Focus: on-the-go users

    ✤   Prepared for quick actions (e.g., Request Info, Campus Map, Schedule
        Campus Tour, etc.)

    ✤   Keep everything as "slim" as you can. Try to make it bite-sized.
        Less text unless it’s a news article or blog post

    ✤   Make your forms as short as you possibly can or you'll lose them
What's jQuery Mobile?

✤   http://jquerymobile.com/

✤   "Touch-Optimized Web
    Framework for Smartphones &
    Tablets"

✤   Basically gives you ways to
    stylize your HTML5 content
    and page elements such that
    they are easier for fingers (as
    opposed to point & click) to
    interact with
HTML5

✤   <!DOCTYPE html> (Way simpler than doctypes in HTML4!)

✤   jQuery Mobile only works with HTML5
    <section> <article> etc. not necessary to get it up and running.

✤   jQuery Mobile elements are initialized when "data-role" attributes exist in
    your HTML code

✤   Example: Radio buttons add <fieldset data-role="controlgroup"></
    fieldset> around your buttons

    ✤   Demo: http://jquerymobile.com/demos/1.0a4.1/#docs/forms/forms-
        radiobuttons.html
Page Refreshes

✤   Page loads are done via AJAX-style requests. Browser doesn’t refresh the
    page when it changes.

✤   Have to add HTML5 elements like
    <div data-role="content"></div>
    ...into your page.tpl.php file

✤   Allows you to do smartphone style transitions such as wipes from one
    page to another.

✤   Note: The page refresh method of jQuery Mobile makes interacting with
    the admin interface tricky.
    Usually have to type in /admin to get to admin theme.
What are jQM and the jQuery
Mobile module?

✤   These are developed by Tree House Agency (NJ Drupal shop)

✤   “jQM” is a base theme like Zen, etc.

✤   It modifies your form elements so that they have necessary data-role
    information. Also adds some useful classes to your page that you can use
    in your CSS

✤   Modify these template files and drop them into your subtheme
What are jQM and the jQuery
Mobile module?

✤   jQuery Mobile module - Adds
    the JS library into your pages

    ✤   Also currently includes a
        patch to make the basic
        library work with Drupal
        better

    ✤   Get the one at Drupal.org
        called “jquerymobile” not
        “jquery_mobile”
Mobile Tools Module

✤   This goes on your main site and controls
    who sees what

✤   Includes a lot of functionality like:

    ✤   Built in mobile browser detection
        capability

    ✤   Theme switching

    ✤   Redirection

    ✤   Use of external libraries for browser
        detection such as WURFL and Browscap
Recap

✤   How it works: User comes to
    www.apsu.edu using a mobile
    device, gets redirect to mobile site

✤   m.apsu.edu has much lighter
    content, focused on a user who is
    on-the-go

✤   Get to use a touch-oriented UI (if
    their smartphone supports
    HTML5, JS, etc.). Otherwise, they
    see more basic HTML version of
    content.
Recap


✤   Modules & Themes Used

    ✤   jQM - base theme

    ✤   jQuery Mobile - module & JS
        library

    ✤   Mobile Tools - module for
        detection and redirection
Further Reading Links


✤   “Mobile Marketing: Strategy challenges for  advancement and enrollment”
    session with Bob Johnson
    http://www.slideshare.net/bestbob/mobile-marketing-strategy-
    challenges-for-advancement-and-enrollment

✤   DrupalCon Chicago Presentation from Treehouse Agency:
    http://chicago2011.drupal.org/sessions/drupal-go-jquery-mobile

✤   Metal Toad article on CSS3 Media Queries (if you’re going that route):
    http://bit.ly/dWqtGm
Building a Mobile Drupal Site
Presented by Mark W. Jarrell   mark@fleetthought.com
                               Twitter: attheshow

April 30, 2011
DrupalCamp Nashville
Need Help?


✤   Consulting

✤   Theming                               mark@fleetthought.com

✤   Module Development

✤   Training

✤   Migrating a legacy system to Drupal

More Related Content

PDF
One Man Band - Drupal Lightning Talks
PPTX
Making your Drupal fly with Apache SOLR
PDF
Optimizing Drupal 7 HTML Markup - Using Panels, Page Manager, and Fences to P...
PPT
Beginner's guide to drupal
PDF
Blisstering drupal module development ppt v1.2
PDF
Drupal 8 theming deep dive
PPTX
Top 20 mistakes you will make on your 1st Drupal project
PPT
Introduction to drupal
One Man Band - Drupal Lightning Talks
Making your Drupal fly with Apache SOLR
Optimizing Drupal 7 HTML Markup - Using Panels, Page Manager, and Fences to P...
Beginner's guide to drupal
Blisstering drupal module development ppt v1.2
Drupal 8 theming deep dive
Top 20 mistakes you will make on your 1st Drupal project
Introduction to drupal

What's hot (20)

PDF
DrupalCamp Melbourne 2015. Bootstrap: framework and theme.
ODP
XPages OneUIv2 Theme Deep Dive
PPTX
Learn How to Use Atomic Design to Make Your Site Manageable and Adaptable
ODP
Drupal 6x Installation
PDF
Bootstrap Framework and Drupal
PDF
Bootstrap and XPages (DanNotes 2013)
PPT
5 Important Tools for Drupal Development
PPTX
Bootstrap4XPages webinar
PDF
An Introduction to Drupal
PDF
Introduction To Drupal
PDF
Slavin-Dodson Piece, With Code.
PPT
Drupal
PDF
Best Practice Checklist for Building a Drupal Website
PPT
WordPress Child Themes
KEY
Hello Drupal
PDF
SW Drupal Summit: HTML5+Drupal
PDF
Preventing Drupal Headaches: Content Type Checklist
PDF
Introduction to Drupal Basics
PDF
Learning PHP for Drupal Theming, DC Chicago 2009
PPT
Building Websites of the Future With Drupal 7
DrupalCamp Melbourne 2015. Bootstrap: framework and theme.
XPages OneUIv2 Theme Deep Dive
Learn How to Use Atomic Design to Make Your Site Manageable and Adaptable
Drupal 6x Installation
Bootstrap Framework and Drupal
Bootstrap and XPages (DanNotes 2013)
5 Important Tools for Drupal Development
Bootstrap4XPages webinar
An Introduction to Drupal
Introduction To Drupal
Slavin-Dodson Piece, With Code.
Drupal
Best Practice Checklist for Building a Drupal Website
WordPress Child Themes
Hello Drupal
SW Drupal Summit: HTML5+Drupal
Preventing Drupal Headaches: Content Type Checklist
Introduction to Drupal Basics
Learning PHP for Drupal Theming, DC Chicago 2009
Building Websites of the Future With Drupal 7
Ad

Viewers also liked (20)

PPT
Europa Dei Congressi2
PDF
DigimarcDiscover_CaseStudy_CookingLight_061714_FNL
PPTX
Energien: Cebyc
PPTX
Cut Costs, Not Benefits.
PDF
White Paper Indirect Distribution
PDF
Falcon Stor Changing The Rules Of Backup
PPT
Tundra Sattler
PDF
20090403 移動体ライブトラッキングのすすめ
PPTX
Etruscan Art
PPT
Presentasjon Enova 1
PDF
South Park Blocks Parking - Portland Downtown Neighborhood Association
PPT
Operation Al Fajr Iraq Nov 2004
PPT
Itb Chap 12
PDF
Theming Your Views
PDF
DigimarcDiscover_TractionReport_2013_FNL
PPT
Presentation1 Tundra Ppt Campbell
PPT
Fun Things About Tundra Hofmeyer
PPT
Group evaluation of Trapped
PPSX
English Home Work Oscar Tamara
Europa Dei Congressi2
DigimarcDiscover_CaseStudy_CookingLight_061714_FNL
Energien: Cebyc
Cut Costs, Not Benefits.
White Paper Indirect Distribution
Falcon Stor Changing The Rules Of Backup
Tundra Sattler
20090403 移動体ライブトラッキングのすすめ
Etruscan Art
Presentasjon Enova 1
South Park Blocks Parking - Portland Downtown Neighborhood Association
Operation Al Fajr Iraq Nov 2004
Itb Chap 12
Theming Your Views
DigimarcDiscover_TractionReport_2013_FNL
Presentation1 Tundra Ppt Campbell
Fun Things About Tundra Hofmeyer
Group evaluation of Trapped
English Home Work Oscar Tamara
Ad

Similar to Building a Mobile Drupal Site (20)

PDF
[HKDUG] #20160626 - HKOSCon 2015 - Website DIY with Drupal 8
PDF
How to build_a_mobile_site_with_drupal
ODP
Mobilizing your Drupal Site - Vancouver League of Drupallers
PDF
Re-imagining How We Design Responsively (Jonathan Fielding)
PPTX
Optimising AJAX Applications for Organic Search
PPTX
Building jQuery Mobile Web Apps
PPTX
WordPress North East (Jan 2021) ~ SEO Fundamentals For WordPress
PDF
AngularJS in Production (CTO Forum)
KEY
Mobile drupal
PPTX
Responsivedesign 7-3-2012
KEY
Maximising Online Resource Effectiveness Workshop Session 3/8 Priority issues
PPTX
Mobile application development PowerPoin
 
PDF
jQuery Mobile Introduction
PPTX
Seattle bestpractices2010
PPTX
Mobile SEO (2015) | Blue Mango Interactive (Ektor Tsolodimos)
PPTX
RWD - Bootstrap
PDF
HTML5 and CSS3 Illustrated Introductory 2nd Edition Vodnik Solutions Manual
PPTX
Jquery mobile
PPTX
Basic Understanding of Progressive Web Apps
PDF
Pro jQuery 2 0 Second Edition Adam Freeman
[HKDUG] #20160626 - HKOSCon 2015 - Website DIY with Drupal 8
How to build_a_mobile_site_with_drupal
Mobilizing your Drupal Site - Vancouver League of Drupallers
Re-imagining How We Design Responsively (Jonathan Fielding)
Optimising AJAX Applications for Organic Search
Building jQuery Mobile Web Apps
WordPress North East (Jan 2021) ~ SEO Fundamentals For WordPress
AngularJS in Production (CTO Forum)
Mobile drupal
Responsivedesign 7-3-2012
Maximising Online Resource Effectiveness Workshop Session 3/8 Priority issues
Mobile application development PowerPoin
 
jQuery Mobile Introduction
Seattle bestpractices2010
Mobile SEO (2015) | Blue Mango Interactive (Ektor Tsolodimos)
RWD - Bootstrap
HTML5 and CSS3 Illustrated Introductory 2nd Edition Vodnik Solutions Manual
Jquery mobile
Basic Understanding of Progressive Web Apps
Pro jQuery 2 0 Second Edition Adam Freeman

More from Mark Jarrell (6)

PDF
APSU Drupal Training
PDF
APSU Drupal Training Personal
PDF
APSU Drupal Training - Personal Sites
KEY
Moving to Drupal
KEY
Building University Websites with the Drupal Content Management System
PDF
Form Alterations
APSU Drupal Training
APSU Drupal Training Personal
APSU Drupal Training - Personal Sites
Moving to Drupal
Building University Websites with the Drupal Content Management System
Form Alterations

Recently uploaded (20)

PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PDF
Computing-Curriculum for Schools in Ghana
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PDF
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
PDF
01-Introduction-to-Information-Management.pdf
PDF
Classroom Observation Tools for Teachers
PPTX
Cell Types and Its function , kingdom of life
PDF
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PPTX
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
PPTX
Lesson notes of climatology university.
PPTX
202450812 BayCHI UCSC-SV 20250812 v17.pptx
PPTX
master seminar digital applications in india
PPTX
Introduction-to-Literarature-and-Literary-Studies-week-Prelim-coverage.pptx
PDF
Complications of Minimal Access Surgery at WLH
PPTX
Pharma ospi slides which help in ospi learning
PPTX
GDM (1) (1).pptx small presentation for students
PDF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
PDF
Abdominal Access Techniques with Prof. Dr. R K Mishra
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
Computing-Curriculum for Schools in Ghana
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
01-Introduction-to-Information-Management.pdf
Classroom Observation Tools for Teachers
Cell Types and Its function , kingdom of life
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
Final Presentation General Medicine 03-08-2024.pptx
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
Lesson notes of climatology university.
202450812 BayCHI UCSC-SV 20250812 v17.pptx
master seminar digital applications in india
Introduction-to-Literarature-and-Literary-Studies-week-Prelim-coverage.pptx
Complications of Minimal Access Surgery at WLH
Pharma ospi slides which help in ospi learning
GDM (1) (1).pptx small presentation for students
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
Abdominal Access Techniques with Prof. Dr. R K Mishra

Building a Mobile Drupal Site

  • 1. Building a Mobile Drupal Site Presented by Mark W. Jarrell mark@fleetthought.com Twitter: attheshow April 30, 2011 DrupalCamp Nashville
  • 2. Overview ✤ Showcasing the new Austin Peay State University mobile site (m.apsu.edu) ✤ Talking about development process ✤ How it works
  • 4. Why is this site important? ✤ APSU already has native iPhone and Android apps. Needed something that would work for other devices too ✤ Since most administrators are using touch screen devices, still focused primarily on optimizing interface for iPhone/Android ✤ This site is more likely to be used by people who aren't currently part of the university e.g., potential students, community members, potential employees
  • 5. Going Mobile - Methods ✤ A) Keep current site theme same, use separate theme for mobile browsers. Only one URL.
  • 6. Going Mobile - Methods ✤ B) Keep current site same, add a new mobile site with a separate URL and redirect users to that.
  • 7. Going Mobile - Methods ✤ C) Restyle current site such that it works better on mobile browsers (CSS3 Media Queries) - See http://bit.ly/dWqtGm
  • 8. Going Mobile - Methods ✤ We chose: B) Keep current site same, add a new mobile site with a separate URL and redirect users to that.
  • 9. What was the process? (Executive Summary) ✤ Worked with Public Relations and Admissions to come up with a feature list ✤ Designed initial theme ✤ Originally started building this site in Drupal 6
  • 10. What was the process? (Executive Summary) ✤ Upgraded content to D7 in January/February ✤ Upgraded theme and custom modules to D7 in February/March ✤ Converted existing theme to be a subtheme of "jQM" theme in April ✤ Added in jQuery Mobile module/library in April ✤ Site officially launched this week
  • 11. Content - What goes into the site? ✤ What's do we include here in mobile version that's not on the main site? ✤ Focus: on-the-go users ✤ Prepared for quick actions (e.g., Request Info, Campus Map, Schedule Campus Tour, etc.) ✤ Keep everything as "slim" as you can. Try to make it bite-sized. Less text unless it’s a news article or blog post ✤ Make your forms as short as you possibly can or you'll lose them
  • 12. What's jQuery Mobile? ✤ http://jquerymobile.com/ ✤ "Touch-Optimized Web Framework for Smartphones & Tablets" ✤ Basically gives you ways to stylize your HTML5 content and page elements such that they are easier for fingers (as opposed to point & click) to interact with
  • 13. HTML5 ✤ <!DOCTYPE html> (Way simpler than doctypes in HTML4!) ✤ jQuery Mobile only works with HTML5 <section> <article> etc. not necessary to get it up and running. ✤ jQuery Mobile elements are initialized when "data-role" attributes exist in your HTML code ✤ Example: Radio buttons add <fieldset data-role="controlgroup"></ fieldset> around your buttons ✤ Demo: http://jquerymobile.com/demos/1.0a4.1/#docs/forms/forms- radiobuttons.html
  • 14. Page Refreshes ✤ Page loads are done via AJAX-style requests. Browser doesn’t refresh the page when it changes. ✤ Have to add HTML5 elements like <div data-role="content"></div> ...into your page.tpl.php file ✤ Allows you to do smartphone style transitions such as wipes from one page to another. ✤ Note: The page refresh method of jQuery Mobile makes interacting with the admin interface tricky. Usually have to type in /admin to get to admin theme.
  • 15. What are jQM and the jQuery Mobile module? ✤ These are developed by Tree House Agency (NJ Drupal shop) ✤ “jQM” is a base theme like Zen, etc. ✤ It modifies your form elements so that they have necessary data-role information. Also adds some useful classes to your page that you can use in your CSS ✤ Modify these template files and drop them into your subtheme
  • 16. What are jQM and the jQuery Mobile module? ✤ jQuery Mobile module - Adds the JS library into your pages ✤ Also currently includes a patch to make the basic library work with Drupal better ✤ Get the one at Drupal.org called “jquerymobile” not “jquery_mobile”
  • 17. Mobile Tools Module ✤ This goes on your main site and controls who sees what ✤ Includes a lot of functionality like: ✤ Built in mobile browser detection capability ✤ Theme switching ✤ Redirection ✤ Use of external libraries for browser detection such as WURFL and Browscap
  • 18. Recap ✤ How it works: User comes to www.apsu.edu using a mobile device, gets redirect to mobile site ✤ m.apsu.edu has much lighter content, focused on a user who is on-the-go ✤ Get to use a touch-oriented UI (if their smartphone supports HTML5, JS, etc.). Otherwise, they see more basic HTML version of content.
  • 19. Recap ✤ Modules & Themes Used ✤ jQM - base theme ✤ jQuery Mobile - module & JS library ✤ Mobile Tools - module for detection and redirection
  • 20. Further Reading Links ✤ “Mobile Marketing: Strategy challenges for  advancement and enrollment” session with Bob Johnson http://www.slideshare.net/bestbob/mobile-marketing-strategy- challenges-for-advancement-and-enrollment ✤ DrupalCon Chicago Presentation from Treehouse Agency: http://chicago2011.drupal.org/sessions/drupal-go-jquery-mobile ✤ Metal Toad article on CSS3 Media Queries (if you’re going that route): http://bit.ly/dWqtGm
  • 21. Building a Mobile Drupal Site Presented by Mark W. Jarrell mark@fleetthought.com Twitter: attheshow April 30, 2011 DrupalCamp Nashville
  • 22. Need Help? ✤ Consulting ✤ Theming mark@fleetthought.com ✤ Module Development ✤ Training ✤ Migrating a legacy system to Drupal

Editor's Notes