[Typo3] stdWrap for the linktext in TMENU
P. Embacher
typo3 at peitco.de
Fri May 13 11:40:14 CEST 2005
Hi there ...
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.)
Here is my code:
#######################
temp.secMenu = HMENU
temp.secMenu.entryLevel = 2
temp.secMenu.1 = TMENU
temp.secMenu.1.target = _top
temp.secMenu.1 {
wrap = <div class="contentmenu"> |</div>
expAll = 1
collapse = 1
}
temp.secMenu.1.NO {
ATagParams = class="tabmenu"
stdWrap = <img src=fileadmin/img/tab_before.gif border=0>|
}
temp.secMenu.1.ACT < temp.secMenu.1.NO
temp.secMenu.1.ACT = 1
temp.secMenu.1.ACT.ATagParams = class="tabmenu_act"
#########################
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>
but what I want is:
<a href="somlink" class=contentmenu><img src=fileadmin/img/tab_before.gif
border=0>LINKTEXT</a>
Hope you have some good ideas ...
Greetings
Peter
More information about the TYPO3-english
mailing list