Files
sm-sitemap-plugin/models/settings/fields.yaml
Jakub Zych a10ce2d9de feat: Google News sitemap
- sitemap-news.xml lists the articles (content kind article) first
  published in the last two days, newest first, at most 1000, with the
  publication name (news_publication, else app.name), the language of the
  locale, the publication date and the title
- news_sources narrows it to type:<key> and category:<key>:<id> values;
  the Images and News tab lists the values to use in a partial
- the index lists the file while news_enabled is on; otherwise it is 404
2026-11-04 12:22:40 +01:00

102 lines
3.3 KiB
YAML

# ===================================
# Form Field Definitions
# ===================================
#
# Sitemap settings (UI-SPEC C26): Files, Content types (one block per
# signpost content type, added by the plugin's form extension after Files)
# and Additional addresses. A repeater row takes no date picker, so an
# additional address's lastmod is a text field read as YYYY-MM-DD.
fields:
site_url:
label: golem15.sitemap::lang.settings.site_url
comment: golem15.sitemap::lang.settings.site_url_comment
type: text
span: left
tab: golem15.sitemap::lang.settings.tab_files
file_size:
label: golem15.sitemap::lang.settings.file_size
comment: golem15.sitemap::lang.settings.file_size_comment
type: number
default: 1000
span: right
tab: golem15.sitemap::lang.settings.tab_files
_files:
type: partial
path: sitemap_files
span: full
tab: golem15.sitemap::lang.settings.tab_files
extra_urls:
label: golem15.sitemap::lang.settings.extra_urls
comment: golem15.sitemap::lang.settings.extra_urls_comment
type: repeater
prompt: golem15.sitemap::lang.settings.extra_urls_add
titleFrom: url
span: full
tab: golem15.sitemap::lang.settings.tab_extra
form:
fields:
url:
label: golem15.sitemap::lang.settings.extra_url
type: text
span: left
lastmod:
label: golem15.sitemap::lang.settings.extra_url_lastmod
comment: golem15.sitemap::lang.settings.extra_url_lastmod_comment
type: text
span: right
images_enabled:
label: golem15.sitemap::lang.settings.images_enabled
comment: golem15.sitemap::lang.settings.images_enabled_comment
type: switch
default: true
span: full
tab: golem15.sitemap::lang.settings.tab_media
news_enabled:
label: golem15.sitemap::lang.settings.news_enabled
comment: golem15.sitemap::lang.settings.news_enabled_comment
type: switch
default: false
span: full
tab: golem15.sitemap::lang.settings.tab_media
news_publication:
label: golem15.sitemap::lang.settings.news_publication
comment: golem15.sitemap::lang.settings.news_publication_comment
type: text
span: left
tab: golem15.sitemap::lang.settings.tab_media
trigger:
action: hide
field: news_enabled
condition: unchecked
# Taglist options are a fixed list, so the article types and their
# categories are listed by the news_sources partial below instead.
news_sources:
label: golem15.sitemap::lang.settings.news_sources
comment: golem15.sitemap::lang.settings.news_sources_comment
type: taglist
mode: array
span: right
tab: golem15.sitemap::lang.settings.tab_media
trigger:
action: hide
field: news_enabled
condition: unchecked
_news_sources:
type: partial
path: news_sources
span: full
tab: golem15.sitemap::lang.settings.tab_media
trigger:
action: hide
field: news_enabled
condition: unchecked