CMS Made Simple Forums
https://forum.cmsmadesimple.org/

Feature Idea - TEMPLATE=X parameter for overriding template
https://forum.cmsmadesimple.org/viewtopic.php?f=21&t=57342
Page 1 of 1

Author:  kendo451 [ Thu Oct 20, 2011 1:04 pm ]
Post subject:  Feature Idea - TEMPLATE=X parameter for overriding template

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:

viewtopic.php?t=41520

viewtopic.php?t=25495

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/