-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathplugin.txt
41 lines (35 loc) · 2.2 KB
/
plugin.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
//<?php
/**
* ManagerManager
*
* Customize the MODx Manager to offer bespoke admin functions for end users.
*
* @category plugin
* @version 0.3.10dev
* @license http://www.gnu.org/copyleft/gpl.html GNU Public License (GPL)
* @internal @properties &config_chunk=Configuration Chunk;text;mm_demo_rules; &remove_deprecated_tv_types_pref=Remove deprecated TV types;list;yes,no;yes &which_jquery=jQuery source;list;local (assets/js),remote (google code),manual url (specify below);local (assets/js) &js_src_type=jQuery URL override;text;
* @internal @events OnDocFormRender,OnDocFormPrerender,OnPluginFormRender,OnTVFormRender
* @internal @modx_category Manager and Admin
* @internal @legacy_names Image TV Preview, Show Image TVs
*/
// You can put your ManagerManager rules EITHER in a chunk OR in an external file - whichever suits your development style the best
// To use an external file, put your rules in /assets/plugins/managermanager/mm_rules.inc.php
// (you can rename default.mm_rules.inc.php and use it as an example)
// The chunk SHOULD have php opening tags at the beginning and end
// If you want to put your rules in a chunk (so you can edit them through the Manager),
// create the chunk, and enter its name in the configuration tab.
// The chunk should NOT have php tags at the beginning or end
// ManagerManager requires jQuery 1.3+
// The URL to the jQuery library. Choose from the configuration tab whether you want to use
// a local copy (which defaults to the jQuery library distributed with ModX 1.0.1)
// a remote copy (which defaults to the Google Code hosted version)
// or specify a URL to a custom location.
// Here we set some default values, because this is a convenient place to change them if we need to,
// but you should configure your preference via the Configuration tab.
$js_default_url_local = $modx->config['site_url']. '/assets/js/jquery-1.4.4.min.js';
$js_default_url_remote = 'http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js';
// You don't need to change anything else from here onwards
//-------------------------------------------------------
// Run the main code
$asset_path = $modx->config['base_path'] . 'assets/plugins/managermanager/mm.inc.php';
include($asset_path);