You want to change the template layout for the frontend, right?
Don't know if this is efficient, but try this:
Separate Template specific things (forms, TVs, etc.) from your template layout.
All your templates should look like this:
[[$template_[[!templatepicker]]]]
Then use a snippet to change the name of the included chunk:
---------------------------
You can get a value from:
* a tv (templatepicker ,see below)
* a whitelisted list of get parameter values
* or any other parameter you want to use.
The important thing here is that the snippet returns a value that makes sense in regard for the template chunk you want to include.
Example: templatepicker TV:
----------------------------
Type: selectfield
option-values: default||homepage||contact||whatever)
default: default
Create chunks with the templatelogic:
$template_default
$template_homepage
$template_contact
$template_whatever
This should do it.
pepebe
Edit: In regard to a mobile, tablet or screen design, you have several options. Guess the type of device (for example with:
http://mobiledetect.net/ or
http://detectmobilebrowsers.com/), set a cookie and reload the page. Grab the cookie value and use it to include a different chunk. I see several problems with this approach, but they can me solved.
[ed. note: pepebe last edited this post 13 years, 5 months ago.]