Bug #96161

TCAdefaults not working

Added by Udo Klingner 6 months ago. Updated 5 months 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

Related issues

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

Actions
#1

Updated by Oliver Bartsch 6 months 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?

#2

Updated by Udo Klingner 6 months 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

#3

Updated by Oliver Bartsch 6 months 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?

#4

Updated by Riccardo De Contardi 6 months 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

#5

Updated by Riccardo De Contardi 6 months ago

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

Updated by Udo Klingner 5 months 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)

Also available in: Atom PDF