Forums / Setup & design / about menu

about menu

Author Message

Tatiana Vorob'eva

Tuesday 07 June 2005 11:47:30 am

I need to have images in menu. As thumbamails for each section. How can I add an image as a thumbanail of folder?

Mikhail Chekanov

Tuesday 07 June 2005 1:23:57 pm

The simplest way is to assign images with css selectors, generating appropriate selectors from the templates.
For example:
edit your_design/templates/menu/flat_top.tpl (if you havn't this one - just copy it from base/templates/menu/flat_top.tpl)
Add identifiers:

<li id="{$menu.node_id}" class=....

Add selector to css:

li#122 {background-image: ....}
li#123 {background-image: ....}

--
mike
#6595551

Tatiana Vorob'eva

Wednesday 08 June 2005 1:42:36 am

Thanks a lot!
:):)
Is there any way to associate image with li in menu? I mean, when admin adds folder to section, which would be displayed in menu, he(she) adds an icon in the same form perhaps....
Is there any way to rewrite template for creating folder to add field "icon image"?