verticalmenu2levels This extension consists of a 2-levels vertical menu.

  1. Try out a demo
  2. Requirements
  3. Usage

This extension consists of a 2-levels vertical menu. The css code has been taken from this website http://cssmenumaker.com/menu/elegant-accordion-menu. If you are interested in more than 2 levels, you should try this menu.

Try out a demo

Click here for the demo

Requirements

Yii 1.1 or above

Usage

<?php
$this->widget('ext.verticalmenu2levels.VerticalMenu2Levels',
array(
"menu"=>array(
	  	array("url"=>array("route"=>"site/index",
	  					  'params'=>array('lang'=>'en')),
						  "label"=>'Home'),
		array("url"=>array(
		                       "route"=>"/event/create"),
		                       "label"=>"Create",
		                       "visible"=>false),
          array("url"=>array(),
                       "label"=>'Products',
		              array("url"=>array(
		                           "link"=>"http://google.com",
								  'htmlOptions'=>array('target'=>'_BLANK')),	                           
		                           "label"=>"Google"),
		              array("url"=>array(
		                           "route"=>"site/product2",
			  					  'params'=>array('lang'=>'en')),	                           					                         					                           
		                           "label"=>"Product 2"),
		              array("url"=>array(
		                           "route"=>"site/product3",
			  					  'params'=>array('lang'=>'en')),	                           					                         					                           
		                           "label"=>"Product 3",
		                           "disabled"=>true
								  ),						                           		                           
		                ),								  								  									  
          array("url"=>array(),
                       "label"=>'About',
		              array("url"=>array(
		                           "route"=>"site/company",),	                           
		                           "label"=>"Company"),
		              array("url"=>array(
		                           "route"=>"site/contact",),	                           					                         					                           
		                           "label"=>"Contact"),			                           
		                ),
	  	array("url"=>array("route"=>"site/contact",
	  					  'params'=>array('lang'=>'en')),
						  "label"=>'Contact'),									  
          ),
)
);
?>

(The structure of this extension is based on the SMenu)

1 0
4 followers
489 downloads
Yii Version: 1.1.*
License: GPL-3.0
Category: User Interface
Developed by: oligalma
Created on: Aug 17, 2014
Last updated: 6 years ago

Downloads

show all

Related Extensions