Transcript
Page 1: Building mobile website with Joomla -  Joomla!Days NL 2010 #jd10nl

Building mobile websites

with Joomla!Joomla!Days NL 2010

Heiko DesruelleTom Deryckere

Page 2: Building mobile website with Joomla -  Joomla!Days NL 2010 #jd10nl

Mobile is the Future...

+1 billion mobile phones sold / year

Mobile web access will surpass PCs by 2013 (Gartner)

Today, we’ll focus on the mobile Internet

Page 3: Building mobile website with Joomla -  Joomla!Days NL 2010 #jd10nl

... but it can be a Pain Mobile Internet is not the “mini-Internet”

• New usage patterns, navigation methods, ...

• 90% of devices don’t support JavaScript

1:1 mapping of desktop concepts leads to frustration

Page 4: Building mobile website with Joomla -  Joomla!Days NL 2010 #jd10nl

Mobile Readiness Example

mobiReady evaluation of www.joomla.org• Very poor overall score (1.3/5)

• Too slow, too expensive, unadapted structure, ....

Page 5: Building mobile website with Joomla -  Joomla!Days NL 2010 #jd10nl

About Siruna

Open source company

We think in small screens (Mobile Web)

We develop solutions to help the development of mobile websites

With a very strong focus on Drupal, Joomla!, Wordpress

Mobile partner of several web agencies

Page 6: Building mobile website with Joomla -  Joomla!Days NL 2010 #jd10nl

MOBILE WEBHistory, usage

Page 7: Building mobile website with Joomla -  Joomla!Days NL 2010 #jd10nl

Back in 1999

Voice Messaging Infrared

HIGH END DEVICE

Page 8: Building mobile website with Joomla -  Joomla!Days NL 2010 #jd10nl

Today

Voice, messaging Web Camera Bluetooth Java

ENTRY LEVEL DEVICE

Page 9: Building mobile website with Joomla -  Joomla!Days NL 2010 #jd10nl

Technology Trends

From WAP, over IMODE, to XHTML

Page 10: Building mobile website with Joomla -  Joomla!Days NL 2010 #jd10nl

Network Technology

GPRS52Kb/s

EDGE240Kb/s

UMTS384Kb/S

HSDPA1.8Mb/s

E-mail (3KB) < 1s < 1s < 1s < 1s

Website (128KB) 20s 5s 3s < 1s

MP3 (3MB) 8m 2m 64s 13s

Video (15MB) 40m 9m 6m 66s

Page 11: Building mobile website with Joomla -  Joomla!Days NL 2010 #jd10nl

WHERE IS THE COMPLEXITY?

Powerful devices

Fast network connections

Affordable data plans

Mobile Web

Page 12: Building mobile website with Joomla -  Joomla!Days NL 2010 #jd10nl
Page 13: Building mobile website with Joomla -  Joomla!Days NL 2010 #jd10nl

Mobile Fragmentation

It’s not all about iPhone!

Thousands of different devices

Different Operating Systems

Wide range of properties and capabilities Screen size, JavaScript support, HTML/CSS support, ...

Page 14: Building mobile website with Joomla -  Joomla!Days NL 2010 #jd10nl

Usability

Mobile web usage differs from surfing on a desktop Quick and easy bits of content

Desktop pages often contain too much information

Typical mobile usage:

On the roadQuick lookup On the loo

Page 15: Building mobile website with Joomla -  Joomla!Days NL 2010 #jd10nl

NATIVE VS. WEB APPLICATIONS

Page 16: Building mobile website with Joomla -  Joomla!Days NL 2010 #jd10nl

Development Options Native applications

Powerful application Written for specific platform (e.g. iPhone or Android apps)

Widgets XHTML, CSS and JavaScript Written for a specific widget engine (e.g. Nokia WRT) Often special JavaScript APIs with access to device resources Powerful and easy to create

Mobile websites HTML, CSS and JavaScript Easy to develop Lacks access to device resources *

Page 17: Building mobile website with Joomla -  Joomla!Days NL 2010 #jd10nl

Monetizing your Work

Native App Stores Web Apps

Openness Open to anyone who signs agreement Completely open

Entry Cost $0 - $200 None

Developer Revenue 30% - 80% 100%

Approval Few days - weeks Instantaneous

Application stores not always goldmines Ranking-based system

