Technical support This forum is closed.
Version 1.x > Technical support > CMSTreeMenu View modes: 
User avatar
Member
Member
Chameane - 12/6/2005 12:36:59 PM
   
CMSTreeMenu
Hi,

I want to display a tree menu like this:

MenuItem1
MenuItem2
SubMenuItem21
SubMenuItem22
SubSubMenuItem221
>SubSubMenuItem222
SubSubMenuItem223
SubMenuItem23
MenuItem3
MenuItem4

Where ">" it's a bullet wich is shown in the selected menu item
I've seen that we can define a bullet for all elements or for the opened elements, but I only want to mark the selected item
Maybe I can retrieve the text of the selected item to modify it adding <img ...> ?

Any ideas?

Thanks

User avatar
Member
Member
Antony - 12/6/2005 2:14:45 PM
   
Re: CMSTreeMenu
Hello,

If you know which css class belongs to your selected item you can try to do this by adding
something like this:

.TheClassOfYourSelectedItem {
background-image: url(images/bullet.gif);
background-position: left 50%;
background-repeat: no-repeat;
padding-left: 10px;
}

into your css file. But in that case your element (read item) should be 'block' element.
If it's not, you can simply add this line to css file between {}:

display: block;