This widget will generate an input box (), with a "Select" button which when clicked will bring CKFinder's window allowing one to browse through the file repository.
There is no integration with CKEditor (there are other extensions that will do that, e.g. http://www.yiiframework.com/extension/ckeditor-ckfinder.
Please note, CKFinder is not free, but it is worth the cost in my experience.
CKfinder from http://ckfinder.com/download - version 2.1 is included with the current package.
// Please change the config below to suit your needs $this->uploadPath = dirname(Yii::app()->request->scriptFile) .'/themes/frontend/uploads/'; $this->uploadUrl = Yii::app()->getRequest()->hostInfo . Yii::app()->baseUrl.'/themes/frontend/uploads/';
$this->widget('ext.finder.EImageFinder',array('fieldName'=>'my_field'));
Suggestions/comments are welcomed.
Thanks
Cassiano Surek - www.surek.co.uk
Total 1 comment
Please, add to view finder.selectActionFunction = SetFileField; before finder.popup();
Leave a comment
Please login to leave your comment.