[Typo3] menu and icons like id_of_item.gif
Robert A Heller
rah at rheller.net
Thu Feb 10 21:54:31 CET 2005
take a look at http://www.erbf.com/ each menu item at the top (the
horizontal menu bar) has a different background.
I used this template code and attached the background image to the page
as a resource.
The important part is the subparts.MENU_TIEMS.1.NO section, particularly
the 5 = IMAGE...
There is also a tutorial on using different images with GMENU items that
you might want to look at.
Regards
===================
masthead.10 = TEMPLATE
masthead.10 {
template = FILE
template.file = fileadmin/templates/ERBFHeader.htm
workOnSubpart = DOCUMENT_BODY
subparts.MENU_ITEMS = HMENU
subparts.MENU_ITEMS.entryLevel = 0
subparts.MENU_ITEMS.1 = GMENU
subparts.MENU_ITEMS.1.IProcFunc = user_keepRolloverAtOnClick
subparts.MENU_ITEMS.1.IProcFunc.setLocation = Masthead
subparts.MENU_ITEMS.1.NO {
XY = [5.w],[5.h]
5 = IMAGE
5.file.import = fileadmin/images/
5.file.import.field = media
5.file.import.listNum = 0
# fallback background in case background image can't be found
backColor = 203,197,178
XY = 140, 21
10 = TEXT
10.text.field = nav_title
10.text.case = upper
10.fontColor = #006633
10.fontFile = fileadmin/fonts/comic.ttf
10.fontSize = 14
10.offset = 5,17
10.niceText = 0
10.shadow.color = #004411
10.shadow.blur = 50
10.shadow.offset = 1,2
10.shadow.intensity = 30
10.shadow.opacity = 70
10.maxWidth = 140
}
Bart Aninowski wrote:
>Hi
>I've searched te list but found only one unanswered question
>I have menu with special little icons which are diffrent for each menuitem
>I think that good solutions is add icons with id of actual menu item
><td><img src="/fileadmin/template/main/images/{id_of_actual_menuitem}.gif> |
></td>
>How can I do this?
>It could be very easy for designer to add icons for new position in menu.
>
>Barti
>
>
>_______________________________________________
>Typo3-english mailing list
>Typo3-english at lists.netfielders.de
>http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
>
>
>
>
--
<http://www.rheller.net/>
*Robert A Heller*
1912 Ironwood Court,
Port Moody, B.C.
V3H 4C3
*Cell. (604) 454-7344*
More information about the TYPO3-english
mailing list