Ticket #1502 (new enhancement)
Create MootoolsFileManager plugin, combining ExtendedFileManager and ImageManager
| Reported by: | gogo | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 0.97 |
| Component: | Plugins | Version: | trunk |
| Severity: | normal | Keywords: | ImageManager ExtendedFileManager InsertImage mootools |
| Cc: |
Description (last modified by gogo) (diff)
As mentioned in ticket:1478 and ticket:708
Mootools File Manager (http://cpojer.net/Scripts/FileManager/Demos/) is a php/ajax/dhtml/mootools based filemanager which allows the upload of multiple files simultaneously, progress bars, and a generally better experience when it comes to uploading and selecting files than ExtendedFileManager and ImageManager.
I will shortly commit a new plugin called MootoolsFileManager? which utilises the Mootools File Manager to perform the basic function of both ExtendedFileManager and ImageManager.
Currently, the functionality is limited in that it is not possible to set the various other attributes of the image/link (border, alt, title, target etc), you may upload, rename, delete, create directories, and select the file you wish.
By default the configuration is locked down, it won't do anything until you configure it. The configure.php file has instructions, but in brief, this is the recommended way.
/** STEP 3 ***************************************************************
* We create a default configuration to be used by all the editors.
* If you wish to configure some of the editors differently this will be
* done in step 4.
*
* If you want to modify the default config you might do something like this.
*
* xinha_config = new Xinha.Config();
* xinha_config.width = 640;
* xinha_config.height = 420;
*
*************************************************************************/
xinha_config = xinha_config ? xinha_config : new Xinha.Config();
with (xinha_config.MootoolsFileManager)
{
<?php
require_once('../contrib/php-xinha.php');
xinha_pass_to_php_backend
(
array
(
'images_dir' => /home/username/public_html/images',
'images_url' => '/images',
'allow_images_upload' => true,
'files_dir' => /home/username/public_html/files',
'files_url' => '/files',
'allow_files_upload' => true,
)
)
?>
}
Future
As indicated, this version is limited to the most basic functionality. We need to add the following...
- Add support for title and target when inserting links
- Add support for the various attributes that ImageManager allows you to edit (alt, border etc).
- Add support for resizing based on width/height attributes which get added in (2).
- Add support for editing images utilising "Ajax Image Editor" ( http://www.ajax-image-editor.com/ )
