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

Custom backend siteacccess breaks the content edit form fields design

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: High High
    • None
    • 2.2.1
    • None
    • None

    Description

      If you add a custom backend siteaccess configuration, then the form fields design during content editing will not properly be displayed.
      Some missing CSS is not available. (see Screenshot)

      Steps to reproduce:
      1. Install clean eZ Platform 2.2.1
      2. Add below configuration

          siteaccess:
              list: [site, admin_test]
              groups:
                  site_group: [site]
                  admin_group: [admin_test]
          system:
              admin_group:
                  cache_service_name: '%cache_pool%'
                  var_dir: var/site
                  languages: [eng-GB]
                  content:
                      default_ttl: '%httpcache_default_ttl%'
                  http_cache:
                      purge_servers: ['%purge_server%']
                      fastly:
                          service_id: '%fastly_service_id%'
                          key: '%fastly_key%'
              admin_test:
                  page_builder:
                      siteaccess_list: [site1]
      

      Note: If you remove the system.admin_test the form will be correctly displayed.

      As Workaround, If you specify the admin_ui_forms then the form will be correctly displayed:

      ezpublish:
          system:
              admin_test:
                  admin_ui_forms:
                      content_edit_form_templates:
                          - { template: '@EzPlatformAdminUi/content/form_fields.html.twig' , priority : 1 }
      

      Note: this only work using the siteaccess name and not the admin_group

      The expected behavior is:
      Any new backend siteaceess should inherit the form field design from the admin_group configuration already defined in: https://github.com/ezsystems/ezplatform-admin-ui/blob/master/src/bundle/Resources/config/admin_ui_forms.yml

      Attachments

        Activity

          People

            Unassigned Unassigned
            ramzi.arfaoui-obsolete@ez.no Ramzi Arfaoui (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: