feat: URL rules and the settings singleton
This commit is contained in:
6
controllers/settings/_staging.htm
Normal file
6
controllers/settings/_staging.htm
Normal file
@@ -0,0 +1,6 @@
|
||||
{{- if .Data.Staging -}}
|
||||
<div class="summer-callout summer-callout--warning" role="status">
|
||||
<p class="summer-callout__title">{{ trans "golem15.seo::lang.robots.staging_title" }}</p>
|
||||
<p class="summer-callout__text">{{ trans "golem15.seo::lang.status.staging" }}</p>
|
||||
</div>
|
||||
{{- end -}}
|
||||
19
controllers/settings/config_form.yaml
Normal file
19
controllers/settings/config_form.yaml
Normal file
@@ -0,0 +1,19 @@
|
||||
# ===================================
|
||||
# Form Behavior Config
|
||||
# ===================================
|
||||
#
|
||||
# The SEO settings singleton (D-104), linked from the SEO settings tile.
|
||||
# The plugin's form extension adds one tab per content type after General.
|
||||
|
||||
name: golem15.seo::lang.settings.label
|
||||
form: ~/plugins/golem15/seo/models/settings/fields.yaml
|
||||
modelClass: Golem15\SEO\Models\Settings
|
||||
defaultRedirect: system/settings
|
||||
|
||||
update:
|
||||
redirect: golem15/seo/settings
|
||||
redirectClose: system/settings
|
||||
|
||||
messages:
|
||||
update: golem15.seo::lang.settings.label
|
||||
saved: backend::lang.messages.form.saved
|
||||
Reference in New Issue
Block a user