Migrating sites with mobile templates

What is best practice for migrating sites with included mobile templates (like in site settings/mobile support) from BC? My first idea is to use the {{request}} object to determine wether the user is on a mobile device or not and then use conditional liquid code in the content template in Treepl to include the mobile template. Any other ideas?

1 Like

Yeah, I think that would be your best bet.

1 Like

Would be good if treepl added this to the system. I have sites that require this so can’t transfer over until I find a way to do this.

Hi @Eddie. It’s highly unlikely to be a feature added to Treepl as it’s a very outdate way of building responsive sites.
However you can achieve a very similar thing using the device_type in Liquid:
https://docs.treepl.co/documentation_group/liquid/request-object#secDeviceType

Also with the use of CSS media queries you should be able to fully adapt for devices/screen sizes.

Let us know if you need further help with implementing this for what you need.

1 Like

Thanks for reply Adam
Much appriciated and I’ll have a look at the article.
Cheers Eddie