Depending on the section in which the document's icon is rendered, different ways to retrieve it are used, and can give different results:
- in the header (element nuxeo-breadcrumb): uses the value of document's property common:icon (which is set at creation time with Large icon field of the document type in Studio Modeler) to build the icon's URL
- in a listing: uses the rendition REST API with rendition thumbnail, which could return different blobs:
- the blob from document's property thumb:thumbnail if facet thumbnail is set
- a blob built based on the value of field Large icon or icon of the document type in Studio Modeler
This non-standardized ways to retrieve document's icon make things difficult when a customer wants to use a single icon for a document type used in different parts of the page.
These are the 2 sections I found, other sections or other pages could also use non-standardized ways to retrieve the icon.
- is related to
-
NXP-29015 NXUI: SVG icons everywhere
- Open