Bug #96161
openTCAdefaults not working
Added by Udo Klingner almost 3 years ago. Updated over 2 years ago.
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
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 |
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?
Updated by Udo Klingner almost 3 years 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 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?
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
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
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
- File Schermata 2022-07-09 alle 17.49.28.png Schermata 2022-07-09 alle 17.49.28.png added
- File Schermata 2022-07-09 alle 17.56.00.png Schermata 2022-07-09 alle 17.56.00.png added
- File Schermata 2022-07-09 alle 17.57.40.png Schermata 2022-07-09 alle 17.57.40.png added
- File Schermata 2022-07-09 alle 18.00.55.png Schermata 2022-07-09 alle 18.00.55.png added
- File Schermata 2022-07-09 alle 18.02.45.png Schermata 2022-07-09 alle 18.02.45.png added
- File Schermata 2022-07-09 alle 18.08.40.png Schermata 2022-07-09 alle 18.08.40.png added
- File Schermata 2022-07-09 alle 18.09.44.png Schermata 2022-07-09 alle 18.09.44.png added
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:
- 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?