[TYPO3] include id= in image

Bas van der Togt b.vandertogt at profinit.com
Sat Apr 1 11:37:35 CEST 2006


Dear list,

Is it possible to include an id= tag into my image file?
I tried it with allWrap but than the id tag is placed around the image 
instead of into the image tag.

This is what i want:
<img src="fileadmin/templates/images/img-nl.gif" id="img-nl">

This is my code:

# Language
temp.Language = HMENU
temp.Language.special = language
temp.Language.special.value = 0,1
temp.Language.wrap = <table border=0 cellspacing=0 cellpadding=0><tr><a 
href=""><td><img src="fileadmin/templates/images/home.gif" alt="home" 
border="0" id="img-home"/></a></td><td><a href=""><img alt="shop" 
border="0" id="img-shop" 
src="fileadmin/templates/images/shop.gif"/></a></td>|</tr></table>
temp.Language.1 = GMENU
temp.Language.1.NO {
   XY = 28,28
   #ATagParams = id="img-nl" || id="img-uk"
   allWrap = <td><div id="img-nl">|</div><td> || <td><div 	 
id="img-uk">|</div></td>
   5 = IMAGE
   5.file = fileadmin/templates/images/lang-nl.gif || 				 
fileadmin/templates/images/lang-uk.gif
   5.width = 28
   5.height = 28
}

temp.Language.1.RO < temp.Language.1.NO
temp.Language.1.RO = 1
temp.Language.1.RO {
   XY = 28,28
   #ATagParams = id="img-nl" || id="img-uk"
   allWrap = <td><div id="img-nl">|</div><td> || <td><div 
  id="img-uk">|</div></td>
   5 = IMAGE
   5.file = fileadmin/templates/images/lang-nl-o.gif || 				 
fileadmin/templates/images/lang-uk-o.gif
   5.width = 28
   5.height = 28
}

temp.Language.1.ACT < temp.Language.1.NO
temp.Language.1.ACT = 1
temp.Language.1.ACT {
   XY = 28,28
   #ATagParams = id="img-nl" || id="img-uk"
   allWrap = <td><div id="img-nl">|</div><td> || <td><div   	 
id="img-uk">|</div></td>
   5 = IMAGE
   5.file = fileadmin/templates/images/lang-nl-o.gif || 				 
fileadmin/templates/images/lang-uk-o.gif
   5.width = 28
   5.height = 28
}



More information about the TYPO3-english mailing list