Issue Bug Closed

#104630Wrong documentation for options.file_list.primaryActions

jku jku 08/15/24, 09:27 updated 08/15/24, 15:10

Description

There is a new configuration option in User TsConfig to configure shown buttons at module file_list since v12.0.

The options listed in changlog entry [1] and at the documentation [2] are wrong.

options.file_list.primaryActions

*Wrong:*
view,metadata,translations,copy,cut,delete

*That would be right:*
view,metadata,copy,cut,delete,replace,rename,download,edit,info,upload

[1] https://docs.typo3.org/c/typo3/cms-core/main/en-us/Changelog/12.0/Feature-97821-OptionToConfigurePrimaryActionsInFileList.html
2 https://docs.typo3.org/m/typo3/reference-tsconfig/main/en-us/UserTsconfig/Options.html#file-list-primaryactions

Reviews 0

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

History 3

  1. jku jku changed description 08/15/24, 09:31

  2. Garvin Hicking commented and changed assigned to Garvin Hicking 08/15/24, 10:52

    Thank you! I think the changleog entry is correct, as it only gives examples. As for the docs, that list indeed seems incomplete – I will investigate!

  3. Garvin Hicking commented and changed status New Closed 08/15/24, 15:10

    The defaults are listed in https://github.com/TYPO3/typo3/blob/main/typo3/sysext/filelist/Classes/FileList.php#L873 actually:

            $primaryActions =  ['view', 'metadata', 'translations', 'delete'];

    The list of possible actions is this one currently:

    edit
    metadata
    translations
    view
    replace
    rename
    download
    upload
    info
    delete
    copy
    cut
    paste
    updateOnlineMedia

    I’ve created a PR to update this in the docs: https://github.com/TYPO3-Documentation/TYPO3CMS-Reference-TSconfig/pull/542

    Closing this issue, please let me know if I misunderstood anything. Thank you for bringing this up!