Issue Bug Closed

#100981traverse(site('configuration') doesn't work in content edit view

Jessica Jagodzinski 06/09/23, 07:18 updated 10/06/26, 16:54

Description

It seems that the site configuration is not available in the content editing view for traverse conditions.

To reproduce the issue, please follow these steps:

In the Site Configuration, add the following configuration:

settings:
  showHeader: 1

In the TSconfig, add the following condition:

[{$showHeader} != 1]
  TCEFORM.tt_content.CType.removeItems := addToList(header)
[global]

Result: The Header element is displayed in the new Content Wizard. Even when creating a new element, Header remains available in the CType selection.

However, this approach leads to excessive log entries. The recommendation is to use traverse.

Now, instead of the above condition in TsConfig, use the following condition:

[traverse(site('configuration'), 'settings/showHeader') != 1]
  TCEFORM.tt_content.CType.removeItems := addToList(header)
[global]

The Header element will still be displayed in the new Content Wizard, but it will no longer appear in the CType selection when creating or editing an element.

In this test, the value in the Site Configuration does not affect the behavior, as it seems that Site Configuration is not available in the Content Editing for traverse.

(If you change the value in the Site Configuration to 0, the Header element will not be displayed in either case.)

I have tested the same scenario with TYPO3 12, where this behavior does not occur.

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.

History 8

  1. Georg Ringer commented and changed status New Closed <span data-processor="relativetime" data-value="2026-10-06T16:54:27+00:00" > 10/06/26, 16:54 </span>

    could not reproduce that in v15/v14, closing issue