Forums / Suggestions / Make ezimage template tolerant to missing quotes for href

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

Make ezimage template tolerant to missing quotes for href

Author Message

Marc Boon

Monday 13 March 2006 6:18:28 am

In templates/content/datatype/view/ezimage.tpl replace

href={$href}

with

href="{$href|trim('"')}"

This makes sure valid xhtml is generated no matter if the href attribute of a attribute_view_gui on an image is quoted or not. Might also be useful for other datatypes.