Issue Feature Closed

#24309Add custom status icons to BE sprites

Myroslav Holyak 12/08/10, 12:44 updated 03/10/14, 12:07

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)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.