Support #348
closeddisplaying pages for mobile devices
0%
Description
I'd like to have multiple versions of a web app, including access via mobile (small-screen) devices. This can be done by adding
tags with a "viewport" option, such as this example from a commercial website:
This sets a fixed width for the entire page and limits (removes) scalability. Unless I'm missing something basic, I cannot find a way with Wt to insert a
tag in the header of the page; is there a way to add such a tag?
Updated by Koen Deforche almost 14 years ago
- Status changed from New to InProgress
- Assignee set to Koen Deforche
Hey,
This is indeed not possible right now. Since we now have the progressive bootstrap mode (which start with a plain HTML version and upgrades to AJAX when possible), we could add support for this, by having an API call WApplication::addMetaHeader() which you should call from within the application constructor. I assume you will only want to do this for specific user agents?
Would that work for you?
Regards,
koen
Updated by Koen Deforche almost 14 years ago
- Status changed from InProgress to Resolved
Implemented addMetaHeader() in WApplication