Project

General

Profile

Actions

Bug #96161

open

TCAdefaults not working

Added by Udo Klingner almost 3 years ago. Updated over 2 years ago.

Status:
Needs Feedback
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2021-11-30
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
11
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

If i set defaults like:

TCAdefaults.pages.hidden = 0

or:

TCAdefaults.pages.backend_layout = pagets__hidden

they don't work. I must manually set this options in the backend...

In TYPO3 v10 works fine, in TYPO3 v11 not :(


Files

tcadefaultserror.PNG (31.2 KB) tcadefaultserror.PNG Udo Klingner, 2021-12-01 15:52
Schermata 2022-07-09 alle 17.49.28.png (53.8 KB) Schermata 2022-07-09 alle 17.49.28.png Riccardo De Contardi, 2022-07-09 15:49
Schermata 2022-07-09 alle 17.56.00.png (60.9 KB) Schermata 2022-07-09 alle 17.56.00.png Riccardo De Contardi, 2022-07-09 15:56
Schermata 2022-07-09 alle 17.57.40.png (62.2 KB) Schermata 2022-07-09 alle 17.57.40.png Riccardo De Contardi, 2022-07-09 15:58
Schermata 2022-07-09 alle 18.00.55.png (39.2 KB) Schermata 2022-07-09 alle 18.00.55.png Riccardo De Contardi, 2022-07-09 16:01
Schermata 2022-07-09 alle 18.02.45.png (34.7 KB) Schermata 2022-07-09 alle 18.02.45.png Riccardo De Contardi, 2022-07-09 16:02
Schermata 2022-07-09 alle 18.08.40.png (61.3 KB) Schermata 2022-07-09 alle 18.08.40.png Riccardo De Contardi, 2022-07-09 16:09
Schermata 2022-07-09 alle 18.09.44.png (40.7 KB) Schermata 2022-07-09 alle 18.09.44.png Riccardo De Contardi, 2022-07-09 16:09

Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #93793: Page cannot be hidden by default if it is not created by drag'n'dropClosed2021-03-22

Actions
Actions #1

Updated by Oliver Bartsch almost 3 years ago

  • Status changed from New to Needs Feedback

Hi, thanks for your report. Unfortunately, I was not able to reproduce. I used following TSconfig:

TCAdefaults {
  pages {
    hidden = 0
    categories = 2,4,9
    backend_layout = pagets__Default
    TSconfig = mytest.123 = 12
  }
}

And added a new page using FormEngine (e.g. in List Module "New page") as well as direct (DataHandler) by dragging and dropping a new page in the page tree. In all those cases, the default values were applied properly.

Could you please describe which way does not work for you (maybe as a step by step guide)? Where do you place your TSconfig?

Actions #2

Updated by Udo Klingner almost 3 years ago

Oliver Bartsch wrote in #note-1:

Hi, thanks for your report. Unfortunately, I was not able to reproduce. I used following TSconfig:

[...]

And added a new page using FormEngine (e.g. in List Module "New page") as well as direct (DataHandler) by dragging and dropping a new page in the page tree. In all those cases, the default values were applied properly.

Could you please describe which way does not work for you (maybe as a step by step guide)? Where do you place your TSconfig?

No, it doesn't work. I drag'n drop pages or sysdirs in the tree-view and it doesn't look like the configuration:

i use TYPO3 11.5.3

Actions #3

Updated by Oliver Bartsch almost 3 years ago

Hi, thanks for the quick reply.

I just checked this again with exactly the same settings from your screenshot, but still can't reproduce this.

Did you already check, with all 3rd party extensions deactivated?

Actions #4

Updated by Riccardo De Contardi almost 3 years ago

I guess this is a duplicate of #93793 please look at the documentation "Important" note reported there:

https://docs.typo3.org/m/typo3/reference-tsconfig/10.4/en-us/UserTsconfig/TcaDefaults.html

Actions #5

Updated by Riccardo De Contardi almost 3 years ago

  • Related to Bug #93793: Page cannot be hidden by default if it is not created by drag'n'drop added
Actions #6

Updated by Udo Klingner almost 3 years ago

Riccardo De Contardi wrote in #note-4:

I guess this is a duplicate of #93793 please look at the documentation "Important" note reported there:

https://docs.typo3.org/m/typo3/reference-tsconfig/10.4/en-us/UserTsconfig/TcaDefaults.html

this tip did not help me, the bug is still there (TYPO3 v11.5.4, PHP v8.0)

Updated by Riccardo De Contardi over 2 years ago

There is actually something that escapes me on the behavior of TCAdefaults.pages.hidden - I performed the following test with 11.5.12, please tell me if there is something I am missing:

  1. Starting Point

1) I start with a basic tree with just the home page:

2) Now I set in Page TSConfig (Home):

TCAdefaults.pages.hidden = 1

Thus, I expect that if I create a page (not with drag and drop) it should be hidden by default, right?)

3) I create two subpages, one is hidden and one is not

4) For the next steps, I go to Home page > LIST VIEW and I will create some new pages, using the button on the top:

and choosing "Page (select position)"

4.1) Attempt 1: create a page after the hidden one

RESULT: the page is hidden

4.1) Attempt 2: create a page after the visible one

RESULT: The page is not hidden!

Am I doing something wrong?

Actions

Also available in: Atom PDF