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

Admin preview doesn't use the right pagelayout

    XMLWordPrintable

    Details

      Description

      When using specific view_default_layout for different siteaccesses, admin preview will always use the default one (either the default configured from DemoBundle if left in parameters.yml, or EzPublishLegacyBundle::legacy_view_default_pagelayout.html.twig), even when changing the preview SiteAccess.

      Steps to reproduce with DemoBundle:
      1. Define a view_default_layout for a siteaccess (e.g. ezpublish_legacy.ezdemo_site.view_default_layout: "eZDemoBundle::pagelayout.html.twig"
      2. Ensure you remove ezpublish_legacy.default.view_default_layout from parameters.yml
      3. Go to admin and edit a content that is not rendered directly by Symfony (e.g. /Shopping/Products/eZ-Publish-Community-Mug)
      4. Click on preview, your content will not be displayed with wanted layout.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              jerome.vieilledent-obsolete@ez.no Jérôme Vieilledent (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 hour
                  1h