Foros de discusión

Images and width/height attributes

thumbnail
Jason Roscoe, modificado hace 12 años.

Images and width/height attributes

Junior Member Mensajes: 84 Fecha de incorporación: 23/10/08 Mensajes recientes
When we have a structure that has an Image upload box, and the user can upload an image to use in the article, when the article displays the image, the <img /> tag does not have a width/height attribute, which it should have for (x)html validation and accessibility. How can we get the width/height attributes on these images?

Our template looks like this:
<img src="$banner_image.getData()" alt="$banner_alt_text.getData()">


Our structure looks like this:

<root>
  <dynamic-element name="banner_image" type="image" index-type="" repeatable="false"></dynamic-element>
  <dynamic-element name="banner_alt_text" type="text" index-type="" repeatable="false"></dynamic-element>
</root>


Thanks.