Superfish is an enhanced Suckerfish-style menu jQuery plugin that takes an existing pure CSS drop-down menu (so it degrades gracefully without JavaScript) and adds the following much-sought-after enhancements:
Yii 1.1
Sample code:
$this->widget('application.extensions.superfish.RSuperfish', array( 'items'=> array( array('label' => 'menu item', 'url' => '#', 'items' => array( array('label' => 'menu item', 'url' => '#'), array('label' => 'menu item', 'url' => '#', 'items' => array( array('label' => 'menu item', 'url' => '#') )), array('label' => 'menu item', 'url' => '#'), array('label' => 'menu item', 'url' => '#') )), array('label' => 'menu item', 'url' => '#'), array('label' => 'menu item', 'url' => '#'), )));
http://users.tpg.com.au/j_birch/plugins/superfish/
Total 1 comment
In the file RSuperfish.php, on line 93 I'm getting an error "Undefined index: class" with the original code:
To fix, I changed the if condition:
With this simple fix, it's one of (if not THE) best menu systems for handling sub-menus. It's a shame that CMenu doesn't support such useful features out of the box.
Leave a comment
Please login to leave your comment.