it's a simple wrapper for css drop down menu framework from lwis.net
tested on Yii 1.1.8, may work on other versions
This extension class extends CMenu, and usage is just like CMenu. no need to code sample, right? :)
Consider this options when using EMenu:
$vertical: to make menu vertical
$rtl: to make vertical menu right to left
$upward: to make menu dropdown upward (dropup ?!!!)
$themeCssFile: to use a custom theme file
$theme: to use a provided theme
provided themes are : adobe, flikr, lwis, mtv, nvidia, vimeo and default.
IE 7 and before need a piece of provided javascript named jquery.dropdown.js to work. I dont know how to use client script to generate conditional parameters to include this js. for more information see here. if you have any suggestion, let me know via comment. for know, you can manually add this code to your layout head section:
<!--[if lte IE 7]> <script type="text/javascript" src="js/jquery/jquery.js"></script> <script type="text/javascript" src="path/to/published/jquery.dropdown.js"></script> <![endif]-->
Total 9 comments
hello everyone..im new to yii..i dont know how to configure things out..i just want to display the contents upward not vertical but how can i do it..please somebody help me..
so excited with this extension:)
this is just what I wanted, thanks alot for sharing this!
To correctly display sub-submenus edit EMenu.php and in function renderMenuRecursive() replace:
with
Other themes don't work for me, how can i solve them plz ?
great extension
Works very fine and makes my CDropDownMenu totally obsolete. I prefer this one over my own widget. Keep up the good work ;)
Thank you for extension. It works fine with default theme. Other themes are not supported well and default.advanced.css and default.ultimate.css are not working fine too. This 'cos "dir" class for elements in CMenu is set in [li] tag but some themes need it in [a] tag... others in [span] tag... and so on...
Could you check it please?
So cute... tenkyu so much
great extension !! Thanks Arash.
Just in case ... I've modified the way themeCssFile is handled so a custom menu theme could be located anywhere and not only in the extension folder.
EMenu.php - line 79
So I can set the css theme in my current theme folder.
Good Job
beautiful , looks cool . thanks for bringing us such a wonderful menu implement .
Leave a comment
Please login to leave your comment.