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

Double <a> tag when adding a link to an inline image

    XMLWordPrintable

Details

    Description

      the the inline image template(extension/ezwebin/design/ezwebin/override/templates/embed-inline/image.tpl) adds a <a> tag if the "$link_parameters.href" variable is present.
      That result in a double <a> tag when a link is added to an inline image.

      <!-- START: including template: design/standard/templates/content/datatype/view/ezxmltags/link.tpl (design:content/datatype/view/ezxmltags/link.tpl) -->
      <a href="/jpn/Discussion-Forum" target="_self">
      
      <!-- START: including template: design/standard/templates/content/datatype/view/ezxmltags/embed-inline.tpl (design:content/datatype/view/ezxmltags/embed-inline.tpl) -->
      
      <!-- START: including template: extension/ezwebin/design/ezwebin/override/templates/embed-inline/image.tpl (design:content/view/embed-inline.tpl) -->
      <a href="/jpn/Discussion-Forum" target="_self"><img src="/var/ezflow_site/storage/images/media/images/church/453-1-jpn-JP/church_medium.jpg" alt="" /></a>
      <!-- STOP: including template: extension/ezwebin/design/ezwebin/override/templates/embed-inline/image.tpl (design:content/view/embed-inline.tpl) -->
      
      Steps to reproduce

      Use ezwebin or ezflow.
      1/ make a new content object with a xml block
      2/ add an inline image
      3/ select the image and add a link

      the rendered page will have a first link tag from design/standard/templates/content/datatype/view/ezxmltags/link.tpl, and a second one from extension/ezwebin/design/ezwebin/override/templates/embed-inline/image.tpl

      Attachments

        Activity

          People

            unknown unknown
            es@ez.no es@ez.no
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: