Project

General

Profile

Actions

Feature #16251

closed

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

Added by Karl-Ernst Kiel over 18 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
Workspaces
Target version:
-
Start date:
2006-06-16
Due date:
% Done:

0%

Estimated time:
PHP Version:
Tags:
Complexity:
Sprint Focus:

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)


Files

bug_3687_versioning.diff (626 Bytes) bug_3687_versioning.diff Administrator Admin, 2006-12-05 22:32
bug_3687_moreoptions.diff (562 Bytes) bug_3687_moreoptions.diff Administrator Admin, 2006-12-05 22:39
patch_3687_3.diff (1.36 KB) patch_3687_3.diff Administrator Admin, 2008-09-14 21:54
Actions

Also available in: Atom PDF