{% import "_includes/forms" as forms %}
{% from "seomatic/settings/_includes/macros.twig" import configWarning %}
{% namespace "settings" %}
{{ forms.textField({
label: "Plugin name"|t("seomatic"),
instructions: "The public-facing name of the plugin"|t("seomatic"),
id: "pluginName",
name: "pluginName",
value: settings.pluginName,
warning: configWarning("pluginName", "seomatic"),
errors: settings.getErrors("pluginName"),
}) }}
{{ forms.lightswitchField({
label: "Automatic Render Enabled"|t("seomatic"),
instructions: "Controls whether SEOmatic will automatically render metadata on your pages. If you turn this off, you will need to manually render the metadata."|t("seomatic"),
id: "renderEnabled",
name: "renderEnabled",
on: settings.renderEnabled,
warning: configWarning("renderEnabled", "seomatic"),
errors: settings.getErrors("renderEnabled"),
}) }}
{{ forms.lightswitchField({
label: "Include Homepage in Breadcrumbs"|t("seomatic"),
instructions: "Should the homepage be included in the generated Breadcrumbs JSON-LD?"|t("seomatic"),
id: "includeHomepageInBreadcrumbs",
name: "includeHomepageInBreadcrumbs",
on: settings.includeHomepageInBreadcrumbs,
warning: configWarning("includeHomepageInBreadcrumbs", "seomatic"),
errors: settings.getErrors("includeHomepageInBreadcrumbs"),
}) }}
{{ forms.lightswitchField({
label: "Manually Set SEOmatic Environment"|t("seomatic"),
instructions: "If off, SEOmatic will automatically attempt to determine the current environment. If `devMode` is on, SEOmatic will default to `local` Development. Turn this on to manually set the environment."|t("seomatic"),
id: "manuallySetEnvironment",
name: "manuallySetEnvironment",
on: settings.manuallySetEnvironment,
warning: configWarning("manuallySetEnvironment", "seomatic"),
errors: settings.getErrors("manuallySetEnvironment"),
toggle: ".environment-wrapper",
}) }}
{# @TODO: This will be added an upcoming "pro" edition
{{ forms.lightswitchField({
label: "Display Sidebar SEO Analysis"|t("seomatic"),
instructions: "Controls whether to display the SEO and content analysis in the sidebar on entry and category pages."|t("seomatic"),
id: "displayAnalysisSidebar",
name: "displayAnalysisSidebar",
on: settings.displayAnalysisSidebar,
warning: configWarning("displayAnalysisSidebar", "seomatic"),
errors: settings.getErrors("displayAnalysisSidebar"),
}) }}
#}
{% endnamespace %}