Book Image

Drupal 7 Mobile Web Development Beginner's Guide

By : Tom Stovall
Book Image

Drupal 7 Mobile Web Development Beginner's Guide

By: Tom Stovall

Overview of this book

<p>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.</p> <p>The Drupal Mobile Web Development Beginner's Guide follows a humble 'Mom &amp; 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.</p> <p>Restaurant websites are notoriously horrible to navigate and our Mom &amp; 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.</p>
Table of Contents (18 chapters)
Drupal 7 Mobile Web Development
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Pop quiz Answers

Beyond core menu items


Drupal's menu structure did not get a major renovation since version 5.0. I am hoping that this will change with Drupal 8, but I am not holding my breath. Until then, we will have to put up with a witches brew of add-on menu functionality. One such module is Menu Attributes. How many times have you wanted each menu item to have a unique ID? Menu attributes solve that problem. How many times have you wanted to add extra classes to menu items? Menu Attributes solve this problem as well. What Menu Attributes does is extend the functionality of menu items to allow a series of standard markup choices to be changed on a per-menu-item basis. However, it is much better than just that.

Menu Attributes adds its own hooks, so that you can add your own attributes to menu attributes' configuration options. Consider that at the beginning of this book you probably did not know that the data-role and data-theme properties exist and as little as a year ago, they did not exist at all...