mbmenu MbMenu dropdown menu

  1. Documentation
  2. Change Log

MbMenu is an extension to CMenu wich provides you a nice dropdown menu.

Resources

Documentation

Requirements
  • Yii 1.0 or above
  • Tested on IE6/IE7/IE8/Firefox/Chrome
Installation
  • Extract the 'mbmenu' folder under protected/extensions
Usage

The usage of this extension is allmost the same like CMenu.

The following example shows how to use MbMenu:

<?php $this->widget('application.extensions.mbmenu.MbMenu',array(
			'items'=>array(
				array('label'=>'Home', 'url'=>array('/site/index')),
				array('label'=>'Contact', 'url'=>array('/site/contact'),
				  'items'=>array(
				    array('label'=>'sub 1 contact'),
				    array('label'=>'sub 2 contact'),
				  ),
				),
				array('label'=>'Test',
				  'items'=>array(
				    array('label'=>'Sub 1', 'url'=>array('/site/page','view'=>'sub1')),
				    array('label'=>'Sub 2',
				      'items'=>array(
				        array('label'=>'Sub sub 1', 'url'=>array('/site/page','view'=>'subsub1')),
				        array('label'=>'Sub sub 2', 'url'=>array('/site/page','view'=>'subsub2')),
				      ),
				    ),
				  ),
				),
			),
	)); ?>

Replace

<div id="mainmenu">

with

<div id="mainMbMenu"> 

to avoid conflicts with the standard CSS for the menu.

Change Log

January 23, 2012
  • v1.3 fix mentioned by Zyphers in function normalizeItems
February 23, 2010
  • v1.2 fix for IE7
February 22, 2010
  • v1.1 minor update in creation of class styles
February 18, 2010
  • Initial release.
74 1
67 followers
23 418 downloads
Yii Version: 1.1
License: BSD-2-Clause
Category: User Interface
Tags:
Developed by: heyhoo
Created on: Feb 19, 2010
Last updated: 5 years ago

Downloads

show all