IDeliverable.ThemeSettings is a module for the Orchard CMS that provides functionality to enable themes to expose settings that are configurable by site owners in the admin UI.
Provides functionality to enable themes to expose settings that are configurable by site owners in the admin UI. Themes can expose a theme settings manifest containing a description of the configurable settings exposed by the theme. IDeliverable.ThemeSettings will parse this manifest and expose the declared settings in the Orchard admin UI for site owners to configure.
To provide theme settings from your theme, follow the following steps:
- Create a file named
Settings.jsonin the root folder of your theme (or copySettings.json.samplefrom this project and rename toSettings.json) This file is the theme's theme settings manifest. - Update the
Settings.jsonfile with your theme-specific settings. - To acess configured settings in your theme at runtime, see the sample Razor view
ThemeSettings.cshtml.samplewhich demonstrates a typical use case where an inline style is rendered in the<head>section of the document leveraging the configured theme settings.
Provides support for import and export of theme settings.
This module is compatible with Orchard version 1.10.x. The module might also work on older or newer versions of Orchard but this is not guaranteed.
This module is open source and free for use under the permissive MIT license, which means you are free to change it, redistribute it and generally use it in whatever way you want.