Revision #4 has been created by Antonio Ramirez on Nov 2, 2010, 8:43:15 PM with the memo:
updated order of files registries (css first, js later)
« previous (#3) next (#5) »
Changes
Title
unchanged
Using the jqueryslidemenu plugin with CMenu
Category
unchanged
How-tos
Yii version
unchanged
Tags
unchanged
Interface, Menu, Widgets
Content
changed
[...]
// remember that you can actually point to the js files directly if
// your script file is outside of protected/subfolders
$jqueryslidemenupath = Yii::app()->assetManager->publish(Yii::app()->basePath.'/scripts/jqueryslidemenu/');
//Register jQuery, JS and CSS files
Yii::app()->clientScript->registerCoreScript('jqueryssFile($jqueryslidemenupath.'/jqueryslidemenu.css');
Yii::app()->clientScript->registerC
ssFile($jqueryslidemenupath.'/jqueryslidemenu.css'); oreScript('jquery');
Yii::app()->clientScript->registerScriptFile($jqueryslidemenupath.'/jqueryslidemenu.js');
```
And finally we create our menu. Please note that our menu is wrapped with a layer 'div' and one its classes to jqueryslide menu.[...]