WebsiteBaker Support (2.8.x) > Templates, Menus & Design
Images as Menulink
Stefek:
--- Quote from: BlackTiger on April 17, 2009, 05:14:58 PM ---The names of the classes are a little bit confusing. ;) Before it was menu_current, now it is menu-current.
--- End quote ---
That's right, but you can "teach" sm2 to still return menu_current. :-)
The code is like:
$aItemOpen = '<li [if(class==menu-current) {class="menu-current"}]>[a][menu_title]</a>',
(with some adjustment to your current needs)
Regards,
Stefek
djdeeno:
wel everybody very thanks.
its works, so now i understand it, and can build my template.
When it finish i let u know.
thanks
x sunny
linkspire:
Use the following code to build the menu instead:
Code:
<div class="mainmenu"><?php show_menu2(0, SM2_ROOT, SM2_ALL, SM2_TRIM | SM2_PRETTY); ?></div>
Then you have to adjust your css-file: The currently selected item gets the class menu-current and the parent of a selected item (Parcours in your example) gets the class menu-parent. Use these classes to set the desired color.
Spamlink removed
Navigation
[0] Message Index
[*] Previous page
Go to full version