EFgMenu is a yii widget wrapping fgmenu.
It provides context, horizontal, vertical and 2 kind of ipod-style menus.
(remark: i had to fix/enhance the original fgmenu js codes a bit)
Yii 1.x
Download the demo from here and check the project page for example codes.
Total 8 comments
Install NLSClientscript, i highly recommend it if you use ajax updates with widgets.
If it doesn't help, set the ajaxUpdate attribute of your widget uses pagination to FALSE in order to use normal page request.
Otherwise dig into fgmenu - remember i just extended it a bit and wrapped it for Yii.
Hi, after it works on the first page of the CListView... when I use pagination, it's broken...
I implemented it like this:
1) The view, rendered by the actionIndex()
2) the view rendered by renderPartial, as there is no other way to pass parameter for client scripts...
3) last but not least, the item himself...
thank you and hope you have a solution...
Cheers Philipp
Hi nlac,
thanks for the hint! This one solved it, and yes, pls update your documentation, as it wasn't described in there;)!
It works great now!
Thank you!!!
Cheers Phil
ok, i guess you missed to prepare the html markup for the trigger button. The extension doesn't create it, you need to have it on the view - i'll extend the documentation on the home page cus it is not obvious indeed.
So place a html like that befor the menu widget:
Hi Nlac,
the issue is, that I don't use the renderPartial function... I just use the CController::render() and then the view looks like this:
And inside the _view:
I checked your files, and I didn't see an renderPartial in there...
thank you for your support! Cheers Philipp
sorry: CController::renderPartial() instead of CCLientScript::renderPartial()
Hello,
check 1.1 for a working demo.
I'm not sure what does it essentially mean that "using from a _view item" since UI elements are generally placed on some view file, in the controller's /view directory. If you have still problem, i suggest you to check and play with the 4th parameter (boolean) of CClientScript::renderPartial() method if you use that for rendering the view.
Regards, nlac
Hi,
I try to implement your menu inside a _view item, but it doesn't work :( In the first item, it isn't even rendered and then in the following items, it doesn't build the "menu" and only returns the html list...
Would be great to have an working example!
Regards Philipp
Leave a comment
Please login to leave your comment.