MojoMotor User Guide Version 1.2.0


Advanced Configuration Options

Some options within MojoMotor are not available through the web interface, but can still be controlled by editing system/mojomotor/config/config.php.

File Upload Preferences

$config['upload_preferences'] = array(
	1 => array(								// ID of upload destination
		'name'		=> 'mm_uploads',				// Display name
		'server_path'	=> '/home/user/example.com/mm_uploads/', 	// Server path to upload directory
		'url'		=> 'http://example.com/mm_uploads/'		// URL of upload directory
	)
);

You can optionally override upload destination paths, URLs and titles via this configuration array.

Caching

$config['time_to_cache'] = '';

Time to cache controls how many minutes a page will remain in cache before it refreshes If it is set to blank, then caching will not be used.

To use caching, the folder system/mojomotor/cache must be writable.

URL separator

$config['url_separator'] = '-';

The 'url_separator' is the character that will be used to make url_title's for pages. For example "page one" becomes "page-one". The default is a dash. Another common value is "_".

Show Profiler

$config['show_profiler'] = FALSE;

Setting 'show_profiler' to TRUE will cause profiler information to automatically load on the bottom of appropriate pages.

Show Expanded Image Options

$config['show_expanded_image_options'] = FALSE;

Setting 'show_expanded_image_options' to TRUE will reveal further options on the editor's image dialog. Border, HSpace, Vspace, Align and a visual Image Preview with Lorem Ipsum text.

Disable Third Party Addons

$config['disable_third_party_addons'] = FALSE;

Setting 'disable_third_party_addons' to TRUE prevent the loading of third party addons.

Additional CSS

$config['additional_css'] = '';

When a user is logged in, after MojoMotor is loaded, a call for a jQuery UI stylesheet is made. If these styles collide with your own, you can specify an additional CSS file to load after MojoMotor has finished loading its own. This will allow you to over-ride styles with your own stylesheet. For example:

$config['additional_css'] = 'http://example.com/your_jquery_ui_styles.css.';