Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TASK] Document proper file_list.primaryActions TS settings #542

Merged
merged 5 commits into from
Aug 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
40 changes: 34 additions & 6 deletions Documentation/UserTsconfig/Options.rst
Original file line number Diff line number Diff line change
Expand Up @@ -535,18 +535,46 @@ file_list.primaryActions
:type: string
:Default: :typoscript:`view,metadata,translations,delete`

Option to add more primary actions to the list view.
Option to add more primary actions to the list view,
which are otherwise only accessible through the "..." menu in the file list
module.

The list of actions to be displayed can be given in the TSConfig of
the backend user. The actions that can be added are
the backend user. The actions that can be set are

* :typoscript:`view`
* :typoscript:`metadata`
* :typoscript:`delete`
* :typoscript:`copy`
* :typoscript:`cut`
* :typoscript:`delete`
* :typoscript:`download`
* :typoscript:`edit`
* :typoscript:`info`
* :typoscript:`metadata`
* :typoscript:`paste`
* :typoscript:`rename`
* :typoscript:`replace`
* :typoscript:`translations` (always active)
* :typoscript:`updateOnlineMedia`
* :typoscript:`upload`
* :typoscript:`view`

Example:

:typoscript:`translations` is always active.
.. code-block:: tsconfig
:caption: EXT:site_package/Configuration/user.tsconfig

# This will add "copy", "cut" and "replace" buttons in addition to the three default
# buttons. "translations" can be omitted, as it will be added by default,
# if a TYPO3 site is set up multilingual.
options.file_list.primaryActions = view,metadata,delete,copy,cut,replace

.. figure:: /Images/ManualScreenshots/List/FileListPrimaryActions.png
:alt: Show primary action with additional copy, cut and replace buttons
:class: with-shadow

See option `primaryActions` with three default buttons and the three
additional buttons "copy", "cut" and "replace". As there is no TYPO3
site set up multilingual the button "translations" is not rendered in
that TYPO3 environment.

.. index:: File list; Thumbnails height
.. _useroptions-file_list-thumbnail-height:
Expand Down
Loading