Feature Idea - TEMPLATE=X parameter for overriding template
Posted: Thu Oct 20, 2011 1:04 pm
CMSMS has a very handy parameter SHOWTEMPLATE=true/false. It makes AJAX applications much simpler and faster.
I've been looking for a way to serve a different template to mobile devices - I mean a completely different template.
I understand how to detect mobile and serve a different markup based on {if}{else}{/if} logic.
But being OCD, I like to keep my templates separate for the sake of maintainability.
Does anyone else think it would be a good idea to add a TEMPLATE=[template id or name] parameter to the core?
Would it add too much overhead, slow down the performance?
It seems like everything in CMS Made Simple is customizable and over-rideable, except which template is served with the page.
Why not?
Here are a few threads which show how to detect and serve special css/markup to mobile:
http://forum.cmsmadesimple.org/viewtopic.php?t=41520
http://forum.cmsmadesimple.org/viewtopic.php?t=25495
I've been looking for a way to serve a different template to mobile devices - I mean a completely different template.
I understand how to detect mobile and serve a different markup based on {if}{else}{/if} logic.
But being OCD, I like to keep my templates separate for the sake of maintainability.
Does anyone else think it would be a good idea to add a TEMPLATE=[template id or name] parameter to the core?
Would it add too much overhead, slow down the performance?
It seems like everything in CMS Made Simple is customizable and over-rideable, except which template is served with the page.
Why not?
Here are a few threads which show how to detect and serve special css/markup to mobile:
http://forum.cmsmadesimple.org/viewtopic.php?t=41520
http://forum.cmsmadesimple.org/viewtopic.php?t=25495