- definitions singleton controller (theme default, first or create) with a repeater on data: type dropdown (url plus registry types), reference dependsOn type through signpost.ReferenceOptions - Settings page entries: Sitemap (link to the controller) and Sitemap settings (form), both behind golem15.sitemap.access_definitions - en and pl phrasebooks with the PHP keys - README with the PHP parity rules, tiers, hooks, commands and the Winter YAML adaptations - TestSitemapAdminSmoke: singleton, PHP-keyed rows, 422 on a foreign reference, settings save, 403 without the permission
70 lines
2.8 KiB
YAML
70 lines
2.8 KiB
YAML
# ===================================
|
|
# Form Field Definitions
|
|
# ===================================
|
|
#
|
|
# The WinterCMS form was one tab holding the SitemapItems widget. Here the
|
|
# items are a repeater on data; each row is one DefinitionItem. The CMS page
|
|
# field is not ported: items are URLs or registry types.
|
|
|
|
fields:
|
|
data:
|
|
label: golem15.sitemap::lang.item.definition
|
|
type: repeater
|
|
prompt: golem15.sitemap::lang.item.add_item
|
|
titleFrom: url
|
|
form:
|
|
fields:
|
|
type:
|
|
label: golem15.sitemap::lang.item.type
|
|
type: dropdown
|
|
options: getTypeOptions
|
|
span: left
|
|
reference:
|
|
label: golem15.sitemap::lang.item.reference
|
|
type: dropdown
|
|
dependsOn: type
|
|
emptyOption: backend::lang.form.none
|
|
span: right
|
|
url:
|
|
label: golem15.sitemap::lang.item.url
|
|
type: text
|
|
span: left
|
|
urlPattern:
|
|
label: golem15.sitemap::lang.item.url_pattern
|
|
comment: golem15.sitemap::lang.item.url_pattern_comment
|
|
type: text
|
|
span: right
|
|
priority:
|
|
label: golem15.sitemap::lang.item.priority
|
|
type: dropdown
|
|
span: left
|
|
options:
|
|
'0.1': '0.1'
|
|
'0.2': '0.2'
|
|
'0.3': '0.3'
|
|
'0.4': '0.4'
|
|
'0.5': '0.5'
|
|
'0.6': '0.6'
|
|
'0.7': '0.7'
|
|
'0.8': '0.8'
|
|
'0.9': '0.9'
|
|
'1.0': '1.0'
|
|
changefreq:
|
|
label: golem15.sitemap::lang.item.changefreq
|
|
type: dropdown
|
|
span: right
|
|
options:
|
|
always: golem15.sitemap::lang.item.always
|
|
hourly: golem15.sitemap::lang.item.hourly
|
|
daily: golem15.sitemap::lang.item.daily
|
|
weekly: golem15.sitemap::lang.item.weekly
|
|
monthly: golem15.sitemap::lang.item.monthly
|
|
yearly: golem15.sitemap::lang.item.yearly
|
|
never: golem15.sitemap::lang.item.never
|
|
nesting:
|
|
label: golem15.sitemap::lang.item.allow_nested_items
|
|
comment: golem15.sitemap::lang.item.allow_nested_items_comment
|
|
type: checkbox
|
|
default: true
|
|
span: full
|