All, just updating my SubTypes list ( https://www.greggriffiths.org/livelink/reference/subtypes/ ) to include updates for the Classic UI, but also now the Smart UI. I have this WR (https://knowledge.opentext.com/knowledge/cs.dll/Open/67817285) for Classic UI SubType listing, does anyone know of a way to get a similar list of Smart UI icons for each subtype ?
any additional icons, classic or smart view, or missing subtypes also gratefully received.
This approach won't work with Smart UI. Smart UI icons are assigned by rules. For example, eFiles from eGov have a different icon than business workspaces, although both have subtype 848.
You could list all icon-assigning rules on a particular server, which were registered by the installed modules, on the browser console:
csui.require('csui/utils/nodesprites').toJSON().filter(rule => rule.equals?.type)
Older icons are defined by a CSS class with a background image, newer icons by a SVG image ID. If you want to see the icon, you could write a page mocking nodes for all subtypes and showing an icon for each node model:
node = new NodeModel({ type: 335 }) iconRegion = new Marionette.Region(...) iconView = new NodeTypeIconView({ node }) iconRegion.show(iconView)