*Note, sorry I had a small bug when creating a portlet in the version I released,it's fixed now.
A tried a bunch of dashboard solutions but didnt like any of them so I made my own. Each portlet can have title, content (texteditor included) and an ajaxcall. They can be connected to one user or set them to default to let all users see them.
All you have to do for the ajaxcall is to provide a url for an action. (There is a demo action in DashboardController to help you get started).
In full mode, you can:
- add portlets
- hide portlets
- delete portlets
- update portlets
- resize , move,minimize and maximize
Everything is saved into a database (size and position also).
In modify mode you can -resize,move,minimize,maximize.
Yii-Bootstrap And hide the index.php for url's. Developed in Yii 1.1.10 Tested in chrome and firefox
Change your config (normally protected/config/main.php): ADD this line to your import array ,
'import'=>array( 'application.modules.sdashboard.components.*', 'application.modules.sdashboard.models.*', ), And in the modules array : 'modules'=>array( 'sdashboard'=>array(), ),
This is example on how you can link to the diffrent modes: Notice ?rand='.time() that is there to prevent the browser fram caching.
array('label'=>'Dashboard View Mode', 'url'=>array('//sdashboard/dashboard/viewwidget?rand='.time())), array('label'=>'Dashboard modifymode', 'url'=>array('//sdashboard?mode=modify&rand='.time())), array('label'=>'Dashboard adminmode', 'url'=>array('//sdashboard?rand='.time())),
I made a bonus viewwidget that only displays portlets, without giving the user access to change anything.
Simlpy run this: (will display the default portlets in view mode only), If you want to display portlets for a specific user , change userid to that user.