Flat/file based html/css

The place to talk about things that are related to CMS Made simple, but don't fit anywhere else.
Post Reply
Webfish
New Member
New Member
Posts: 4
Joined: Mon Sep 06, 2010 7:07 pm

Flat/file based html/css

Post 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.
Jeff
Power Poster
Power Poster
Posts: 961
Joined: Mon Jan 21, 2008 5:51 pm

Re: Flat/file based html/css

Post by Jeff »

Take a look at template externalizer.
http://dev.cmsmadesimple.org/projects/externalizer
Webfish
New Member
New Member
Posts: 4
Joined: Mon Sep 06, 2010 7:07 pm

Re: Flat/file based html/css

Post 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 :(
jmcgin51
Power Poster
Power Poster
Posts: 1899
Joined: Mon Jun 12, 2006 9:02 pm

Re: Flat/file based html/css

Post 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).
Webfish
New Member
New Member
Posts: 4
Joined: Mon Sep 06, 2010 7:07 pm

Re: Flat/file based html/css

Post 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
Last edited by Webfish on Tue Sep 07, 2010 7:07 am, edited 1 time in total.
jmcgin51
Power Poster
Power Poster
Posts: 1899
Joined: Mon Jun 12, 2006 9:02 pm

Re: Flat/file based html/css

Post 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.
Webfish
New Member
New Member
Posts: 4
Joined: Mon Sep 06, 2010 7:07 pm

Re: Flat/file based html/css

Post 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
Jeff
Power Poster
Power Poster
Posts: 961
Joined: Mon Jan 21, 2008 5:51 pm

Re: Flat/file based html/css

Post 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.
Post Reply

Return to “The Lounge”