Bug #88507

TypoScript Object Browser does not respect hidden flag in TS-templates

Added by Erik Sokoll 9 months ago. Updated 7 months ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
TypoScript
Target version:
Start date:
2019-06-06
Due date:
% Done:

0%

TYPO3 Version:
9
PHP Version:
7.2
Tags:
CodingNight
Complexity:
Is Regression:
Sprint Focus:

Description

In case I have two TypoScript templates on my root page and I hide the first one, the TypoScript Object Browser shows values from the first (hidden) one and not the second, which styles the page.
With this bug the TSOB might show complete wrong settings.

Example:

Template 1 (hidden)
page.10 = TEXT
page.10.value = foo
Template 2
page.10 = TEXT
page.10.value = bar

The TSOB will display foo, the frontend shows bar

In TYPO3 version 8 everything works fine like expected.

History

#1 Updated by Stefan Froemken 9 months ago

  • Category set to TypoScript
  • Target version set to next-patchlevel
  • PHP Version set to 7.2

I can confirm that issue.
Seems to be a problem with Doctrine Restrictions of TYPO3 BE where hidden elements are allowed by default.

#2 Updated by Erik Sokoll 8 months ago

Some additional information might be helpful:

While using the TSOB, the root page (containing the templates) will show a template selector dropdown.
But any other subpage will show "foo" in the TSOB, although "bar" is the right value.

For friends of copy&paste I'll write the TypoScript again:

Template 1 (hidden)

page = PAGE
page.10 = TEXT
page.10.value = foo

Template 2

page = PAGE
page.10 = TEXT
page.10.value = bar

Moreover you might set the root template values on the "Optios" tab (Clear Constants/Setup and check Rootlevel).

Switching the order (sorting) of the templates, with Template 2 on top and Template 1 below, will show the right values in the TSOB.

#3 Updated by Susanne Moog 7 months ago

  • Tags set to CodingNight

Also available in: Atom PDF