Issue Bug Closed

#96161TCAdefaults not working

Udo Klingner 11/30/21, 12:48 updated 10/06/26, 17:01

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 :(

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.

Files 8

History 9

  1. Oliver Bartsch commented and changed status New Needs Feedback <span data-processor="relativetime" data-value="2021-12-01T11:42:29+00:00" > 12/01/21, 11:42 </span>

    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. Udo Klingner commented and changed attached tcadefaultserror.PNG <span data-processor="relativetime" data-value="2021-12-01T15:53:10+00:00" > 12/01/21, 15:53 </span>

    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:
    tcadefaultserror.PNG

    i use TYPO3 11.5.3

  3. Oliver Bartsch commented <span data-processor="relativetime" data-value="2021-12-01T22:54:25+00:00" > 12/01/21, 22:54 </span>

    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. Riccardo De Contardi commented <span data-processor="relativetime" data-value="2021-12-03T22:00:33+00:00" > 12/03/21, 22:00 </span>

    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. Udo Klingner commented <span data-processor="relativetime" data-value="2021-12-17T09:58:11+00:00" > 12/17/21, 09:58 </span>

    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)

  6. Riccardo De Contardi commented and changed attached Schermata 2022-07-09 alle 17.49.28.png attached Schermata 2022-07-09 alle 17.56.00.png attached Schermata 2022-07-09 alle 17.57.40.png attached Schermata 2022-07-09 alle 18.00.55.png attached Schermata 2022-07-09 alle 18.02.45.png attached Schermata 2022-07-09 alle 18.08.40.png attached Schermata 2022-07-09 alle 18.09.44.png <span data-processor="relativetime" data-value="2022-07-09T16:10:51+00:00" > 07/09/22, 16:10 </span>

    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:

    Schermata%202022-07-09%20alle%2017.49.28.png

    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

    Schermata%202022-07-09%20alle%2017.56.00.png

    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:

    Schermata%202022-07-09%20alle%2017.57.40.png

    and choosing “Page (select position)”

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

    Schermata%202022-07-09%20alle%2018.00.55.png

    RESULT: the page is hidden

    Schermata%202022-07-09%20alle%2018.02.45.png

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

    Schermata%202022-07-09%20alle%2018.08.40.png

    RESULT: The page is not hidden!

    Schermata%202022-07-09%20alle%2018.09.44.png

    Am I doing something wrong?

  7. Riccardo De Contardi commented <span data-processor="relativetime" data-value="2026-07-29T17:20:18+00:00" > 07/29/26, 17:20 </span>

    As far as I can see the issue I experienced on my comment n°7

    - is still present on TYPO3 13.4.33
    - is solved on TYPO3 14.3.5 and 15.0.0-dev (latest main)

  8. Georg Ringer commented and changed status Needs Feedback Closed <span data-processor="relativetime" data-value="2026-10-06T17:01:33+00:00" > 10/06/26, 17:01 </span>

    if it is working on 14+, I am closing this issue. if this is still failing for someone on 14+, please provide a new issue including information how to reproduce it.