Add ID to each button in menu

tevart

Avatar: tevart

2008-11-13 13:24

Is it possible to add ID to each button in the menu? I would like to have different colors of buttons in menu

tnx

» Quick.Cms v2.x

treewood (OpenSolution)

Avatar: treewood

2008-11-14 07:37

Yes it is possible. For example to menu3. Edit templates/menu3.tpl and change this:
class="l$aData[sStyle]"
to:
class="l$aData[sStyle] id$aData[iPage]"

Now in style css you can add styles to id1, id2 etc.

kalanta

No avatar

2008-11-22 10:50

Could you write an example of css? How it should look? I tryed, but any changes was made. How to use the idx in #menu3?

treewood (OpenSolution)

Avatar: treewood

2008-11-24 08:03

no problem:
#menu3 .id3{background-color:#fff;}
#menu3 .id5{background-color:#000;}
#menu3 .id6{background-color:#f3f3f3;}

Of course you must have pages with id 3, 5 and 6 in menu 3

kalanta

No avatar

2008-11-24 09:32

Ok, I understand. I didn't think about PAGE id. Thanks.

Back to top
about us | contact