yii-ddmedia / README.md

Joachim Werner 7461b95 


Joachim Werner 8bba6db 
Joachim Werner 7461b95 





Joachim Werner 48358fa 


Joachim Werner 7461b95 


Joachim Werner 8bba6db 
Joachim Werner 7461b95 
Joachim Werner 68fe8c9 
Joachim Werner 7461b95 




Joachim Werner 68fe8c9 
Joachim Werner 7461b95 








Joachim Werner 8bba6db 


Joachim Werner 4697120 
Joachim Werner 48358fa 





ddmedia
=======

**DDMedia** is a module for the [Yii PHP framework](http://www.yiiframework.com) that provides a web user interface to manage files and folders. 

Supported tasks so far:

* Browse folders
* Create new directory
* Upload a file
* Rename, copy, move, delete files or folders
* Preview for images
* Download for files

# Setup

Download the latest release from [Yii extensions](http://www.yiiframework.com/extension/ddmedia) or from [BitBucket](https://bitbucket.org/jwerner/yii-ddmedia).

Unzip the module under ***protected/modules/media*** and add the following to your application config:

~~~
[php]
return array(
    ...
    'media'=>array(
        // Base dir for media browser (app/files):
        'baseDir'=>dirname(__FILE__).DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'files',
    ),
    ...
);
~~~
***protected/config/main.php***

Please note that the module doesn't require you to use a database.

# Usage

Add a link somewhere in your main menu like `CHtml::link('Media Browser', array('/ddmedia'))`.

# To Do's

* Show media meta data on clicking an item in a sidebar widget
* Allow to select multiple items and do batch actions with them
* Add config option to hide/show hidden files or folders
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.