Hi, I’m hoping someone can help me out.
I have textarea using WYSIWYG that has the imagemanager button and filemanager button. Filemanager is working fine and can access the folders, insert, upload. It is ImageManager that won’t open the same subfolder. I want ImageManager to open the same folder as FileManager.
LG TinyMCE settings: (You can see below that the document_base_url is http://www.domain.com but actually, I also tried document_base_url is ‘/’ and it didn’t make a different with ImageManager. I was trying to find ImageManager init settings that I should use… but I haven’t found anything.)
button_tile_map : true,
mode:'textareas',
editor_selector : 'lg_mceEditor',
theme : 'advanced',
content_css : 'http://www.domain.com/css/editor.css',
relative_urls : false,
remove_script_host : true,
document_base_url : 'http://www.domain.com/',
apply_source_formatting : true,
fix_list_elements : true,
plugins :'inlinepopups,style,table,advhr,advimage,advlink,emotions,insertdatetime,media,searchreplace,contextmenu,paste,directionality,fullscreen,visualchars,nonbreaking,xhtmlxtras,imagemanager,style,advlink,filemanager',
advimage_styles:'Align Left=left;Alight Right=right',
theme_advanced_buttons1 : 'undo,redo,|,formatselect,styleselect,|,bold,italic,|,justifyleft,justifyright,|,bullist,numlist,outdent,indent,|,link,unlink,anchor,|,insertimage,insertfile,|,cleanup,removeformat,code',
theme_advanced_buttons2 : '',
So, FileManager’s config.php is:
$mcFileManagerConfig['filesystem.path'] = ''; // absolute or relative from this script path.
$mcFileManagerConfig['filesystem.rootpath'] = '../../../../files'; // absolute or relative from this script path.
When I set the ImageManager’s config.php the same as above or to anything else it seems to always open to tinymce’s plugin folder where imagemanager is residing, that would ‘js/tinymce/plugins/imagemanager/’ – where I can then go through all the subfolders inside the imagemanager’s folder. Definitely not what I want to do.
Any one? Thoughts?
Thanks in advance!
Hi,
I used these settings in the config.php for both Image Manager and File Manager respectively:
$mcImageManagerConfig['filesystem.path'] = '../../../../../../images/uploads/'; // absolute or relative from this script path, optional.
$mcImageManagerConfig['filesystem.rootpath'] = '../../../../../../images/uploads/'; // absolute or relative from this script path, required.
$mcFileManagerConfig['filesystem.path'] = '../../../../../../images/uploads/'; // absolute or relative from this script path.
$mcFileManagerConfig['filesystem.rootpath'] = '../../../../../../images/uploads/'; // absolute or relative from this script path.
Works like a charm for me.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.