This Baseline has a complete Kentico 12 Site and database export, you should be able to clone this completely, follow these steps when starting a new site
- Clone entire solution (remove the .git folder once cloned)
- Remove the .gitignore and rename "production.gitignore" to ".gitignore"
- Restore the .bak Database, and create and configure the Database Login / Security
- Add the new Connection String to the CMS and Baseline's ConnectionString.config
- Edit the
CMSHashStringSalt
in theAppSettings.config
needs a unique GUID added, do this in both the CMS and Boilerplate folder's AppSettings.config - Adjust any other AppSettings (like CI Restore location path and admin login url)
- Setup your IIS and license and such.
- Push up to your own Github
If you want to adjust the baseline, make a new branch, do all your stuff, and then re-back up the database, and do a pull request into the master.
- Froala Form Input Component when available
- Object Selector when available
- Ecommerce tools
x.PagedList is a pager that allows for easy pagination creation. You can either use a Url.Action for the page, or use our Url.RenderPath for relative urls (dynamic routing). This handles the Query String values that your tool must then account for.
Dynamic Routing module is installed for easy routing.
MVC Caching is installed.
AutoFac Automatic registrations
- Classes with
IRepository
orIService
with methods that start withGet
and are of types ITreeNode, IEnuemrable, BaseInfo, or IEnumerable will have automatic caching enabled on them (can manually set as well through[CacheDependency("")]
, note that ##SITENAME## will be resolved in the cachedependency automatically, and {0} {1} etc can be used for the property value passed into that method. See example) - Classes with
ICacheHelper
property in constructor will be assigned Kentico's default CacheHelper - Classes with
IOutputCacheDependencies
property in constructor will be assigned the default OutputCacheDependencies, you can use this to call AddCacheItemDependencies to hook into Kentico's cache key handler. - Classes with
IRepository
interface if the constructor has a property of type string with namecultureName
it will be passed the current Culture - Classes with
IRepository
interface if the constructor has a property of type bool with namelatestVersionEnabled
it will automatically pass if the Preview is Enabled.
[ActionResultCache]
is also a caching attribute you can use on your ActionResult methods which will cache the logic to build the view model, but not cache the view. For the most part though, as long as each widget/partial on the page adds it's own Dependencies to the IOutputCacheDependency, any change will clear the full [OutputCache] for that view.
For more information, please see me at www.devtrev.com
Sincerely, Trevor Fayas - Kentico MVP