Mar 09 2008
Joomla and the iPhone E-mail
Monday, 10 March 2008
So I have an iPhone now, so I can be both a Mac Snob and an iPhone Snob, which is kind of the same, but different since you can own an iPhone without really being a Mac Person.
But I digress - the real purpose of this post is to discuss Joomla as a WebApp for the iPhone. In case you don't know, iPhone WebApps are web sites (or special versions of web sites) that are optimized for the iPhone, even though the iPhone is capable of presenting the "whole Internet" as-is.
It took about one minute of searching to find an example template, and another to find some code for detecting the iPhone as the client.
What I don't have working yet is the proper code (or correct placement) to switch templates when iPhone = true. If you have any suggestions, please feel free to share them in the comments.




Del.icio.us!Technorati!StumbleUpon!Free social bookmarking plugins and extensions for Joomla! websites!

Add as favourites (0) | Print | E-mail

  Comments (2)
RSS comments
 1 Written by This e-mail address is being protected from spam bots, you need JavaScript enabled to view it website, on 21-03-2008 19:39
We're working along the same general direction here. The main difference in my approach, is that once i detect the iphone, I want to display an iPhone optimised functionality set as opposed to my regular site, now just laid out for iPhone. 
 
So my strategy is  
1, detect iphone, if it's an iphone offer a redirect to the iPhone web app. 
2 Figure out what my core "mobile" functionality is and expose that via a component that you can only get to if you're on an iphone. I'll apply the iphone template to that page. 
3 Lastly that page will eb direct linked in by a subdomain so in mycase iphone.clubenetwork.com 
 
I've done a bit of groundwork on it over the last few months and don't anticipate too many problems.  
 
famous last words ? 
Robbie
 2 Written by This e-mail address is being protected from spam bots, you need JavaScript enabled to view it website, on 18-04-2008 18:57
The problem with your iPhone detect you referenced is it is client-side detection. If you use the php user agent detection, you can detect the iPhone BEFORE the Joomla template is loaded and then decide which template to load (or what I've been doing is decide which part of the template to load). See this link: 
 
iPhone detection 
 
This is just to redirect to my iPhone site, but you could use whatever inside the detection. Or, you could setup certain pages in your Joomla site that USE an iPhone template, and then just have this redirect to that page.

Only registered users can write comments.
Please login or register.

Powered by AkoComment Tweaked Special Edition v.1.4.6
AkoComment © Copyright 2004 by Arthur Konze - www.mamboportal.com
All right reserved

 
Next >
© 2007 Electricwerks. All Rights Reserved.
Feed Shark Web Developement Blogs - Blog Catalog Blog Directory