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 ]
          Show
          Mateusz Bieniek added a comment - PR: https://github.com/ezsystems/ezplatform-xmltext-fieldtype/pull/89
          Show
          Mateusz Bieniek added a comment - Merged: https://github.com/ezsystems/ezplatform-xmltext-fieldtype/commit/ae23c0cbae4e99a610d639f6707b0f0d46a1a6ab
          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 ]
          Transition Time In Source Status Execution Times Last Executer Last Execution Date
          Open Open Confirmed Confirmed
          9m 57s 1 mateusz.biniek@ez.no 22/Jun/18 4:37 PM
          Confirmed Confirmed InputQ InputQ
          7s 1 mateusz.biniek@ez.no 22/Jun/18 4:37 PM
          InputQ InputQ Development Development
          166d 21h 37m 1 mateusz.biniek@ez.no 06/Dec/18 1:15 PM
          Development Development Development Review Development Review
          3s 1 mateusz.biniek@ez.no 06/Dec/18 1:15 PM
          Development Review Development Review Documentation Review done Documentation Review done
          4d 2h 50m 1 mateusz.biniek@ez.no 10/Dec/18 4:06 PM
          Documentation Review done Documentation Review done QA QA
          7d 19h 12m 1 mateusz.biniek@ez.no 18/Dec/18 11:18 AM
          QA QA QA Done QA Done
          5s 1 mateusz.biniek@ez.no 18/Dec/18 11:18 AM
          QA Done QA Done Closed Closed
          9s 1 mateusz.biniek@ez.no 18/Dec/18 11:18 AM

            People

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

              Dates

              • Created:
                Updated:
                Resolved: