Issue Feature Closed

#76910PageLayoutView - Allow to disable copy- / translate- buttons

Philipp Schlosser 07/01/16, 15:26 updated 05/07/19, 12:25

Description

Could there be an option to configure visibility of the “translate” and “copy” buttons (see Screenshot – I use TYPO3 7.6.9).

In \TYPO3\CMS\Backend\View\PageLayoutView following data-attributes were set to the button .t3js-localize in Line 1828 and 1829 :
‘ data-allow-copy=”’ . (int)$allowCopy . ‘“‘
‘ data-allow-translate=”’ . (int)$allowTranslate . ‘”’

if you set $allowCopy or $allowTranslate manually to 0 the button for copying or translating your content will disappear, but you have no opportunity to do this by a configuration or by a hook.

Reviews 2