Kentico DB + Configuration scripting

Craig Hazard asked on September 8, 2014 06:29

I've just started working with Kentico as a CMS and I am looking at configuration and set-up of Kentico on a fresh PC (or pulling down a repo to a new PC).

I just looking around to see if there was the ability to Script the configuration of Kentico and it's Database, for example the creation of Page Templates (and their reference to .aspx files) or the creation of Pages/Menu structure themselves.

Is there any scripting interface for this type of thing, or am I stuck using the Administrator pages and storing the database in source control?

Recent Answers


Brenden Kehren answered on September 8, 2014 22:09

To what extent do you want to script or configure it to? Are you looking for a base setup with all the settings marked and such? Or looking to create a whole site from a script?

If you're following best practices and using the Portal development mode, you won't have any .aspx pages or templates in your file system aside from the base items that are already there.

0 votesVote for this answer Mark as a Correct answer

Craig Hazard answered on September 9, 2014 02:37

Hey Brenden, If i go down the Portal development mode does that mean I won't have any files to check into source control, or does portal development still create files?

What i wanted to be able to set up was a script that I can run to load up all of my templates in Kentico and create the page heirarchy.

0 votesVote for this answer Mark as a Correct answer

Charles Matvchuk answered on September 9, 2014 04:46

Craig, you are correct under portal development mode. Even if you use ASPX Pages a lot of the information is stored within the database.

What I do is use the Kentico Installation Manager KIM. That will create me a blank site with all the templates that I need.

If you are talking about modifying or your site with all of your customizations that is easy. You would just create a blank site with KIM then just export your existing site or the site you will create, and import into the new site.

For example. I have a standard tree, options, settings and multiple page designs that I use as a base. I have exported it from the site. Everytime I set up a new site, I just install a blank portal site and import my exported package.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.