开发者

How to use mobile layouts in PyroCMS

开发者 https://www.devze.com 2023-04-11 02:15 出处:网络
I\'m trying to use mobile layouts so that PyroCMS will choose the correct layout automatically if the user is visiting with a mobile device.

I'm trying to use mobile layouts so that PyroCMS will choose the correct layout automatically if the user is visiting with a mobile device.

I have my MyTheme/views/web and MyTheme/views/mobile.

The web views get loaded as they should, the mobile views however do not. When I use an android or iphone simulator I don't get the mobile-views, I just get the web-views.

why? is ther开发者_如何学Goe something I have to enable, or is there somewhere I can go to perhaps get an error message and see why?


mobile safari was not added to mobile user agents, that was why it wasn't registered

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号