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

viewType is ignored for ContentType = image in render_esi viewLocation

    XMLWordPrintable

Details

    Description

      ViewType specified in render_esi( controller( "ez_content:viewLocation", is being ignored, of the ContentType being rendered is an image. default.html.twig is always being used.

      steps to reproduce.
      • Publish an image somewhere in the content tree
      • Override a template to include the following:
        {{ render_esi( controller( "ez_content:viewLocation", {"locationId": 109, "viewType": "line"} ) ) }}
        
      • Include the following in ezplatform.yml
        ezpublish:
            system:
                site_group:
                    location_view:
                        line:
                            image:
                                template: ":Image:line.html.twig"
                                match:
                                    Identifier\ContentType: [image]
        
      • include a custom line..html.tiwg file under app/Resources/views/Image folder
        => expected result: The image should be rendered using your customized line.html.twig
        => actual result: eZStudioDemoBundle:default:default.html.twig is used, instead
      notes:
      • location_id = 109 was the id in my case. Please update to the id of your case image, in order to reproduce the issue
      • changing line to a different value such as test has no effect.

      Attachments

        Activity

          People

            Unassigned Unassigned
            joaquim.cavalleri-obsolete@ez.no Joaquim Cavalleri (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            9 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: