Question about settings and plugin, etc?

4 posts by 2 authors in: Forums > CMS Builder
Last Post: Yesterday at 12:35pm   (RSS)

I have a modified Settings.dat.default.php file that presets many options for me such as a list of plugins, media.ini on, admin and dev email addresses etc. It was a pain to maintain when new versions came out  and the settings file was reorganized. I was hoping for a better way. Now with the default settings file now constructed programmatically, I see an opportunity to achieve my goal.

it would be great if we could provide a list of plugins and other settings in a custom config  file or something similar that could be integrated into the install. My goal is to remove the manual necessity to make these changes on each new project as very little is different from one client to the next.

For instance my email address for dev and admin don’t change, I always want certain plugins, I always have a custom help menu pointing at a help table, I always use media.ini (which has been customized with image sizes and info1-5 titles), my custom branding doesn’t change, and the list goes on. The only thing that changes for sure is DB info.

Jeff Shields

Hi Jeff, 

We have a number of users who create their own customized CMSB distributions in various ways.

For installs, perhaps the easiest way would be to have a folder with your customized files, e.g.: 

  • /cmsb/data/settings.dat.php
  • /cmsb/data/media.ini.php

Then when you download a new version zip drag those files in.  So if you have these folders: 

  • /my_source_files/cmsbuilder_3_73_build2773_release/
  • /my_source_files/cmsb_my_customized_files
  • /my_source_files/cmsb_my_release_version

Then everytime you download a new version you just drag/copy the release files in the "my_release_version" folder, and then drag the my_customized_files folder in, and you're good to go.

Because there's no /data/isInstalled.php semaphore file yet, it will run the install routine, and because the media and settings files are already there it should use them.

That might be the simplest, but you could also have a plugin check for files and customize them as needed.

Let me know if that will work for you.

Dave Edis - Senior Developer
interactivetools.com

that is what I have been doing, A couple of times recent changes to the settings file broke that approach and I had to repair the files. Anyway, I will continue with what I was doing.

Jeff Shields