modxcms/revolution — pull request #12210 by jpdevries (2014-12-13 11:20:12+00:00)
Title: Custom Icons for Contexts

![](http://j4p.us/image/3q3E0M2A0R3I/Screen%20Shot%202014-12-13%20at%203.13.33%20AM.png)

If this feature already exists please disregard.
Was under the impression it
already did but doesn’t appear to (i know it does for resource class_key)

the ternary may see overkill but this wasn’t working as expected:
```php
'iconCls' => $context->getOption('mgr_tree_icon',null,$this->modx->getOption('mgr_tree_icon_context', null, 'tree-context')),
```

To use custom icons on context tree icons, create a `mgr_tree_icon` Context Setting with a value of a [Font Awesome Icon](http://fortawesome.github.io/Font-Awesome/icons/) within the given context.