[TYPO3] Language menu with image and text

Christoph Köpernick christoph at psysm.com
Wed Jul 19 22:18:05 CEST 2006


Yet another question dedicated to language selection menus ;)

I would like to have a language menu based on the langMenu example at 
http://typo3.org/documentation/document-library/references/doc_core_tsref/current/view/8/11/ 
but with a text around the image.

Example:
<div ...><a ...><img ... />english</a></div>

But I only made it to generate:
<div ...><a ...><img ... /></a>english</div>


This is my TS:

//language selector
lib.langMenu = HMENU
lib.langMenu.special = language
lib.langMenu.special.value = 0,1
lib.langMenu.1 = GMENU
lib.langMenu.1.NO {
	XY = [5.w], [5.h]
	5 = IMAGE
	5.file = fileadmin/templates/baselayout/de-off.gif || 
fileadmin/templates/baselayout/gb-off.gif
	5.wrap = | deutsch || | english	//does not work
	
	wrap = <div class="language-off">| &nbsp;deutsch</div> || <div 
class="language-off">| &nbsp;english</div>	//outside the link!

}
lib.langMenu.1.ACT < lib.langMenu.1.NO
lib.langMenu.1.ACT=1
lib.langMenu.1.ACT.5.file = fileadmin/templates/baselayout/de-on.gif || 
fileadmin/templates/baselayout/gb-on.gif
lib.langMenu.1.ACT.wrap = <div class="language-on">| &nbsp;deutsch</div> 
|| <div class="language-on">| &nbsp;english</div>

lib.langMenu.1.RO < lib.langMenu.1.ACT


I tried use the wrap of IMAGE:
lib.langMenu.1.NO.5.wrap = | deutsch || | english
but without effect, it seams that the wrap property is ignored if one 
tries to use the IMAGE within a GMENU.

So, how can I wrap something around the image, but within the anchor 
element?

Many thanks in anticipation, Chris



More information about the TYPO3-english mailing list