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

Custom Tags added in Legacy Bridge gets rendered inside paragraph in the new stack

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: High High
    • Resolution: Fixed
    • Affects Version/s: 2.1.0
    • Fix Version/s: Customer request
    • Component/s: Legacy bridge
    • Labels:
      None

      Description

      Multiple Custom Tags added one after the other inside text editor in Legacy Bridge are rendered in the new stack wrapped around paragraph tag (using ez_render_field inside twig template).

      Steps to reproduce:
      1. Start creating a new article.
      2. Inside XmlText body section add multiple custom tags one after another. Publish article.
      3. Create XSL templates for custom tags in new stack.
      4. Render article body in twig using new stack

      {{ ez_render_field(content, 'body') }}
      

      Result
      In the new stack, custom tags will be rendered inside unwanted paragraph tag.

      Example:

      <div class="ezxmltext-field">
          <p>
              <div>
                  custom tag test
              </div>
              <div>
                  custom tag test
              </div>
              <div>
                  custom tag test
              </div>
          </p>
      </div>
      

        Issue Links

          Activity

          Mateusz Bieniek created issue -
          Mateusz Bieniek made changes -
          Field Original Value New Value
          Summary Custom Tags added in Legacy Bridge gets rendered inside paragraph in the new stack Custom Tags added in Legacy Bridge gets rendere inside paragraph in the new stack
          Mateusz Bieniek made changes -
          Description Multiple customtags added one afther the other inside text editor in Legacy Bridge are rendered in new stack wrapped around paragraph tag (using {{ez_render_field}} inside twig template).

          *Steps to reproduce:*
          1. Start creating a new article.
          2. Inside XmlText {{body}} section add multiple custom tags one afther another. Publish article.
          3. Create XSL templates for custom tags in new stack.
          4. Render article body in twig using new stack
          {code}
          {{ ez_render_field(content, 'body') }}
          {code}

          *Result*
          In the new stack custom tags will be rendered in unwanted paragraph tag.

          Example:
          {code}
          <div class="ezxmltext-field">
              <p>
                  <div>
                      custom tag test
                  </div>
                  <div>
                      custom tag test
                  </div>
                  <div>
                      custom tag test
                  </div>
              </p>
          </div>
          {code}
          Multiple Custom Tags added one after the other inside text editor in Legacy Bridge are rendered in the new stack wrapped around paragraph tag (using {{ez_render_field}} inside twig template).

          *Steps to reproduce:*
          1. Start creating a new article.
          2. Inside XmlText {{body}} section add multiple custom tags one after another. Publish article.
          3. Create XSL templates for custom tags in new stack.
          4. Render article body in twig using new stack
          {code}
          {{ ez_render_field(content, 'body') }}
          {code}

          *Result*
          In the new stack, custom tags will be rendered in an unwanted paragraph tag.

          Example:
          {code}
          <div class="ezxmltext-field">
              <p>
                  <div>
                      custom tag test
                  </div>
                  <div>
                      custom tag test
                  </div>
                  <div>
                      custom tag test
                  </div>
              </p>
          </div>
          {code}
          Mateusz Bieniek made changes -
          Description Multiple Custom Tags added one after the other inside text editor in Legacy Bridge are rendered in the new stack wrapped around paragraph tag (using {{ez_render_field}} inside twig template).

          *Steps to reproduce:*
          1. Start creating a new article.
          2. Inside XmlText {{body}} section add multiple custom tags one after another. Publish article.
          3. Create XSL templates for custom tags in new stack.
          4. Render article body in twig using new stack
          {code}
          {{ ez_render_field(content, 'body') }}
          {code}

          *Result*
          In the new stack, custom tags will be rendered in an unwanted paragraph tag.

          Example:
          {code}
          <div class="ezxmltext-field">
              <p>
                  <div>
                      custom tag test
                  </div>
                  <div>
                      custom tag test
                  </div>
                  <div>
                      custom tag test
                  </div>
              </p>
          </div>
          {code}
          Multiple Custom Tags added one after the other inside text editor in Legacy Bridge are rendered in the new stack wrapped around paragraph tag (using {{ez_render_field}} inside twig template).

          *Steps to reproduce:*
          1. Start creating a new article.
          2. Inside XmlText {{body}} section add multiple custom tags one after another. Publish article.
          3. Create XSL templates for custom tags in new stack.
          4. Render article body in twig using new stack
          {code}
          {{ ez_render_field(content, 'body') }}
          {code}

          *Result*
          In the new stack, custom tags will be rendered inside unwanted paragraph tag.

          Example:
          {code}
          <div class="ezxmltext-field">
              <p>
                  <div>
                      custom tag test
                  </div>
                  <div>
                      custom tag test
                  </div>
                  <div>
                      custom tag test
                  </div>
              </p>
          </div>
          {code}
          Mateusz Bieniek made changes -
          Link This issue relates to CS-6854 [ CS-6854 ]
          Mateusz Bieniek made changes -
          Status Open [ 1 ] Confirmed [ 10037 ]
          Mateusz Bieniek made changes -
          Status Confirmed [ 10037 ] InputQ [ 10001 ]
          Mateusz Bieniek made changes -
          Summary Custom Tags added in Legacy Bridge gets rendere inside paragraph in the new stack Custom Tags added in Legacy Bridge gets rendered inside paragraph in the new stack
          Konrad Oboza made changes -
          Link This issue relates to EZP-29479 [ EZP-29479 ]
          Mateusz Bieniek made changes -
          Assignee Mateusz Bieniek [ mateusz.biniek@ez.no ]
          Mateusz Bieniek made changes -
          Status InputQ [ 10001 ] Development [ 3 ]
          Mateusz Bieniek made changes -
          Status Development [ 3 ] Development Review [ 10006 ]
          Mateusz Bieniek made changes -
          Status Development Review [ 10006 ] Documentation Review done [ 10011 ]
          Assignee Mateusz Bieniek [ mateusz.biniek@ez.no ]
          Mateusz Bieniek made changes -
          Status Documentation Review done [ 10011 ] QA [ 10008 ]
          Assignee Mateusz Bieniek [ mateusz.biniek@ez.no ]
          Mateusz Bieniek made changes -
          Status QA [ 10008 ] QA Done [ 10007 ]
          Assignee Mateusz Bieniek [ mateusz.biniek@ez.no ]
          Mateusz Bieniek made changes -
          Status QA Done [ 10007 ] Closed [ 6 ]
          Resolution Fixed [ 1 ]

            People

            • Assignee:
              Unassigned
              Reporter:
              Mateusz Bieniek
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: