Project

General

Profile

Actions

Feature #25765

closed

Add hook when choosing icon overlays

Added by Francois Suter about 13 years ago. Updated almost 13 years ago.

Status:
Closed
Priority:
Should have
Category:
Backend User Interface
Target version:
Start date:
2011-04-05
Due date:
% Done:

100%

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

Description

Method t3lib_iconWorks::mapRecordOverlayToSpriteIconName() is used to find out which overlay applies to a given record icon. However the overlay state may be influenced by "external" conditions and there's currently no hook to override the overlay state.

An example of this is versioning: when a record is deleted in a workspace, its "deleted" field is not set to 1, but its "t3ver_state" is set to 2. So it should be possible for the version sysext to influence the icon overlay choice.

I propose to add a hook in t3lib_iconWorks::mapRecordOverlayToSpriteIconName() to allow for this kind of modification. As discussed in the v4 list, it is acceptable to introduce hooks into 4.5 too, as long as they are used by system extensions.


Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Bug #24641: icon deleted page into workspaceClosedOliver Hader2011-01-18

Actions
Related to TYPO3 Core - Bug #25215: Deleted overlay type is missing from overlay priorities listClosedFrancois Suter2011-03-01

Actions
Actions

Also available in: Atom PDF