Ifdevice
nav_first.pngFirst: thread:378
extendable data forms / repeatable fields
Edited: 13 Oct 2011 03:09 by: Ben Miller
Comments: 4
Tags:
nav_prev.pngPrevious: thread:213
Extending the user tag
Edited: 27 Dec 2009 13:17 by: pieterh
Comments: 1
Tags:
Last: thread:194
Extra ordening mechanism
Edited: 09 Dec 2009 15:27 by: Steven Heynderickx
Comments: 1
Tags:
nav_last.png
Next: thread:194
Extra ordening mechanism
Edited: 09 Dec 2009 15:27 by: Steven Heynderickx
Comments: 1
Tags:
nav_next.png

gerdamigerdami wrote on 21 Dec 2009 16:18

The current technique for mobile sites is a redirection because page weights should be less than 20K. The [[Ifdevice …]] would help redirecting to the mobile version.

If I use a category "mobile" for the mobile version, I would like gerdami.wikidot.com/anypage be redirected to gerdami.wikidot.com/mobile:anypage with a custom CSS for category mobile:.
But how can I test that the device is a mobile and redirect to the mobile page thanks to something like

[[ifdevice mobile]]
[[module Redirect destination="mobile:/%%name%%"]]
[[/ifdevice]]

Source: http://www.w3.org/TR/2008/REC-mobile-bp-20080729/#d0e1099
Example: www.ft.com would redirect to m.ft.com


Start a new sub-thread

Comments: 0

Add a New Comment
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License