Mobile not redirecting, not parsing {is_mobile} and {mobile_client}
Hi Wouter,
Installed your extension on a client's website, but have trouble
getting it to work properly.
This is how my template structure looks like:
pages *
- index - static
mobile__pages
- index - static
The index file in the template group 'pages' is my site homepage. On mobile devices, mobile__pages/index should be shown, but instead I just get to see the regular index page. Same goes for the static template.
The variables {is_mobile} and {mobile_client} are not being set (neither on mobile or on desktop). The stf and stm links are being generated though.
I am using EE 2.5.3 with Structure 3.3.4. Freebie is disabled so that can't be interfering.
Any clues?
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 07 Nov, 2012 03:48 PM
Hi Maik,
Which version of Mobile are you using? Apparently a few of my commits to a local development branch made it onto the master branch on GitHub, so you might've downloaded a faulty version.
I have corrected that and committed a fully working version back to the master branch on GitHub.
– Wouter
2 Posted by Maik on 07 Nov, 2012 03:53 PM
Hi Wouter, just updated to 0.9.7 this afternoon.
3 Posted by John on 08 Nov, 2012 08:33 PM
Same issue as Maik listed. It's not redirecting or parsing the Mobile variables, but the links are being generated. Using 0.9.7. Any ideas?
I appreciate the help.
Support Staff 4 Posted by Wouter Vervloet on 08 Nov, 2012 09:53 PM
I reverted the add-on to an older version as some of my (messed up) commits seem to have introduced some errors. Please download a fresh copy (0.9.5) and it should work again.
Sorry for all the troubles and I will look into it a bit more.
– Wouter
5 Posted by John on 08 Nov, 2012 10:08 PM
v0.9.5 works great. This is going to be a big help. Thank you.
Wouter Vervloet closed this discussion on 05 Dec, 2012 08:03 PM.