Dapple app: $32,000 invested vs. $535 revenue

Developers are looking for alternatives Less restrictive, higher revenue rate

Page 18: Building mobile website with Joomla -  Joomla!Days NL 2010 #jd10nl

Native Development

Platform Language Cross-platform

iPhoneOS Objective C NO

Android Java (Dalvik JVM) NO

Windows Mobile .NET / C++ / Java NO

Symbian C++ Compilation per target

Palm OS C, C++ Windows Mobile with emulator

Blackberry Java (with RIM API) NO

Page 19: Building mobile website with Joomla -  Joomla!Days NL 2010 #jd10nl

What About Java?

Java ME offers many opportunities

However, lots of mobile virtual machines & versions Each introducing specific bugs and glitches

Still need for separated platform development

“Write once, run anywhere” not that simple

Page 20: Building mobile website with Joomla -  Joomla!Days NL 2010 #jd10nl

Web only for Trivial Apps?

Google engineers ported Quake II to browsers

Showing capabilities of HTML5-compatible browsers

Cross-compiled 3D engine to JavaScript

Page 21: Building mobile website with Joomla -  Joomla!Days NL 2010 #jd10nl

PhoneGap: Combining both Worlds

Create applications using Web technology HTML, CSS and JavaScript

Additional JavaScript APIs to access device interfaces GPS, camera, contacts, ...

Packaged as native application Android, Blackberry, iPhone

Support for other platforms is coming

Page 22: Building mobile website with Joomla -  Joomla!Days NL 2010 #jd10nl

BONDI: Taking it even Further

TODO

Page 23: Building mobile website with Joomla -  Joomla!Days NL 2010 #jd10nl

GENERAL TECHNIQUESWeb mobilization

Page 24: Building mobile website with Joomla -  Joomla!Days NL 2010 #jd10nl

Device Detection

Every device matters Differentiating devices is required

Detect properties and capabilities

Enables device-optimized server-side actions Image transcoding & resizing

Showing only core information

WURFL, Device Atlas, lightweight scripts, ...

Page 25: Building mobile website with Joomla -  Joomla!Days NL 2010 #jd10nl

Domain Redirection

2 separate websites Desktop & mobile version

Simple approach Perform device detection

Redirect mobile devices

Maintenance requires more effort

Mobile

Desktop

Page 26: Building mobile website with Joomla -  Joomla!Days NL 2010 #jd10nl

Template Switching

Dynamically change website’s template

Selection based on device detection

Only the website’s layout changes Content can be reused

Important: Mobile template’s quality

Page 27: Building mobile website with Joomla -  Joomla!Days NL 2010 #jd10nl

Template Switching

Mobile template: Rules of thumb

Single column design for most device

No floats, fixed widths, or fixed margins

Limit usage of tables, no frames

...

W3C Mobile Web Best Practices

http://www.w3.org/TR/mobile-bp/

Page 28: Building mobile website with Joomla -  Joomla!Days NL 2010 #jd10nl

Transcoding Services

Proxy approach: intermediate server Perform device detection

Fetch content from original desktop site

Apply specific content adaptation rules Remove specific content, transform menu structure, resize

images, ...

Desktop

Proxy

Page 29: Building mobile website with Joomla -  Joomla!Days NL 2010 #jd10nl

Transcoding Services Siruna platform

Composer with XML based adaptation rules

Quick preview

Page 30: Building mobile website with Joomla -  Joomla!Days NL 2010 #jd10nl

MOBILE JOOMLA! EXTENSIONS

Page 31: Building mobile website with Joomla -  Joomla!Days NL 2010 #jd10nl

Joomla! & Mobile Web

By default, no mobile support mechanisms ... as for most other CMSs

Bad mobile browsing experience

Need for mobile extensions

Page 32: Building mobile website with Joomla -  Joomla!Days NL 2010 #jd10nl

Getting Started: JED

Page 33: Building mobile website with Joomla -  Joomla!Days NL 2010 #jd10nl

Mobile Joomla!

Distinguishes 4 types of mobile devices

iPhone, XHTML, iMode & WAP

Template switching per category

Image adaptation options

No mobile caching

Not in JED (yet)

http://www.mobilejoomla.com

Page 34: Building mobile website with Joomla -  Joomla!Days NL 2010 #jd10nl

Mobilebot Focuses on switching templates for different devices

