Details
-
Bug
-
Resolution: Unresolved
-
Medium
-
None
-
4.2.0
-
None
-
Operating System: Linux
PHP Version: (please be specific, like '4.4.3' or '5.1.5') 5.3
Database and version:
Browser (and version):
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