Bug #89211
closedTCAdefaults.pages.hidden = 0 not working in TYPO3 9.5.9 and 10.1.0-dev using page tree drag & drop
100%
Description
As the title already says: the page TSconfig
TCAdefaults.pages.hidden = 0
does not work in TYPO3 9.5.9 and 10.1.0-dev.
(It works fine in TYPO3 8.7.27.)
Confirmed by Simon Gilli via Slack.
Files
Updated by Simon Gilli about 5 years ago
- Category changed from TypoScript to Backend User Interface
- Status changed from New to Accepted
- Is Regression set to Yes
Updated by Christian Eßl about 5 years ago
- Related to Bug #89195: TCAdefaults.pages.hidden = 0 has no effect or is misleadingly documented added
Updated by Christian Eßl about 5 years ago
- Putting TCAdefaults.pages.hidden = 0 in the User TSConfig
- Putting TCAdefaults.pages.hidden = 0 in the Page TSConfig
Both times, a newly created page had hidden = 0 set as default value. (as expectd)
Did you doublecheck a few things:- Info Module -> Page TSConfig
You can doublecheck here, that your Page TSConfig is correctly applied.
- There are several ways to create a new page. The Button "Create a new record" at the top of the list module or by clicking one of the "Create a new page after this page" in the list of pages. I you use the latter, to create a new page right after an existing page, some settings of the existing page (like page type or hidden status) will be applied to the newly created page. In this case, the TCAdefaults settings would be ignored. (which I think is correct)
Updated by Gone With the Wind about 5 years ago
@Christian Eßl: Did you have a chance to do the tests in 9.5, too?
(PageTS config checked [TYPO3 9.5], see screenshot)
Updated by Simon Gilli about 5 years ago
- File Screenshot_2019-09-24.png Screenshot_2019-09-24.png added
- Subject changed from TCAdefaults.pages.hidden = 0 not working in TYPO3 9.5.9 and 10.1.0-dev to TCAdefaults.pages.hidden = 0 not working in TYPO3 9.5.9 and 10.1.0-dev using page tree drag & drop
- Priority changed from Should have to Must have
Only using the drag & drop functionally of the page tree is affected
Updated by Simon Gilli about 5 years ago
- File deleted (
Screenshot_2019-09-24.png)
Updated by Simon Gilli about 5 years ago
- Related to Bug #88918: Create page via drag'n'drop does not respect TCAdefaults in pagets [from #25021] added
Updated by Simon Gilli about 5 years ago
- Related to Bug #82548: TCAdefaults not work on 2 positions added
Updated by Simon Gilli about 5 years ago
- Category changed from Backend User Interface to Pagetree
Updated by Gone With the Wind about 5 years ago
The user TsConfig docu has a block with some information about this topic:
https://docs.typo3.org/m/typo3/reference-tsconfig/master/en-us/UserTsconfig/TcaDefaults.html
Excerpt:
```
This example will not work when creating the page from the context menu since this is triggered by the values listed in the ctrl section of typo3/sysext/core/Configuration/TCA/pages.php:
'ctrl' => [
'useColumnsForDefaultValues' => 'doktype,fe_group,hidden',
...
]
```
I assume this is important for this issue? Or does this really only apply to user tsconfig settings, since this information is only available that very part of the documentation?
Updated by Benjamin Robinson about 5 years ago
- Related to Bug #89685: TCAdefaults.pages.backend_layout not working for pages created via drag and drop added
Updated by Robin Louis van Komen almost 5 years ago
We have the exact same issue.
We just installed a completely clean installation of TYPO3 v9.5.14 via. Composer
It works fine if set in userTsConfig, but pageTsConfig is not respected when creating a new page with drag and drop, which works as expected in TYPO3 v8.x.x
We also tried a clean installation of TYPO3 v10.2.0 via. Composer, but with the exact same outcome as with v9.
We found that in v8.x.x the TCAdefaults seem to come from the following function: createNode in file: sysext/backend/Classes/Tree/Pagetree/Commands.php
But this file does not exists in v9+
Does anyone got any idea?
Updated by Claus Harup almost 5 years ago
I have the same issue - how can we push this up the priority list?
Updated by Simon Gilli almost 5 years ago
- Category changed from Pagetree to DataHandler aka TCEmain
After some more investigation I found the corresponding lines to this bug:
Here the user settings are applied only in contrast to the behavior of the FormEngine which can be found here:
So we have currently a big difference if records are created through the FormEngine or directly by the DataHandler.
Updated by Robin Louis van Komen almost 5 years ago
Simon Gilli wrote:
After some more investigation I found the corresponding lines to this bug:
Here the user settings are applied only in contrast to the behavior of the FormEngine which can be found here:
So we have currently a big difference if records are created through the FormEngine or directly by the DataHandler.
Yes exactly! The code that handles the pageTS should be done in DataHandler.php, to ensure the same behaviour regardless og the point of entry.
Updated by Robin Louis van Komen almost 5 years ago
I just tested in TYPO3 v8.7.31, and it seems like in this version userTSconfig TCAdefaults does not work when creating pages with drag and drop. But pageTSconfig does. This might be the cause of the confusion.
Updated by Simon Gilli almost 5 years ago
- Related to Bug #87089: TYPO3 Pagetree: New pages must respect TCAdefaults.pages.hidden = 0 and other properties added
Updated by Gerrit Code Review almost 5 years ago
- Status changed from Accepted to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/63406
Updated by Gerrit Code Review almost 5 years ago
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/63406
Updated by Gerrit Code Review almost 5 years ago
Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/63406
Updated by Gerrit Code Review almost 5 years ago
Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/63406
Updated by Gerrit Code Review over 4 years ago
Patch set 5 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/63406
Updated by Benni Mack over 4 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset a6a7a5b9181dc82926495752f58ff5dd7789b11c.
Updated by Gerrit Code Review over 4 years ago
- Status changed from Closed to Under Review
Patch set 1 for branch 9.5 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/64278
Updated by Gerrit Code Review over 4 years ago
Patch set 2 for branch 9.5 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/64278
Updated by Benni Mack over 4 years ago
- Status changed from Under Review to Resolved
Applied in changeset bbc6800b382ef90cbe2a02ec039be23529de468c.
Updated by Benni Mack over 3 years ago
- Related to Bug #92146: Page drag and drop doesn't apply TCAdefaults for MM fields added
Updated by Benni Mack over 3 years ago
- Related to Bug #77847: TCAdefaults imagecols doesn't work in translated record added