[SOLVED]whats purpose of import to database option for menu

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
userwords
Forum Members
Forum Members
Posts: 48
Joined: Mon Dec 27, 2010 12:27 am

[SOLVED]whats purpose of import to database option for menu

Post by userwords »

In menu manager each menu template like simple navigation has an option on the right to import the template to the database. Whats the purpose, is it only so you can edit the template inside cmsms admin instead of doing it in an external editor.

Or does have something to do with speed load performance.

Or any other reason ::)
Last edited by userwords on Sun Nov 24, 2013 9:51 pm, edited 1 time in total.
staartmees
Power Poster
Power Poster
Posts: 1049
Joined: Wed Mar 19, 2008 4:54 pm

Re: whats the purpose of import to database option for menu

Post by staartmees »

You can't edit those standard menutemplates. To do so, you have to import them in the database and give them another name.
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3497
Joined: Mon Nov 28, 2011 9:29 am
Location: The Netherlands

Re: whats the purpose of import to database option for menu

Post by velden »

Whats the purpose, is it only so you can edit the template inside cmsms admin instead of doing it in an external editor.
You should never edit the files that come with cmsms or its modules!
If you do, you can/will be unpleasantly surprised after an upgrade of cmsms...
userwords
Forum Members
Forum Members
Posts: 48
Joined: Mon Dec 27, 2010 12:27 am

Re: whats the purpose of import to database option for menu

Post by userwords »

I appreciate your replies.

No what i actually mean is what you say, although i make a copy of the tpl to edit in a editor then i would have reimported with the add a template button, leaving the core version of the template untouched.

Thats the reason i asked if the import to database had another reason to be there appart from editing a template and save it as another template.

As that can be done other way, i would think it was also some load speed optimization feature to make menu tpl load faster from database or reduce calls for the tpl or something.

Am i right to say then that import to database a menu template is only to rename, edit and save it as another one. And has nothing to do with load speed optimization in some way.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm
Location: Fernie British Columbia, Canada

Re: whats the purpose of import to database option for menu

Post by calguy1000 »

File base templates are usually faster than database based templates. But only for the first request.

After a template is compiled, the actual compiled form is cached in files anyways, and those are used until the template changes again.

So therefore, there is no justifiable performance gain in file based templates vs. database based templates.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
chandra

Re: whats the purpose of import to database option for menu

Post by chandra »

velden wrote: You should never edit the files that come with cmsms or its modules!
If you do, you can/will be unpleasantly surprised after an upgrade of cmsms...
You can find a very nice technique for this situation here

http://calguy1000.com/Blogs/6/60.html
userwords
Forum Members
Forum Members
Posts: 48
Joined: Mon Dec 27, 2010 12:27 am

Re: whats the purpose of import to database option for menu

Post by userwords »

I appreciate your posts, for me is crystal clear now, that it has nothing to do with what i said, and that it is not a performance oriented feature. :o
Post Reply

Return to “CMSMS Core”