Project

General

Profile

Actions

Feature #24309

closed

Add custom status icons to BE sprites

Added by Myroslav Holyak almost 14 years ago. Updated over 10 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2010-12-08
Due date:
% Done:

0%

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

Description

t3lib_iconworks::mapRecordOverlayToSpriteIconName returns overlay icon according to hardcoded TCA fields. It's bad - if i have custom page types with additional fields, i need a possibility to configure "status" fields via TCA.

Example: hotels are represented in DB and page-tree as pages, i added a checkbox-field named "This is draft hotel" (so do not show it on site as regular public element, but allow to see it by direct link). In that case I need add special icon to visually see in tree what hotels are "draft". I cant' make that without using one of hardcoded fields.

I can extend both $GLOBALS['TBE_STYLES']['spriteIconApi']['spriteIconRecordOverlayPriorities'] and $GLOBALS['TBE_STYLES']['spriteIconApi']['spriteIconRecordOverlayNames'] but status icons array is hardcoded. I propose append to that hardcoded array some data from TCA, according to page type.

(issue imported from #M16701)


Files

hotel-custom-status-icon.png (118 KB) hotel-custom-status-icon.png Administrator Admin, 2010-12-08 12:44
patch.diff (531 Bytes) patch.diff Administrator Admin, 2010-12-08 13:05
patch-09-12-2010.patch (1.52 KB) patch-09-12-2010.patch Administrator Admin, 2010-12-09 21:10
status_icons-1_0_0.t3x (2.22 KB) status_icons-1_0_0.t3x Administrator Admin, 2010-12-09 22:23
16701_v2.diff (1.22 KB) 16701_v2.diff Administrator Admin, 2010-12-09 22:44
bug_16701_v3.diff (2.25 KB) bug_16701_v3.diff Administrator Admin, 2010-12-10 18:02
Actions

Also available in: Atom PDF