Skip to content

Commit

Permalink
Add image for file_list.primaryActions
Browse files Browse the repository at this point in the history
  • Loading branch information
froemken committed Aug 15, 2024
1 parent 1e5111c commit 928b5d3
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 21 additions & 1 deletion Documentation/UserTsconfig/Options.rst
Original file line number Diff line number Diff line change
Expand Up @@ -536,7 +536,9 @@ file_list.primaryActions
:Default: :typoscript:`view,metadata,translations,delete`

Option to add more primary actions to the list view,
which are otherwise only accessible through the "..." menu.
which are otherwise only accessible through the "..." menu in 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 set are

Expand All @@ -555,6 +557,24 @@ file_list.primaryActions
* :typoscript:`upload`
* :typoscript:`view`

Example:

.. code-block:: tsconfig
:caption: EXT:site_package/Configuration/user.tsconfig
# This will add "copy", "cut" and "replace" buttons to the three default
# values. "translations" can be omit, 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

0 comments on commit 928b5d3

Please sign in to comment.