can not add id="idname" to WE image

basic functions and we:tags
pms
Junior Member
Beiträge: 17
Registriert: So 20. Feb 2011, 17:07

can not add id="idname" to WE image

Beitragvon pms » Mo 27. Apr 2015, 17:10

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!

WBTMagnum
webEdition Partner
webEdition Partner
Beiträge: 1825
Registriert: Di 7. Mär 2006, 16:50
Wohnort: Wien
Kontaktdaten:

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

Beitragvon WBTMagnum » Mo 27. Apr 2015, 21:16

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

pms
Junior Member
Beiträge: 17
Registriert: So 20. Feb 2011, 17:07

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

Beitragvon pms » Di 28. Apr 2015, 21:09

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!


Zurück zu „Creating templates“

Wer ist online?

Mitglieder in diesem Forum: 0 Mitglieder und 2 Gäste