SlideShare uma empresa Scribd logo
1 de 22
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

Mais conteúdo relacionado

Mais procurados

5 Important Tools for Drupal Development
5 Important Tools for Drupal Development5 Important Tools for Drupal Development
5 Important Tools for Drupal Development
jcarrig
 
Introduction To Drupal
Introduction To DrupalIntroduction To Drupal
Introduction To Drupal
Lauren Roth
 
Slavin-Dodson Piece, With Code.
Slavin-Dodson Piece, With Code.Slavin-Dodson Piece, With Code.
Slavin-Dodson Piece, With Code.
ALATechSource
 
Best Practice Checklist for Building a Drupal Website
Best Practice Checklist for Building a Drupal WebsiteBest Practice Checklist for Building a Drupal Website
Best Practice Checklist for Building a Drupal Website
Acquia
 
WordPress Child Themes
WordPress Child ThemesWordPress Child Themes
WordPress Child Themes
rfair404
 
SW Drupal Summit: HTML5+Drupal
SW Drupal Summit: HTML5+DrupalSW Drupal Summit: HTML5+Drupal
SW Drupal Summit: HTML5+Drupal
Jen Simmons
 
Preventing Drupal Headaches: Content Type Checklist
Preventing Drupal Headaches: Content Type ChecklistPreventing Drupal Headaches: Content Type Checklist
Preventing Drupal Headaches: Content Type Checklist
Acquia
 
Introduction to Drupal Basics
Introduction to Drupal BasicsIntroduction to Drupal Basics
Introduction to Drupal Basics
Juha Niemi
 
Learning PHP for Drupal Theming, DC Chicago 2009
Learning PHP for Drupal Theming, DC Chicago 2009Learning PHP for Drupal Theming, DC Chicago 2009
Learning PHP for Drupal Theming, DC Chicago 2009
Emma Jane Hogbin Westby
 

Mais procurados (20)

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

Destaque

DigimarcDiscover_CaseStudy_CookingLight_061714_FNL
DigimarcDiscover_CaseStudy_CookingLight_061714_FNLDigimarcDiscover_CaseStudy_CookingLight_061714_FNL
DigimarcDiscover_CaseStudy_CookingLight_061714_FNL
dkinpdx
 
20090403 移動体ライブトラッキングのすすめ
20090403 移動体ライブトラッキングのすすめ20090403 移動体ライブトラッキングのすすめ
20090403 移動体ライブトラッキングのすすめ
shinagaki
 
Presentasjon Enova 1
Presentasjon Enova 1Presentasjon Enova 1
Presentasjon Enova 1
energien
 
DigimarcDiscover_TractionReport_2013_FNL
DigimarcDiscover_TractionReport_2013_FNLDigimarcDiscover_TractionReport_2013_FNL
DigimarcDiscover_TractionReport_2013_FNL
dkinpdx
 
Presentation1 Tundra Ppt Campbell
Presentation1 Tundra Ppt CampbellPresentation1 Tundra Ppt Campbell
Presentation1 Tundra Ppt Campbell
Michelle McGinnis
 
Fun Things About Tundra Hofmeyer
Fun Things About Tundra HofmeyerFun Things About Tundra Hofmeyer
Fun Things About Tundra Hofmeyer
Michelle McGinnis
 
Group evaluation of Trapped
Group evaluation of TrappedGroup evaluation of Trapped
Group evaluation of Trapped
callison
 
English Home Work Oscar Tamara
English Home Work Oscar TamaraEnglish Home Work Oscar Tamara
English Home Work Oscar Tamara
oscar tamara
 

Destaque (20)

Taller imp
Taller impTaller imp
Taller imp
 
Europa Dei Congressi2
Europa Dei Congressi2Europa Dei Congressi2
Europa Dei Congressi2
 
DigimarcDiscover_CaseStudy_CookingLight_061714_FNL
DigimarcDiscover_CaseStudy_CookingLight_061714_FNLDigimarcDiscover_CaseStudy_CookingLight_061714_FNL
DigimarcDiscover_CaseStudy_CookingLight_061714_FNL
 
Energien: Cebyc
Energien: CebycEnergien: Cebyc
Energien: Cebyc
 
