[pmwiki-users] Web for mobiles -- Apple sold over 1 million iPhones last weekend...

kirpi at kirpi.it kirpi at kirpi.it
Tue Jul 15 07:49:06 CDT 2008


> Not sure why you use ?action=mobile

Mainly because I would like to be able and manually switch to the
mobile version of a page no matter the device I am using. And back.

Another answer to the same question could be: because I do not really
know what else to do. Have you ever seen a blind man walking without a
stick?

Patrick suggested to adopt something like ?skin=mobile or ?setskin=mobile
But I do not know how to trigger/define those things.


> I would add to the standard skin template in the head something like this:
> <link href='$SkinDirUrl/css/handheld.css' rel='stylesheet' type='text/css' media='handheld' />
> If the browser is recognised as a handheld device, then only the
> handheld.css is loaded, and all others are ignored!

Yes, that is probably the right way.
I've read, though, that real support for the media='handheld' in
today's devices is surprisingly wanting. Many people witness this, all
over the internet.

Maybe both things (?setskin=mobile and media='handheld') can work together...?


Luigi



More information about the pmwiki-users mailing list