MCFileManager:Drupal
From Moxiecode Documentation Wiki
Installation instructions for Drupal CMS
Drupal 5.2
1. Add the TinyMCE module to your system, follow the instructions that come with the module, you can download it on the Drupal Website.
2. Unpack the MCImageManager into the "\sites\all\modules\tinymce\includes\jscripts\tiny_mce\plugins" folder.
3. Add "ExternalAuthenticator" to the authenticator option.
4. Copy the filemanager/plugins/ExternalAuthenticator/auth_drupal.php to the root directory of Drupal.
5. Change the ExternalAuthenticator.secret_key in config.php to something unique.
6. Change the secretKey in the auth_drupal.php file to match the one at the previous step.
7. Change the ExternalAuthenticator.external_auth_url in config.php so that it points to the auth_drupal.php file.
8. Comment out the drupal_add_js($tinymce_mod_path . '/tinymce/jscripts/tiny_mce/plugins/filemanager/jscripts/mcfilemanager.js'); line in tinymce.module if it should exist.
9. You are done, verify that your user has access to TinyMCE in your Drupal Configuration and try clicking the browse button for inserting an image.
Example of how it might look in the config.php, remember to change the existing options:
$mcFileManagerConfig['authenticator'] = "ExternalAuthenticator"; $mcFileManagerConfig['ExternalAuthenticator.secret_key'] = "thisismysecretkey"; $mcFileManagerConfig['ExternalAuthenticator.external_auth_url'] = "/drupal_5_2/auth_drupal.php";
If you have any problems, visit the forum for help.
Older Drupal Versions
The module and other things have changed over various versions of Drupal, in late 4.7.x versions you can add MCFileManager as a plugin above and then configure it to use MCFileManager in the Drupal settings page for TinyMCE module. In other versions some small hack might be needed in the tinymce.module file in order to get the MCFileManager working. If you have problems with your install, ask around in the forum for help.
