Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-25926

Standardize how document's icon is retrieved in the different sections of a page

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 9.10, 10.2
    • Fix Version/s: 11.x
    • Component/s: Web UI

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                vdutat Vincent Dutat
                Participants:
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: