My typo3 websites has a menu with the follwing typoscript definition:
lib.footernav = HMENU
lib.footernav.special = directory
lib.footernav.special.value = 38
lib.footernav.entryLevel = 0
lib.footernav.1 = TMENU
lib.footernav.1.NO {
ATagParams = class = "footer-link"
}
The menue works just fine. What I want to do is, change the link text into an image, like this:
<a class="footer-link" href="index.php?id=43&L=1">Facebook</a>
to
<a class="footer-link" href="index.php?id=43&L=1"><img src="facebook.gif"/></a>
How can I do that?
If it helps I could also create a new menu for this facebook link.
Another solution is to define a custom class for each link, then change the background image only for according links. This way you can fully control the menu’s appearance by css:
Results in following html:
css:
EDIT: I recommend the above solution, because it’s a quick and fairly clean setup to address a single menu item. However, if you like a clean example from the typoscript textbook:
Assuming that your facebook menu item is page ID 99