Skip to content
This repository has been archived by the owner on Nov 19, 2024. It is now read-only.

[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 2 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 file list
froemken marked this conversation as resolved.
Show resolved Hide resolved
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 to the three default
froemken marked this conversation as resolved.
Show resolved Hide resolved
# values. "translations" can be omit, as it will be added by default,
froemken marked this conversation as resolved.
Show resolved Hide resolved
# 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