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

xmltext_to_html5 doesn't properly pass along template variables for embeds

    Details

      Description

      When using the Twig rendering stack and ez_render_field, embedded images don't render according to their proper sizes. The EmbedToHtml5.php converter attempts to capture the 'size','offset', and 'limit' variables, but these are not formatted into the proper arrays before passing embed rendering off of ezobjectforwarder.php. The most visible symptom of this is that all images embedded in ezxmltext fields render at a default size.

      In general, having the current EmbedToHtml5 converter only pass through 3 specific variables will likely cause problems with a number of customized installs.

        Activity

        Hide
        Joe Kepley added a comment -
        Show
        Joe Kepley added a comment - Possible solution in https://github.com/ezsystems/ezpublish-kernel/pull/260
        Show
        Jérôme Vieilledent (Inactive) added a comment - Fixed in master: https://github.com/ezsystems/ezpublish-kernel/commit/fdd5b12653750a8bb380426b7408603f0dca2d82

          People

          • Assignee:
            Unassigned
            Reporter:
            Joe Kepley
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: