[Typo3] stdWrap for the linktext in TMENU

JoH info at cybercraft.de
Fri May 13 13:55:32 CEST 2005


> I just tried to get a TMENU with some img around the linktext
> Reason is, that the aTag has a class with the hover effect, so I need
> the img inside the <a>
>
> according to TSRef there is a stdWrap for TMenuItem ... but it seems
> not to work ;-(
> (meens: there is happening nothing ... the <img ...> will not appear
> in my html-source.)
>
> ...
>
> stdWrap =  <img src=fileadmin/img/tab_before.gif border=0>|
> }

stdWrap is'nt a wrap itself. It's a set of functions you can use in
TS-Setup.

>
> I tried it with linkWrap, but - as said in TSRef - that wrap's the
> whole link like:
> <img src=fileadmin/img/tab_before.gif border=0><a href="somlink"
> class=contentmenu>LINKTEXT</a>

linkWrap is fine here. Fill in something like

ATagBeforeWrap = 1

and you're done.

BTW: I would not recommend the use of images for simple indenting purposes.
You should use CSS padding and/or margins instead.
Just give the item a class and put it in your stylesheet.

Joey

-- 
Wenn man keine Ahnung hat: Einfach mal Fresse halten!
(If you have no clues: simply shut your knob sometimes!)
Dieter Nuhr, German comedian
openBC: http://www.openbc.com/go/invuid/Jo_Hasenau





More information about the TYPO3-english mailing list