Issue Feature Closed

#16251Disable "versioning"-menuitem via contextMenu.[key].disableItems in User TSconfig

Karl-Ernst Kiel 06/16/06, 16:46 updated 10/02/18, 12:39

Description

It would be nice to disable the “versioning” contextmenu-Item in a User TSconfig e.g.:
options.contextMenu.pageTree.disableItems = versioning,view,edit,hide,[…]
(see: doc_core_tsconfig 1.2 ->OPTIONS , “versioning” is not (yet?) in the list)

This could be easily done by changing a line in function main in class tx_version_cm1(line 72 in typo3/sysext/version/class.tx_version_cm1.php) from

if (!$TCA[$table] || !$TCA[$table][‘ctrl’][‘versioningWS’]) return $menuItems;

to

if (in_array(‘versioning’,$backRef->disabledItems) || !$TCA[$table] || !$TCA[$table][‘ctrl’][‘versioningWS’]) return $menuItems;

(issue imported from #M3687)

Reviews 0

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