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 #1

Updated by Mr. Hudson about 13 years ago

Patch set 1 of change I349012e402ab349ad810c57e46b0a7d5f8a46b03 has been pushed to the review server.
It is available at http://review.typo3.org/1459

Actions #2

Updated by Mr. Hudson about 13 years ago

Patch set 2 of change I349012e402ab349ad810c57e46b0a7d5f8a46b03 has been pushed to the review server.
It is available at http://review.typo3.org/1459

Actions #3

Updated by Francois Suter about 13 years ago

To test this patch:

  • apply this patch
  • apply the patch from #24641 to the version sysext
  • move to a workspace in Web > List view
  • delete a record (e.g. a content element). The deleted record should appear with a trash can overlay
Actions #4

Updated by Susanne Moog about 13 years ago

  • Status changed from Accepted to Under Review
Actions #5

Updated by Mr. Hudson almost 13 years ago

Patch set 3 of change I349012e402ab349ad810c57e46b0a7d5f8a46b03 has been pushed to the review server.
It is available at http://review.typo3.org/1459

Actions #6

Updated by Mr. Hudson almost 13 years ago

Patch set 1 of change Ie8603cf58dddc4159fd5198d97191ba607009475 has been pushed to the review server.
It is available at http://review.typo3.org/1921

Actions #8

Updated by Oliver Hader almost 13 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #9

Updated by Oliver Hader almost 13 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF