This repository has been archived by the owner on Feb 6, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Basic Configuration
Dave Greasley edited this page Aug 22, 2015
·
13 revisions
Once you have installed Concrete you will need to set some basic settings before you can start using it.
In the Config directory of your Umbraco installation you will find a new config file - ConcreteContentTypes.config.
The file has 2 sections, ConcreteSettings and ConcreteCSharpWriterSettings. We only need focus on the first section to start with. The second section is more advanced and discussed in Further Configuration.
<ConcreteSettings
Enabled="true"
GenerateOnContentTypeSave="true"
GenerateOnMediaTypeSave="true"
CSharpOutputFolder="Models"
Namespace="ConcreteContentTypes.Sandbox.Models" />
- Enabled: This property is the on / off switch for Concrete. Set this to disabled in order to stop anything Concrete does from happening.
- GenerateOnContentTypeSave: Determines if Concrete should hook into the Save event for Content Types and regenerate models automatically when you save / create them.
- GenerateOnMediaTypeSave: Determines if Concrete should hook into the Save event for Media Types and regenerate models automatically when you save / create them.
- CSharpOutputFolder: This is the folder where C# files will be created. This is relative to web site root. You can use "..\..\Somewhere else" as the value, for example, in order to navigate the folder structure. There will be 2 further folders created in here Content and Media which will hold the generated C# files for Content Types and Media Types respectively.
Note: the user running the web server must have write access to this folder.
- Namespace: This is the namespace that the generated models will be placed in. Within this namespace models will be placed in <namespace>.Content or <namespace>.Media.
These are the main properties that need setting correctly before use. Everything else can be ignored to start with.