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

{% spaceless %} for ezpage_field in content_fields.html.twig causes issues with ezxml output

    XMLWordPrintable

    Details

      Description

      If we are trying to output an ezxml field from an object within an ezpage block template override and the ezxml content is something like:

      <emphasize>second</emphasize> <strong>paragraph</strong>
      

      And then we define a template like this:

              block_view:
                      BannerCarouselBlock:
                          controller: "MarigoldBaseBundle:EzFlowBlocks:bannerCarousel"
                          template: "@ezdesign/blocks/banner_carousel.html.twig"
                          match:
                              Type: banner_carousel
      

      And try to output the ezxml content, the

      {% spaceless %}

      twig operator in content_fields.html.twig will make the output become secondparagraph instead of second paragraph.

      It is necessary to remove that operator and the developer should specify it by himself.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              tcv_br Thiago Campos Viana
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: