Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#16 2012-01-20 22:36:08

WebKat
Member
Registered: 2007-01-16
Posts: 301

Re: Automatic mobile theme switching?

What I’m looking for is some way to detect a mobile device, and then display the content to them using a different page template. I don’t want to try to re-vamp my existing desktop page templates as they are too complex and too reliant on things that would be hard to change. Is there a way to do this? Have a set of mobile page templates and form templates that are called up if a mobile device is detected?



WebKat

Offline

#17 2012-01-21 07:58:50

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,382
Website GitHub Mastodon Twitter

Re: Automatic mobile theme switching?

WebKat wrote:

What I’m looking for is some way to detect a mobile device, and then display the content to them using a different page template. I don’t want to try to re-vamp my existing desktop page templates as they are too complex and too reliant on things that would be hard to change. Is there a way to do this? Have a set of mobile page templates and form templates that are called up if a mobile device is detected?

I wonder if you can achieve this if you created a section which lists content just for mobile.

Last edited by colak (2012-01-21 07:59:21)


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#18 2012-01-23 15:54:17

WebKat
Member
Registered: 2007-01-16
Posts: 301

Re: Automatic mobile theme switching?

But how would I populate that section? We aren’t allowed two sections, and everything is already assigned to a section. I don’t want different content for mobile—I want a different template for the same content.



WebKat

Offline

Board footer

Powered by FluxBB