Skip to content

System settings

You can modify the content, path, common, plugin, and template settings in the .ewizard/settings.json file.

json
{
  "content": {
    "type": "banner",
    "subtype": ""
  },
  "path": {
    "blocks": "common/blocks-library",
    "blocksFilename": "blocks.json",
    "blocksManifest": "common/blocks-library/blocks.json",
    "modulesFilename": "modules.json",
    "modulesManifest": "common/blocks-library/modules.json",
    "localBlocks": "common/blocks",
    "componentsFilename": "components.json",
    "localComponents": "common/components",
    "bundle": "build/dev/app.js",
    "rootComponent": "App.vue",
    "themes": "themes",
    "settings": "settings.json",
    "icon": "icon.png",
    "icon2x": "icon@2x.png",
    "preview": "preview.jpg",
    "templatesManifest": "templates.json",
    "templates": "templates",
    "common": {
      "i18n": "common/i18n",
      "references": "common/resources/references.json",
      "media": {
        "images": "common/media/images",
        "videos": "common/media/videos",
        "pdfs": "common/media/pdfs",
        "fonts": "common/media/fonts"
      }
    }
  },
}

The .ewizard/settings.json file has the following fields:

                 Field                    Description
content.typeThe project type.
content.subtypeThe content subtype.
path.blocksFilenameThe name of the file that defines which blocks appear on the elements panel in eWizard Editor.
path.blocksManifestThe path to the file that defines which blocks appear in eWizard Editor.
path.localBlocksThe directory where the local blocks are stored.
path.componentsFilenameThe name of the file that defines which components appear on the elements panel in eWizard Editor.
path.localComponentsThe directory that defines where the local components are stored.
path.modulesFilenameThe name of the file that defines which modules appear on the elements panel in eWizard Editor.
path.modulesManifestThe path to the file that defines which modules appear on the elements panel in eWizard Classic. The field doesn't affect eWizard Editor.
path.bundleThe path to the file with the development build.
path.themesThe directory where the themes are stored.
path.settingsThe name of the file with the banner settings.
path.iconThe name of the file with the banner icon.
path.icon2xThe name of the file with the large version of the banner icon.
path.previewThe name of the file with the project preview.
path.templatesManifestThe path to the file that defines templates to use for creating banners in eWizard Editor.
path.templatesThe path to the catalog with banner templates.
path.common.i18nThe directory with content localization. For more information, see Localization.
path.common.media.imagesThe directory with common images.
path.common.media.videosThe directory with common videos.
path.common.media.pdfsThe directory with common PDFs.
path.common.media.fontsThe directory with common fonts.
path.common.referencesThe path to the file that defines which references appear in eWizard Editor. For more information, see References.
path.banner.thumbnailThe path to the file with the thumbnail. For more information, see wiz thumbs [options].
path.banner.thumbnailsThe path to the directory with the thumbnails for all themes except current. For more information, see Thumbnails for themes.

View all fields in .ewizard/settings.json

You can check all the fields available in .ewizard/settings.json with a development build.

To view all fields from the .ewizard/settings.json file, add the console.log method to the App.vue file of your project.

html
<!-- App.vue -->

<script>
export default {
  mounted() {
    console.log(EWIZARDJS.SYSTEM_SETTINGS);
  },
};
</script>

You can see object with all the fields of .ewizard/settings.json in the browser console after running the wiz dev --live command.

Object with system settings in the browser console