Detects iPhone, Blackberry, Android and Opera Mini

Change HTML content based on device

Settings through plugin parameters, no “mobile view”

Page 35: Building mobile website with Joomla -  Joomla!Days NL 2010 #jd10nl

WAFL

Experimental student project (guided by Siruna)

Dynamically creates a mobile template for each installed desktop template

Uses Siruna transcoding technology for mobile optimizations

Easy to use

Quality is difficult to predict (best effort)

Page 36: Building mobile website with Joomla -  Joomla!Days NL 2010 #jd10nl

WAFL

Page 37: Building mobile website with Joomla -  Joomla!Days NL 2010 #jd10nl

jWURFL

Integrates WURFL device detection in Joomla!

Repository of +-9000 devices

Access to detailed device properties

Useful tool for mobile-minded extension developers

http://www.choiceit.nl

Page 38: Building mobile website with Joomla -  Joomla!Days NL 2010 #jd10nl

OSMOBI

Service to instantly mobilize your CMS-driven website

Based on the Siruna transcoding engine

Optimized for interfacing with Joomla! But also Drupal and Wordpress

Provides a GUI to easily change mobile look & feel

http://www.osmobi.com

Page 39: Building mobile website with Joomla -  Joomla!Days NL 2010 #jd10nl

USING OSMOBI

Page 40: Building mobile website with Joomla -  Joomla!Days NL 2010 #jd10nl

OSMOBI

Personal account per user

Free until 150 pageviews per day

Account creation in 3 steps

Page 41: Building mobile website with Joomla -  Joomla!Days NL 2010 #jd10nl

Install CMS extension Download and install OSMOBI plugin & template

Activate plugin

Page 42: Building mobile website with Joomla -  Joomla!Days NL 2010 #jd10nl

Start Mobilizing Your Site

Page 43: Building mobile website with Joomla -  Joomla!Days NL 2010 #jd10nl

Remove, Rearrange Content Everything is selectable (move it up, down, or

hide)

Page 44: Building mobile website with Joomla -  Joomla!Days NL 2010 #jd10nl

Adapt Navigation Create and modify additional dropdown menus

Page 45: Building mobile website with Joomla -  Joomla!Days NL 2010 #jd10nl

Change Colors & Logo Originally selected from desktop template

Can be tweaked Color schema inspiration: Adobe Kuler

Upload a logo

Page 46: Building mobile website with Joomla -  Joomla!Days NL 2010 #jd10nl

Change Style and CSS All page elements are highly customizable

Edit margins, padding

Font settings, text alignment

Custom CSS inclusion

Page 47: Building mobile website with Joomla -  Joomla!Days NL 2010 #jd10nl

Preview Website

Preview on different devices

Optimized look & feel adaptations iPhone

Android

Default mobile look

Automatically selected

Page 48: Building mobile website with Joomla -  Joomla!Days NL 2010 #jd10nl

Membership: Personal

Up to 500 page views / day

No OSMOBI advertisements

AdMob mobile advertising platform

Own mobile URL (instead of OSMOBI URL)

Page 49: Building mobile website with Joomla -  Joomla!Days NL 2010 #jd10nl

Membership: Premium

Up to 5,000 page views / day

Native application wrapping Apple App Store, Android Market, Ovi Store

Advanced SEO Mobile sitemap, Google Webmaster tool integration, ...

E-mail support

+ Personal membership advantages

Page 50: Building mobile website with Joomla -  Joomla!Days NL 2010 #jd10nl

Affiliate Program

Place OSMOBI banners on your website

Direct new people to OSMOBI

Get a % commission per sale

Free, takes only 5 minutes to sign up

http://affiliate.siruna.com/affiliates

Page 51: Building mobile website with Joomla -  Joomla!Days NL 2010 #jd10nl

OSMOBI EXAMPLES

Page 52: Building mobile website with Joomla -  Joomla!Days NL 2010 #jd10nl

Show Cases

http://www.osmobi.com/gallery

Page 53: Building mobile website with Joomla -  Joomla!Days NL 2010 #jd10nl

QUESTIONS?

Page 54: Building mobile website with Joomla -  Joomla!Days NL 2010 #jd10nl

Contact

Mail: [email protected]

Siruna: http://www.siruna.comhttp://open.siruna.org

OSMOBI: http://www.osmobi.com

Twitter: @Osmobi@Siruna