User Tools

Site Tools


plugin:tinymce

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
plugin:tinymce [2023/12/02 12:49]
duncanc [config.php]
plugin:tinymce [2023/12/02 12:58] (current)
duncanc [Location of the elFinder directory]
Line 39: Line 39:
  
 ==== Location of the elFinder directory====  ==== Location of the elFinder directory==== 
-The elFinder directory must be within the web root. If you have the default plugin location, ''define("PLUGIN_ROOTDIR""plugins")'' in config.php, then the plugin will use the correct path automatically, e.g.+The elFinder directory must be within the web root. If you have the default plugin location, ''define('PLUGIN_ROOTDIR''plugins')'' in config.php, then the plugin will use the correct path automatically, e.g.
  
 ''/lists/admin/plugins/TinyMCEPlugin/elfinder'' ''/lists/admin/plugins/TinyMCEPlugin/elfinder''
Line 45: Line 45:
 If you have placed the plugin directory outside of the web root then you must move or copy the `elfinder` directory from the plugin's directory to somewhere within the web root. Then use the Settings page (menu Config > Settings) to specify the path to the elFinder directory. The path should be from the web root, such as ''/elFinder'', not the filesystem path. If you have placed the plugin directory outside of the web root then you must move or copy the `elfinder` directory from the plugin's directory to somewhere within the web root. Then use the Settings page (menu Config > Settings) to specify the path to the elFinder directory. The path should be from the web root, such as ''/elFinder'', not the filesystem path.
  
-Also, if you move or rename the phpList directory or the plugin directory after installing the plugin, then you will need +Also, if you move or rename the phpList directory or the plugin directory after installing the plugin, then you will need to modify the path because it will not change automatically.
-to modify the path because it will not change automatically.+
  
 ===== Configuration ===== ===== Configuration =====
Line 54: Line 53:
 The UPLOADIMAGES_DIR value in config.php must be set to the location of a directory where elFinder can store uploaded images. The directory must be writable by the web server. Note that the value is relative to the web root and must not contain a leading '/'. The UPLOADIMAGES_DIR value in config.php must be set to the location of a directory where elFinder can store uploaded images. The directory must be writable by the web server. Note that the value is relative to the web root and must not contain a leading '/'.
  
 +<code php>define('UPLOADIMAGES_DIR', 'upload');</code>
 If the UPLOADIMAGES_DIR value in config.php is set to ''false'' then elFinder will be disabled and image uploading will not be possible. If the UPLOADIMAGES_DIR value in config.php is set to ''false'' then elFinder will be disabled and image uploading will not be possible.
  
Line 61: Line 61:
  
  
-elFinder will use a subdirectory of UPLOADIMAGES_DIR named after the admin login id (1, 2, 3 etc.), creating the subdirectory on first-use. The subdirectory is private to the admin, and there is no sharing of image files. The URL of an image will therefore be something like this for admin id 2+elFinder will use a subdirectory of UPLOADIMAGES_DIR named after the admin login id (1, 2, 3 etc.). The subdirectory is private to the admin, and there is no sharing of image files with other ordinary admins. The URL of an image will therefore be something like this for admin id 2
  
-<nowiki>https://mysite.com/upload/2/funny_cat.jpg</nowiki>+''<nowiki>https://mysite.com/upload/2/funny_cat.jpg</nowiki>''
  
-To give all admins, including super admins, their own subdirectory add +To give all admins, including super admins, their own subdirectory use 
  
 <code php>define('IMAGE_DIR_PER_ADMIN', 'all');</code> <code php>define('IMAGE_DIR_PER_ADMIN', 'all');</code>
plugin/tinymce.1701521369.txt.gz · Last modified: 2023/12/02 12:49 by duncanc

Resources
Contact Us

e: info@phplist.com

Boring Bit

phpList is a registered limited company

UK Company No. 07582966

VAT Registration 122 0788 37

© phpList 2016