Seite 1 von 1

can not add id="idname" to WE image

Verfasst: Mo 27. Apr 2015, 17:10
von pms
I wanted to give a WE picture an ID "bigPic1" so the browser can update the image with an other picture if the mouse is over an other image.

So in the template I wrote:
<we:img name="BigPicture" xml="true" class="img-responsive" id="bigPic1" />

But in the output WE creates, the id="bigPic1" is not added:
<img src="/images/projecten/2015-01-01.jpg" alt=" " xml="true" width="1200" height="800" name="BigPictureblk_additionalContentRows__2" class="img-responsive" />

is there a way to add an id to the picture?
Thanks for your help!

Re: can not add id="idname" to WE image

Verfasst: Mo 27. Apr 2015, 21:16
von WBTMagnum
Hey,

The attribute id is used by the tag itself (see we:img tag reference). But you could give the attribute "pass_id" a try.

HTH,
Sascha

Re: can not add id="idname" to WE image

Verfasst: Di 28. Apr 2015, 21:09
von pms
WBTMagnum hat geschrieben:Hey,

The attribute id is used by the tag itself (see we:img tag reference). But you could give the attribute "pass_id" a try.

HTH,
Sascha

Thanks you! That works fine!