Issue Bug Closed

#103627options.hideModules does not seem to work

Lina Wolf 04/14/24, 12:31 updated 07/09/24, 15:38

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.

Reviews 2

History 47

  1. Stefan Bürk commented 04/14/24, 16:35

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

  2. Lina Wolf commented 04/14/24, 16:45

    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

  3. Gerrit Code Review pushed patch set 1 for main to change 83812 status New Under Review 04/15/24, 21:49

  4. Gerrit Code Review pushed patch set 2 for main to change 83812 04/16/24, 04:03

  5. Gerrit Code Review pushed patch set 1 for 12.4 to change 83852 04/16/24, 05:21

  6. Oliver Bartsch commented and changed status Under Review Resolved done 0 % 100 % 04/16/24, 05:25

    Applied in changeset commit:e15c44ee659f0491253a4be2b5c31b02069ececc.

  7. Benni Mack changed status Resolved Closed 07/09/24, 15:38