Cut Costs, Not Benefits.
Cut Costs, Not Benefits.Cut Costs, Not Benefits.
Cut Costs, Not Benefits.
 
White Paper Indirect Distribution
White Paper   Indirect DistributionWhite Paper   Indirect Distribution
White Paper Indirect Distribution
 
Falcon Stor Changing The Rules Of Backup
Falcon Stor   Changing The Rules Of BackupFalcon Stor   Changing The Rules Of Backup
Falcon Stor Changing The Rules Of Backup
 
Tundra Sattler
Tundra SattlerTundra Sattler
Tundra Sattler
 
20090403 移動体ライブトラッキングのすすめ
20090403 移動体ライブトラッキングのすすめ20090403 移動体ライブトラッキングのすすめ
20090403 移動体ライブトラッキングのすすめ
 
Etruscan Art
Etruscan ArtEtruscan Art
Etruscan Art
 
Presentasjon Enova 1
Presentasjon Enova 1Presentasjon Enova 1
Presentasjon Enova 1
 
South Park Blocks Parking - Portland Downtown Neighborhood Association
South Park Blocks Parking - Portland Downtown Neighborhood AssociationSouth Park Blocks Parking - Portland Downtown Neighborhood Association
South Park Blocks Parking - Portland Downtown Neighborhood Association
 
Operation Al Fajr Iraq Nov 2004
Operation Al Fajr Iraq Nov 2004Operation Al Fajr Iraq Nov 2004
Operation Al Fajr Iraq Nov 2004
 
Itb Chap 12
Itb Chap 12Itb Chap 12
Itb Chap 12
 
Theming Your Views
Theming Your ViewsTheming Your Views
Theming Your Views
 
DigimarcDiscover_TractionReport_2013_FNL
DigimarcDiscover_TractionReport_2013_FNLDigimarcDiscover_TractionReport_2013_FNL
DigimarcDiscover_TractionReport_2013_FNL
 
Presentation1 Tundra Ppt Campbell
Presentation1 Tundra Ppt CampbellPresentation1 Tundra Ppt Campbell
Presentation1 Tundra Ppt Campbell
 
Fun Things About Tundra Hofmeyer
Fun Things About Tundra HofmeyerFun Things About Tundra Hofmeyer
Fun Things About Tundra Hofmeyer
 
Group evaluation of Trapped
Group evaluation of TrappedGroup evaluation of Trapped
Group evaluation of Trapped
 
English Home Work Oscar Tamara
English Home Work Oscar TamaraEnglish Home Work Oscar Tamara
English Home Work Oscar Tamara
 

Semelhante a Building a Mobile Drupal Site

How to build_a_mobile_site_with_drupal
How to build_a_mobile_site_with_drupalHow to build_a_mobile_site_with_drupal
How to build_a_mobile_site_with_drupal
Green For All
 
Responsivedesign 7-3-2012
Responsivedesign 7-3-2012Responsivedesign 7-3-2012
Responsivedesign 7-3-2012
Thomas Carney
 

Semelhante a Building a Mobile Drupal Site (20)

[HKDUG] #20160626 - HKOSCon 2015 - Website DIY with Drupal 8
[HKDUG] #20160626 - HKOSCon 2015 - Website DIY with Drupal 8[HKDUG] #20160626 - HKOSCon 2015 - Website DIY with Drupal 8
[HKDUG] #20160626 - HKOSCon 2015 - Website DIY with Drupal 8
 
How to build_a_mobile_site_with_drupal
How to build_a_mobile_site_with_drupalHow to build_a_mobile_site_with_drupal
How to build_a_mobile_site_with_drupal
 
Mobilizing your Drupal Site - Vancouver League of Drupallers
Mobilizing your Drupal Site - Vancouver League of DrupallersMobilizing your Drupal Site - Vancouver League of Drupallers
Mobilizing your Drupal Site - Vancouver League of Drupallers
 
Re-imagining How We Design Responsively (Jonathan Fielding)
Re-imagining How We Design Responsively (Jonathan Fielding)Re-imagining How We Design Responsively (Jonathan Fielding)
Re-imagining How We Design Responsively (Jonathan Fielding)
 
