diff --git a/Configuration/TypoScript/ContentElement/MenuSitemap.typoscript b/Configuration/TypoScript/ContentElement/MenuSitemap.typoscript index 6d2280ad..6564e551 100755 --- a/Configuration/TypoScript/ContentElement/MenuSitemap.typoscript +++ b/Configuration/TypoScript/ContentElement/MenuSitemap.typoscript @@ -16,7 +16,7 @@ tt_content.menu_sitemap { 10 = headless-files 10 { references.fieldName = media - as = images + as = media } } } diff --git a/Configuration/TypoScript/ContentElement/MenuSitemapPages.typoscript b/Configuration/TypoScript/ContentElement/MenuSitemapPages.typoscript index b5d8cb2e..a5c18e7e 100755 --- a/Configuration/TypoScript/ContentElement/MenuSitemapPages.typoscript +++ b/Configuration/TypoScript/ContentElement/MenuSitemapPages.typoscript @@ -18,7 +18,7 @@ tt_content.menu_sitemap_pages { 10 = headless-files 10 { references.fieldName = media - as = images + as = media } } } diff --git a/Configuration/TypoScript/Legacy/MenuSitemap.typoscript b/Configuration/TypoScript/Legacy/MenuSitemap.typoscript new file mode 100644 index 00000000..d4ec7ace --- /dev/null +++ b/Configuration/TypoScript/Legacy/MenuSitemap.typoscript @@ -0,0 +1,4 @@ +tt_content { + menu_sitemap.fields.content.fields.menu.dataProcessing.10.dataProcessing.10.as = images + menu_sitemap_pages.fields.content.fields.menu.dataProcessing.10.dataProcessing.10.as = images +} diff --git a/Documentation/Reference/ContentElements.rst b/Documentation/Reference/ContentElements.rst index f036acb9..f509fc3f 100644 --- a/Documentation/Reference/ContentElements.rst +++ b/Documentation/Reference/ContentElements.rst @@ -102,10 +102,10 @@ record under `data`, and file fields (`media`, `images`) hold `menu_related_pages` header block, `menu`: pages sharing keywords with `media`, `appendData = 1`. `menu_sitemap` header block, `menu`: page tree of the current - site, seven levels, `images` per item, + site, seven levels, `media` per item, `appendData = 1`. `menu_sitemap_pages` header block, `menu`: page tree below the selected - pages, seven levels, `images` per item, + pages, seven levels, `media` per item, `appendData = 1`. `felogin_login` header block, `data`: the login JSON, see :ref:`integrations-felogin`. @@ -123,4 +123,5 @@ Define `tt_content.` as shown in :ref:`developer-custom-content`. The legacy set adds a `categories` string to every element after `appearance`; see :ref:`configuration-categories` for re-adding it on the -default set. +default set. It also keeps the 4.x key `images` instead of `media` on the +items of `menu_sitemap` and `menu_sitemap_pages`. diff --git a/UPGRADE.md b/UPGRADE.md index 6906fb7d..86035b63 100644 --- a/UPGRADE.md +++ b/UPGRADE.md @@ -59,6 +59,9 @@ selector items map to in 5.x: * The trimmed response ships no `meta` (use `seo`) and no `categories` page fields; `lib.contentElement` defines no `categories` field. +* The trimmed response returns the page files of `menu_sitemap` and + `menu_sitemap_pages` items under `media` (was `images`), like all other menu + content elements. The legacy response keeps `images`. * Files moved — adjust direct `@import`s: `Page/Meta.typoscript`, `Page/Categories.typoscript` and `Configuration/PageConfiguration.typoscript` now live under `TypoScript/Legacy/`.