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

Impossible to override the embed-inline default template

    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.

        Issue Links

          Activity

          Show
          Andrzej Longosz added a comment - - edited PRs: ezsystems/ezpublish-kernel#2503 merged as ezsystems/ezpublish-kernel@e4b8fd6 ezsystems/ezplatform-richtext#24 merged as ezsystems/ezplatform-richtext@824b81a

            People

            • Assignee:
              Unassigned
              Reporter:
              Sylvain Guittard
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: