MCImageManager:Configuration
From Moxiecode Documentation Wiki
[edit]
Configuration reference
This document is the index/reference page for all configuration options available in the 3.x version. Documentation for older versions are contained within the zip package.
[edit]
Configuration options
All configuration options are located in a file called config.php or web.config depending on if you are using the PHP or .NET version of the product.
[edit]
General options
- general.debug
- general.demo
- general.theme
- general.language
- general.encrypt_paths
- general.remember_last_path
- general.user_friendly_paths
- general.tools
- general.disabled_tools
- general.plugins
- general.error_log
- general.allow_export
- general.allow_override
[edit]
Preview options
[edit]
Createdir options
- createdir.include_directory_pattern
- createdir.exclude_directory_pattern
- createdir.invalid_directory_name_msg
- createdir.allow_export
- createdir.allow_override
[edit]
Stream options
[edit]
Filesystem options
- filesystem
- filesystem.path
- filesystem.rootpath
- filesystem.datefmt
- filesystem.include_directory_pattern
- filesystem.exclude_directory_pattern
- filesystem.invalid_directory_name_msg
- filesystem.include_file_pattern
- filesystem.exclude_file_pattern
- filesystem.invalid_file_name_msg
- filesystem.extensions
- filesystem.directory_templates
- filesystem.force_directory_template
- filesystem.readable
- filesystem.writable
- filesystem.list_directories
- filesystem.delete_recursive
- filesystem.allow_export
- filesystem.allow_override
[edit]
Authenticator options
[edit]
SessionAuthenticator options
- SessionAuthenticator.logged_in_key
- SessionAuthenticator.user_key
- SessionAuthenticator.path_key
- SessionAuthenticator.rootpath_key
- SessionAuthenticator.config_prefix
[edit]
IPAuthenticator options
[edit]
ExternalAuthenticator options
[edit]
Thumbnail options
- thumbnail
- thumbnail.enabled
- thumbnail.auto_generate
- thumbnail.width
- thumbnail.height
- thumbnail.max_width
- thumbnail.max_height
- thumbnail.scale_mode
- thumbnail.insert
- thumbnail.use_exif
- thumbnail.folder
- thumbnail.prefix
- thumbnail.delete
- thumbnail.jpeg_quality
- thumbnail.allow_export
- thumbnail.allow_override
[edit]
Edit options
[edit]
Download options
[edit]
Upload options
- upload.autoresize
- upload.autoresize_jpeg_quality
- upload.maxsize
- upload.max_width
- upload.max_height
- upload.overwrite
- upload.include_file_pattern
- upload.exclude_file_pattern
- upload.invalid_file_name_msg
- upload.extensions
- upload.create_thumbnail
- upload.use_flash
- upload.format
- upload.allow_export
- upload.allow_override
[edit]
Local file system options
- filesystem.local.access_file_name
- filesystem.local.file_mask
- filesystem.local.directory_mask
- filesystem.local.allow_export
- filesystem.local.allow_override
[edit]
Logging options
[edit]
FileManager options
[edit]
Directory specific configuration
ImageManager has a special access files that can be placed in folders to control/override options. This file is by default named "mc_access" and it may contain any config option as long as it's not left out of the allow_override option.
Place a "_" character in front of option names to only override options in the current directory, so it doesn't get inherited by sub directories.
[edit]
Example of a mc_access file
# Excludes some files filesystem.exclude_file_pattern=/^(\..*)$|^filex$/i # Only for this level _filesystem.exclude_directory_pattern=/^somedir$/i # Restrict max upload file size to 5 MB upload.maxsize=5MB
