Project

General

Profile

Actions

Bug #103627

closed

options.hideModules does not seem to work

Added by Lina Wolf 7 months ago. Updated 5 months ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Backend API
Target version:
-
Start date:
2024-04-14
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
12
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

I am working on the Documentation of https://github.com/TYPO3-Documentation/Changelog-To-Doc/issues/3

I tried the migration from

  1. before
    mod.web_info.menu.function.TYPO3\CMS\Info\Controller\TranslationStatusController = 0
  1. 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.

Actions #1

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).

Actions #2

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

Actions #3

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

Actions #4

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

Actions #5

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

Actions #6

Updated by Oliver Bartsch 7 months ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #7

Updated by Benni Mack 5 months ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF