Page 1 of 1

Flat/file based html/css

Posted: Mon Sep 06, 2010 7:50 pm
by Webfish
Hello community... sorry If I post in the wrong category.

Is there any way to get a flat base layout (templates, stylesheet) rathen than saving them on the online database?
It's easier to edit a file with some kind of IDE than a textarea.

Re: Flat/file based html/css

Posted: Mon Sep 06, 2010 8:23 pm
by Jeff
Take a look at template externalizer.
http://dev.cmsmadesimple.org/projects/externalizer

Re: Flat/file based html/css

Posted: Mon Sep 06, 2010 8:41 pm
by Webfish
I see.. thanks for the quick reply :)
As it seems, it's just an copier and importer tool.
You cannot edit/save/done with online IDE :(

Re: Flat/file based html/css

Posted: Mon Sep 06, 2010 9:06 pm
by jmcgin51
Webfish wrote: You cannot edit/save/done with online IDE :(
What do you mean?  Turn on the Template Externalizer, this exports your templates to a specified directory.  Then use your IDE to open the template, edit it, save it, and your updates are automatically imported into CMSMS (I believe after a specified time, IIRC).

Re: Flat/file based html/css

Posted: Tue Sep 07, 2010 6:52 am
by Webfish
If I read correctly, in order to update the template/stylesheet records in the database I have to go to "Developer Mode On", make changes, save, then go to "Developer Mode Off", check if everything is OK, if not, changing back to "Developer Mode ON" etc...

A file based system just make changes and refresh, make changes and refresh.. much faster.

Correct me if I am wrong.

PS: CodeMirror could be useful but not 100% best solution

Re: Flat/file based html/css

Posted: Tue Sep 07, 2010 1:57 pm
by jmcgin51
you are correct.  You can also set a timeout for Developer Mode, so that you do not have to manually turn it off.  But for certain things, the db-based templates may not be as convenient as file-based templates.

Re: Flat/file based html/css

Posted: Tue Sep 07, 2010 6:50 pm
by Webfish
There should be a way... CMSms uses .tpl with Menu Manager... I'm just not familiar enough with the core so I can modify something...

Any ideas are welcomed

Re: Flat/file based html/css

Posted: Sat Sep 11, 2010 11:35 pm
by Jeff
Webfish wrote: If I read correctly, in order to update the template/stylesheet records in the database I have to go to "Developer Mode On", make changes, save, then go to "Developer Mode Off", check if everything is OK, if not, changing back to "Developer Mode ON" etc...

A file based system just make changes and refresh, make changes and refresh.. much faster.

Correct me if I am wrong.

PS: CodeMirror could be useful but not 100% best solution
No, you are incorrect. As long as "Developer Mode" is ON the template files are check for changes. You don't have to turn it off to check if everything is OK, you just reload your pages (you might have to turn off caching). If don't want Developer Mode to turn off (like on at test/dev site) set the timer to 0.