Mobile Redirect Not Working
Hey there,
I've installed the extension, and have a page at /give.
I created a mobile template group called mobile__give
I'm not redirected to the mobile template.
Help!
Comments are currently closed for this discussion. You can start a new one.
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
Support Staff 1 Posted by Wouter Vervloet on Mar 26, 2012 @ 09:20 PM
Hi Jon,
Do you have Pages or Structure installed? Do you perhaps have an URL I can check out?
– Wouter
2 Posted by Jon Horton on Mar 26, 2012 @ 10:17 PM
Sorry, forgot to mention that in my original post! The page is question is using Pages!
Support Staff 3 Posted by Wouter Vervloet on Mar 27, 2012 @ 09:01 AM
Hi Jon,
If you have Pages installed, Mobile will use the template you have set as the template for that page.
So if you've (for example) selected the
templates/static
template for that page, Mobile will search for amobile__templates/static
template as the mobile version.– Wouter
4 Posted by Jon Horton on Mar 27, 2012 @ 01:31 PM
Thanks for the clarification. I'm still having problems however.
The page in question is using the
pages/index
.I've installed the extension, saved settings, and created the
mobile__pages/index
template.To test, I've put a Hello World phrase in the template, yet when I visit the page in question (on an ipad and my android phone), the regular template is displayed instead of the mobile one.
Any ideas on this, and is there anything I can do to troubleshoot this?
Thanks!
5 Posted by Jon Horton on Mar 27, 2012 @ 01:58 PM
Allright, so this is odd.
To further test things, I uninstalled and reinstalled the extension on my local dev environment. After doing this it worked as advertised.
I then did the same thing on my remote dev server, and sure enough, it started working immediately.
I'm not quite sure where the breakdown happened, but I'm glad it's working now. For what it's worth, beefing up the docs a little would be super helpful!
Thanks for the plugin!
Support Staff 6 Posted by Wouter Vervloet on Mar 27, 2012 @ 03:31 PM
Did you create the template through the Control Panel or just by creating the folder/template on the ftp?
Mobile needs to have the template_group in the database, so if the template_group hasn't been synched to the database yet, it won't redirect.
– Wouter
7 Posted by Jon Horton on Mar 27, 2012 @ 05:32 PM
I had created the template just by creating new folders/files. While I'm fairly certain that in my testing I made sure to sync templates on both of my dev sites, It's possible that one wasn't synced properly.
Thanks for the tip!
Support Staff 8 Posted by Wouter Vervloet on Mar 27, 2012 @ 05:50 PM
Ok, glad I could be of help.
– Wouter
Wouter Vervloet closed this discussion on Mar 27, 2012 @ 05:50 PM.