Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-31210

Custom .svg icons for ContentType thumbnails not showing up in Admin UI

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: InputQ
    • Priority: Medium
    • Resolution: Unresolved
    • Affects Version/s: 2.5.7
    • Fix Version/s: Customer request
    • Labels:
      None
    • Environment:

      Required setup

      Clean installation of ezPlatform 2.5.7

       

      Description

      1. default-config param in config .yml for thumbnail does not do anything - thumbnail icons do not change for new or old ContentTypes
      2. Setting thumbnail using direct .svg icon path will not display icon anywhere
      3. Editing single Content (content/location/5) will not show icon even if it's still visible in a tree or ContentType editor

      Steps to reproduce:
      1. Create new ContentType of name "House" and identifier "house" with ezstring field (or any).
      2. Create a new Content for this ContentType i.e. "House1".
      3. Edit .yml config file as shown in https://doc.ezplatform.com/en/latest/guide/extending/extending_back_office/

      system:
          default:
              content_type:
                  default-config:
                      thumbnail: "/bundles/ezplatformadminui/img/ez-icons.svg#collection"

      4. Try to change the icon directly:

                  house:
                      thumbnail: "/bundles/ezplatformadminui/img/icons/collection.svg"
      

      Results
      After 2nd "Step to reproduce" the file icon is visible in the tree but not in a Content View on the right side.
      After 3rd "Step to reproduce" new icon is not visible in Content View or in a Content Structure or in Content Type list.
      After 4th "Step to reproduce" icon is not visible in Content View or in a Content Structure or in Content Type list.

      Expected Result
      After 2nd "Step to reproduce" file icon will be visible in the tree but should be visible in a Content View on the right side as well (file icon should be visible before "House1").
      After 3rd "Step to reproduce" new icon should be visible in Content View or in a Content Structure or in Content Type list.
      After 4th "Step to reproduce" new icon should be visible in Content View or in a Content Structure or in Content Type list.

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            bartlomiej.wajda@ez.no Bartłomiej Wajda
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated: