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

Impossible to override the embed-inline default template

    XMLWordPrintable

    Details

      Description

      Developers should be able to define an override (using eZ design engine) for embed-inline.

      Steps to reproduce

      • define a template for embed-inline view as follow
        ezpublish:
            system:
                site_group:
                    content_view:
                        embed-inline:
                            product:
                                template: "@ezdesign/embed_inline/product.html.twig"
                                match:
                                    Identifier\ContentType: [product]
        
      • add a template embed_inline/product.html
        {{ ez_render_field(content, 'price') }}
        
      • edit a content item with a rich text field
      • in a paragraph, "embed-inline" a product
      • click on preview

      Result

      The default template is loaded (name of the embed content object and the link).

      Expected result

      The price should be displayed.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              sylvain.guittard@ez.no Sylvain Guittard
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated: