Bug #103627
closedoptions.hideModules does not seem to work
100%
Description
I am working on the Documentation of https://github.com/TYPO3-Documentation/Changelog-To-Doc/issues/3
I tried the migration from
- before
mod.web_info.menu.function.TYPO3\CMS\Info\Controller\TranslationStatusController = 0
- after
options.hideModules := addToList(web_info_translations)
In several projects but could not get it working.
Also `options.hideModules := addToList(web_typoscript_analyzer)` does not seem to work either.
Updated by Stefan Bürk 7 months ago
You missed to descriped where you added the TSConfig setting. I assume
you tried to use PageTSConfig, but the point is that it must be user
based `UserTSConfig`.
You could add it for all users within a extension (sitepackage)ext_localconf.php
using
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addUserTSConfig(<<<EOF
options.hideModules := addToList(web_typoscript_analyzer)
EOF
);
or setting it as TSConfig setting for a backend group ( be_groups
) or
backend user ( be_users
)
options.hideModules := addToList(web_typoscript_analyzer)
I also flushed all caches, so not sure if it works without it. However,
using one of these variants worked for me (if the user is in the be group
or the user having that snippet if not all users have been disabled).
Updated by Lina Wolf 7 months ago
You are right Stefan, it works when you add it to the user TSconfig.
The migration path is counter-intuitive then as the code that was replaced used to be situated in the page TSconfig. Now the question is weather the Documentation or the implementation is correct here. Let us wait for what oli says.
Related:
https://github.com/TYPO3-Documentation/TYPO3CMS-Reference-TSconfig/pull/463
https://github.com/TYPO3-Documentation/TYPO3CMS-Reference-TSconfig/pull/462
Updated by Gerrit Code Review 7 months ago
- Status changed from New to Under Review
Patch set 1 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/83812
Updated by Gerrit Code Review 7 months ago
Patch set 2 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/83812
Updated by Gerrit Code Review 7 months ago
Patch set 1 for branch 12.4 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/83852
Updated by Oliver Bartsch 7 months ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset e15c44ee659f0491253a4be2b5c31b02069ececc.