Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ tt_content.menu_sitemap {
10 = headless-files
10 {
references.fieldName = media
as = images
as = media
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ tt_content.menu_sitemap_pages {
10 = headless-files
10 {
references.fieldName = media
as = images
as = media
}
}
}
Expand Down
4 changes: 4 additions & 0 deletions Configuration/TypoScript/Legacy/MenuSitemap.typoscript
Original file line number Diff line number Diff line change
@@ -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
}
7 changes: 4 additions & 3 deletions Documentation/Reference/ContentElements.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
Expand All @@ -123,4 +123,5 @@ Define `tt_content.<ctype>` 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`.
3 changes: 3 additions & 0 deletions UPGRADE.md
Original file line number Diff line number Diff line change
Expand Up @@ -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/`.
Expand Down
Loading