I seem to be experiencing some strange behaviour with Mobile Tools. I'm trying to use the theme switching, so that mobile users will automatically see a specifically formatted version of the same content.
I should also add that I've copied the entire directory for my subtheme into a new version to contain all the css specific to the mobile theme. I see there's also an option to have all these in with the main theme, but there's no documentation on how to name the second .info file, and personally I'd rather keep all the mobile-optimized pieces together anyway.
Mobile Tools seems to do what I want but not consistently. Sometimes it works the way I want but then clearing the cache will stop it working. Other times it will show the mobile theme but to all anonymous users (desktop or mobile). Lately it just doesn't seem to show the mobile theme at all.
Any ideas?
Comments
Comment #1
twom commentedhi,
Some questions for you, so I can help debugging:
- Can you give me the list of other modules that you are using?
- Have you the mobile roles function enabled?
- How are you testing the mobile site (which device)
- make sure to not have two themes with the same *.info file
Thanks for the help,
Regards,
Tom
Comment #2
twom commentedIt is a caching issue. I'll try to fix it.
Comment #3
twom commentedI think the probleml is fixed.
The code used the hook_init() method to do the initialization. I didn't notice that in D6 this is not called anymore when pages are cached. I used hook_boot now. Can you test if this works for you?
(you can take the new file out of the cvs).
If everything works well, I'll release it as RC2.
Comment #4
twom commentedComment #5
twom commented