Feature #25765
closedAdd hook when choosing icon overlays
100%
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.
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
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
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
Updated by Susanne Moog about 13 years ago
- Status changed from Accepted to Under Review
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
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
Updated by Oliver Hader almost 13 years ago
Sumitted to
016715f55b7c69d00a5060f733254bd5d288925e for TYPO3 4.5.3
226fb78230b8aa7f29297b768cb129647304f8e7 for TYPO3 4.6-alpha1
Updated by Oliver Hader almost 13 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Updated by Oliver Hader almost 13 years ago
- Status changed from Resolved to Closed