Bug #96161
TCAdefaults not working
0%
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
Related issues
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?
Updated by Udo Klingner 6 months ago
- File tcadefaultserror.PNG tcadefaultserror.PNG added
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
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?
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
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
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)