Optimising AJAX Applications for Organic Search
Optimising AJAX Applications for Organic SearchOptimising AJAX Applications for Organic Search
Optimising AJAX Applications for Organic Search
 
Building jQuery Mobile Web Apps
Building jQuery Mobile Web AppsBuilding jQuery Mobile Web Apps
Building jQuery Mobile Web Apps
 
WordPress North East (Jan 2021) ~ SEO Fundamentals For WordPress
WordPress North East (Jan 2021) ~ SEO Fundamentals For WordPressWordPress North East (Jan 2021) ~ SEO Fundamentals For WordPress
WordPress North East (Jan 2021) ~ SEO Fundamentals For WordPress
 
AngularJS in Production (CTO Forum)
AngularJS in Production (CTO Forum)AngularJS in Production (CTO Forum)
AngularJS in Production (CTO Forum)
 
Mobile drupal
Mobile drupalMobile drupal
Mobile drupal
 
Responsivedesign 7-3-2012
Responsivedesign 7-3-2012Responsivedesign 7-3-2012
Responsivedesign 7-3-2012
 
Maximising Online Resource Effectiveness Workshop Session 3/8 Priority issues
Maximising Online Resource Effectiveness Workshop Session 3/8 Priority issuesMaximising Online Resource Effectiveness Workshop Session 3/8 Priority issues
Maximising Online Resource Effectiveness Workshop Session 3/8 Priority issues
 
jQuery Mobile Introduction
jQuery Mobile IntroductionjQuery Mobile Introduction
jQuery Mobile Introduction
 
Seattle bestpractices2010
Seattle bestpractices2010Seattle bestpractices2010
Seattle bestpractices2010
 
Mobile SEO (2015) | Blue Mango Interactive (Ektor Tsolodimos)
Mobile SEO (2015) | Blue Mango Interactive (Ektor Tsolodimos)Mobile SEO (2015) | Blue Mango Interactive (Ektor Tsolodimos)
Mobile SEO (2015) | Blue Mango Interactive (Ektor Tsolodimos)
 
RWD - Bootstrap
RWD - BootstrapRWD - Bootstrap
RWD - Bootstrap
 
Jquery mobile
Jquery mobileJquery mobile
Jquery mobile
 
Basic Understanding of Progressive Web Apps
Basic Understanding of Progressive Web AppsBasic Understanding of Progressive Web Apps
Basic Understanding of Progressive Web Apps
 
Multi screen HTML5
Multi screen HTML5Multi screen HTML5
Multi screen HTML5
 
Briding the Gap between Desktop and Mobile publishing
Briding the Gap between Desktop and Mobile publishingBriding the Gap between Desktop and Mobile publishing
Briding the Gap between Desktop and Mobile publishing
 
Joomla! Templates and Comparison of Frameworks
Joomla! Templates and Comparison of FrameworksJoomla! Templates and Comparison of Frameworks
Joomla! Templates and Comparison of Frameworks
 

Mais de Mark Jarrell (6)

APSU Drupal Training
APSU Drupal TrainingAPSU Drupal Training
APSU Drupal Training
 
APSU Drupal Training Personal
APSU Drupal Training PersonalAPSU Drupal Training Personal
APSU Drupal Training Personal
 
APSU Drupal Training - Personal Sites
APSU Drupal Training - Personal SitesAPSU Drupal Training - Personal Sites
APSU Drupal Training - Personal Sites
 
Moving to Drupal
Moving to DrupalMoving to Drupal
Moving to Drupal
 
Building University Websites with the Drupal Content Management System
Building University Websites with the Drupal Content Management SystemBuilding University Websites with the Drupal Content Management System
Building University Websites with the Drupal Content Management System
 
Form Alterations
Form AlterationsForm Alterations
Form Alterations
 

Último

Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
PECB
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdf
Chris Hunter
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
QucHHunhnh
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
kauryashika82
 

Último (20)

Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdf
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-IIFood Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docx
 

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

Notas do Editor

  1. \n
  2. \n
  3. \n
  4. \n
  5. \n
  6. \n
  7. \n
  8. \n
  9. \n
  10. \n
  11. \n
  12. \n
  13. \n
  14. \n
  15. \n
  16. \n
  17. \n
  18. \n
  19. \n
  20. \n
  21. \n
  22. \n