Yii Framework Forum: Customizing Zii.widgets.cmenu - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Customizing Zii.widgets.cmenu Rate Topic: -----

#1 User is offline   sanguina 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 42
  • Joined: 22-July 12

Posted 13 February 2013 - 04:02 AM

Hi


I have a menu with the following structure:
<div id="topmenu"> <ul id="nav">
			<li><a href="#">Resources</a>
				<ul>
					<li><a href="#">Premium</a>
						<ul>
							<li><a href="#">Software A</a></li>
							<li><a href="#">Software B</a></li>
							<li><a href="#">Software C</a></li>
							<li><a href="#">Software D</a></li>
													</ul>
					</li>
					<li><a href="#">Free </a>
						<ul>
							<li><a href="#">Trial Version Software A</a></li>
							<li><a href="#">Trial Version Software b</li>
						</ul>
					</li>
										
		
				</ul>
			</li>
		
			<li><a href="#">Contact</a>
				<ul>
					<li><a href="#">Press Release</a></li>
					<li><a href="#">Contact</a></li>
					
		
				</ul>
			</li>
		
			<li><a href="#">Members</a>
				<ul>
		
					<li><a href="#">Login</a></li>
					<li><a href="#">Register</a></li>

					
				</ul>
			</li>
		
		</ul>
</div>


The nested list is opens a submenu.
How do i customize the zii.widgets.CMenu to accomodate this ?

Any ideas or links would be really appreciated.

Thanks
until I become certain that there is no certainty.
0

#2 User is offline   kokomo 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 289
  • Joined: 23-July 10

Posted 13 February 2013 - 04:58 AM

There are a few extensions available you can use.
0

#3 User is offline   outrage 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 313
  • Joined: 10-November 09
  • Location:Blackpool, United Kingdom

Posted 13 February 2013 - 09:27 AM

This menu should do what you are looking for.
It works well with suckerfish style formatting with nested <ul> etc.

http://www.yiiframew...xtension/mbmenu
0

#4 User is offline   sanguina 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 42
  • Joined: 22-July 12

Posted 13 February 2013 - 10:43 AM

@kokomo - thanks never knew these extensions existed in the first place.:rolleyes:

@outrage - thanks - mbmenu looks like it should solve my purpose :)

edit 1:
@outrage - it did the trick :)
until I become certain that there is no certainty.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users