That seems like an approach that could work. I think the mobile device handling was made before making the homepage editable was enabled so it's definitely possible that their are some conflicts.
I think when the homepage is editable it will specifically look for a template called pages/index.html so that may be why the mobile device handling isn't working, I could be totally off on that. Let us know how it goes. On Sat, Feb 1, 2014 at 7:14 AM, Andrew Smith <[email protected]>wrote: > Ok, > > I am thinking i'll need to some middleware to my theme to do the homepage > redirection. > > It would be great if I could do this at the template level, something like: > > {% if request.mobile%} > > {% include "mobile/index.html" %} > > {% else %} > > ... > > any other ideas out there? > > > > > > -- > You received this message because you are subscribed to the Google Groups > "Mezzanine Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/groups/opt_out. > -- You received this message because you are subscribed to the Google Groups "Mezzanine Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
