Drupal 7 Mobile Web Development Beginner’s Guide


Drupal 7 Mobile Web Development Beginner’s Guide
eBook: $26.99
Formats: PDF, PacktLib, ePub and Mobi formats
$22.94
save 15%!
Print + free eBook + free PacktLib access to the book: $71.98    Print cover: $44.99
$44.99
save 37%!
Free Shipping!
UK, US, Europe and selected countries in Asia.
Also available on:
Overview
Table of Contents
Author
Support
Sample Chapters
  • Follow the example of a ‘Mom & Pop’ restaurant site to make the transition to a mobile site easier
  • Prototype a distributed team workflow with GIT version control
  • Implement audio, video, charting and mapping solutions that work on Mobile, Tablet, and Desktop browsers

Book Details

Language : English
Paperback : 338 pages [ 235mm x 191mm ]
Release Date : March 2012
ISBN : 184951562X
ISBN 13 : 9781849515627
Author(s) : Tom Stovall
Topics and Technologies : All Books, CMS and eCommerce, Mobile, Beginner's Guides, Drupal, Open Source

Table of Contents

Preface
Chapter 1: When is a Phone Not a Phone?
Chapter 2: Setting up a Local Development Environment
Chapter 3: Selecting the Right Domain for your Mobile Site
Chapter 4: Introduction to a Theme
Chapter 5: A Home with a View
Chapter 6: The Elephant in the Room: Audio, Video, and Flash Media
Chapter 7: Location, Location, Location
Chapter 8: Services with a Smile
Chapter 9: Putting it Together
Chapter 10: Tabula Rasa: Nurturing your Site for Tablets
Chapter 11: A Home in the Clouds
Appendix: Pop Quiz Answers
Index
  • Chapter 1: When is a Phone Not a Phone?
    • "Dumb" phones
    • "Smart-er" phones
    • Smart phones
    • Tablets
    • WebKit
    • Mobile-ize me!
    • What is mobile?
    • The "One Design" myth
    • Mobile simulators
    • Time for action – installing an Android development package
    • iOS
    • Time for action – installing the Mac OS developer's package
    • Summary
    • Chapter 2: Setting up a Local Development Environment
      • Drupallo's Pizza Kitchen
      • Averting disaster
      • A word about platforms
      • Time for action – downloading the SCM client for Mac
      • Cygwin and GIT for Microsoft Windows
      • Time for action – installing a development environment using Windows and Cygwin
      • Text editors for Mac OS X and Microsoft Windows
      • Serving web pages on your computer
      • MAMP
      • Time for action – configuring our first virtual host
      • Time for action – changing the default configuration for MAMP
      • WAMP (Windows, Apache, MySQL, and PHP)
      • Time for action – installing WAMP
      • Drush and Drush Make
      • Time for action – installing Drush and Drush Make for Mac OS X
      • Time for action – installing Drush for Windows
      • Building a Drupal website with Drush Make
      • Time for action – building a Drupal install from a make file
      • The local database
      • Time for action – creating a database
      • Summary
      • Chapter 3: Selecting the Right Domain for your Mobile Site
        • Once upon a website…
        • One ring to rule them all
          • Domain Access versus Multisite
        • Time for action – installing Domain Access module
          • Domain management
        • Time for action – configuring Apache
        • Bootstrapping the domain
        • Time for action – bootstrapping the Domain Access module
        • Introduction to the Features module
        • Time for action – installing and creating your first feature
        • Time for action – updating the feature with new settings
        • Deployment—best practices
        • Time for action – code check-in and deployment
          • Pushing out features
        • Time for action – check in your features module
        • Summary
        • Chapter 4: Introduction to a Theme
          • Progressive Enhancement
            • HTML5 and the simplified DOCTYPE
            • New HTML5 semantic elements
          • Drupal 6 versus Drupal 7 theming
          • Time for action – installing the default mobile theme
          • The simple life
          • Media queries
          • Time for action – personalizing the mobile theme
          • Redirecting mobile clients
          • Time for action – writing JavaScript redirection for our theme
          • Give them what you think they need until they tell you what they want
          • Behave yourself
            • Drupal behaviors
          • Time for action – redirection with a cookie to remember state
          • Summary
          • Chapter 5: A Home with a View
            • The Context and Display suite modules
            • Time for action – creating a mobile-friendly home page
            • Pushing changes from one environment to another
            • Time for action – updating the Home Page feature
            • The menu
            • Time for action – creating the menu content types
            • Bundling up the changes
            • Time for action – bundling the changes into a package
            • Summary
              • Chapter 7: Location, Location, Location
                • Geolocation
                • The navigator.geolocation object
                • Time for action – adding location data to nodes
                • From address to longitude and latitude
                • Time for action – geocoding a node's location data
                • The close2u module
                • Time for action – downloding and enabling the close2u module
                • Finishing the page
                • Time for action – finding the closest franchise the hard way
                • Summary
                • Chapter 8: Services with a Smile
                  • Using Drupal to power your native application
                  • Time for action – creating a REST service
                  • Time for action – testing your new REST service
                  • APIs: The future of the interactive web
                  • Customized services
                  • Time for action – custom REST service formatter
                  • jQuery Mobile
                  • Time for action – using jQM as our base theme
                  • jQuery Mobile JavaScript Events
                  • Time for action – the AJAX login form
                  • Summary
                  • Chapter 9: Putting it Together
                    • Display Suite
                    • Hooks, styles, and build modes
                    • Time for action – retheming nodes for our jQuery mobile theme
                    • Time for action – adding theming to the rendered node
                    • Beyond core menu items
                    • Time for action – customized menu attributes
                    • Fonts
                    • Time for action – adding fonts
                    • Summary
                    • Chapter 10: Tabula Rasa: Nurturing your Site for Tablets
                      • The human touch
                      • The event-driven model
                      • Touch and go
                      • The main event
                      • Time for action – adding a swipe advance to the home page
                      • The changing landscape (or portrait)
                      • "Starting over" or "Everything you know about designing websites is wrong"
                      • Wire framing made easy
                      • Drupal 7 Commerce module
                      • Time for action – the one true theme
                      • Time for action – creating a product
                      • A room with a viewport
                      • Time for action – setting the viewport with JavaScript
                      • Time for action – advanced media queries for tablets
                      • Summary
                      • Chapter 11: A Home in the Clouds
                        • Problems introduced by modern websites
                        • Amazon Web Services (AWS)
                        • Time for action – setting up AWS and RightScale
                        • Time for action – using an AMI to create a server
                        • Time for action – Jenkins builds our site
                        • Summary

                        Tom Stovall

                        Tom Stovall’s mom got him a Timex Sinclair 1000 in 1982 for his birthday and the first night he slept with it under his pillow. Both school teachersand his mom and dad always made sure he had access to computers and today’s programming chops owes its origin to those lazy summers spent in front of whatever hardware he could beg, borrow or use when no one was looking. He started doing websites in 1995 with PERL, later with PHP. He now works for REI Systems, Inc. in Reston, Virginia, doing Drupal-based performance analysis websites for the White House Office of Management and Budget (OMB).
                        Sorry, we don't have any reviews for this title yet.

                        Code Downloads

                        Download the code and support files for this book.


                        Submit Errata

                        Please let us know if you have found any errors not listed on this list by completing our errata submission form. Our editors will check them and add them to this list. Thank you.


                        Errata

                        - 1 submitted: last submission 22 Jun 2012

                        Errata type: Others | Page number: 32 | Errata date: 18 June 2012

                        git clone http://github.com/0drupal4mobile/dpk.git is incorrect there is a 0 before drupal4mobile should be git clone http://github.com/drupal4mobile/dpk.git

                         

                        Sample chapters

                        You can view our sample chapters and prefaces of this title on PacktLib or download sample chapters in PDF format.

                        Frequently bought together

                        Drupal 7 Mobile Web Development Beginner’s Guide +    Drupal 7 Development by Example Beginner’s Guide =
                        50% Off
                        the second eBook
                        Price for both: €30.90

                        Buy both these recommended eBooks together and get 50% off the cheapest eBook.

                        What you will learn from this book

                        • Set up Domain Access and Drupal Behaviors that redirect mobile and desktop browsers to the version of the website most appropriate for your client
                        • Share content across sites without resorting to a multi-site install
                        • Use context and image styles to create a customized view for the home page
                        • Create a mobile-friendly menu
                        • Bundle several exercises up into a feature that can push new content to your live site in one fell swoop
                        • Create a compelling audio and video experience without using Flash
                        • Customize a theme that will present your site to mobile and desktop clients alike with a unified marketing message

                         

                        In Detail

                        How disappointing is it to log on to a website for a product or business you love only to discover the feature you were drawn to doesn’t work on your mobile or tablet? Drupal has brand new features to adapt your existing site into a mobile site that will keep your customers coming back.

                        The Drupal Mobile Web Development Beginner’s Guide follows a humble ‘Mom & Pop’ restaurant website which gets a makeover complete with cutting edge features that play to mobile, tablet and desktop audiences. By following the fun example, you will finish the book having effortlessly adapted your website so that it is accessible and, more importantly, looks good and functions well, on any mobile device.

                        Restaurant websites are notoriously horrible to navigate and our Mom & Pop example is wellintentioned but no exception to this rule. We bring this site out of the early 1990’s with cutting edge development practices and a team development workflow. This pizza chain goes mobile with location services, audio, video, charting and mapping worthy of any multi-million dollar site. Each chapter examines the way the site works and shows you how to move the existing content and functionality into reusable features.

                        Approach

                        Follow the fun example of a family pizza restaurant to help you adapt your own website to one that is fullyfunctional in a mobile environment. Each chapter covers a different aspect of mobile web development with plenty of step-by-step instructions and screenshots to make things clearer.

                        Who this book is for

                        This book is for independent developers who may or may not have had experience with Drupal websites. We take some “deep dives” into customized functionality that will take your Drupal development and your development workflow to the next level.

                        Code Download and Errata
                        Packt Anytime, Anywhere
                        Register Books
                        Print Upgrades
                        eBook Downloads
                        Video Support
                        Contact Us
                        Awards Voting Nominations Previous Winners
                        Judges Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software
                        Resources
                        Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software