$show = TRUE; if ($disabled != '') { $arr = explode(",", $disabled ); if (in_array($modx->documentIdentifier, $arr)) { $show = FALSE; } } if ($show) { include_once($modx->config['base_path'].'assets/plugins/qm/qm.inc.php'); $qm = new Qm($modx, $jqpath, $loadmanagerjq, $loadfrontendjq, $noconflictjq, $loadtb, $tbwidth, $tbheight, $hidefields, $hidetabs, $hidesections, $addbutton, $tpltype, $tplid, $custombutton, $managerbutton, $logout, $autohide); } |
&jqpath=Path to jQuery;text;assets/js/jquery-1.3.2.min.js &loadmanagerjq=Load jQuery in manager;list;true,false;true &loadfrontendjq=Load jQuery in front-end;list;true,false;true &noconflictjq=jQuery noConflict mode in front-end;list;true,false;true &loadtb=Load modal box in front-end;list;true,false;true &tbwidth=Modal box window width;text;80% &tbheight=Modal box window height;text;90% &hidefields=Hide document fields from front-end editors;text;parent &hidetabs=Hide document tabs from front-end editors;text; &hidesections=Hide document sections from front-end editors;text; &addbutton=Show add document here button;list;true,false;true &tpltype=New document template type;list;parent,id,selected;parent &tplid=New document template id;int;3 &custombutton=Custom buttons;textarea; &managerbutton=Show go to manager button;list;true,false;true &logout=Logout to;list;manager,front-end;manager &disabled=Plugin disabled on documents;text; &autohide=Autohide toolbar;list;true,false;true |
Configuration option | Default value | Possible values | Instructions |
Path to jQuery | assets/js/jquery-1.3.2.min.js | text | Path to your jQuery script. |
Load jQuery in manager | true | true || false | Prevent loading jQuery twice if you are already using some other plugin which loads jQuery such as ManagerManager. |
Load jQuery in front-end | true | true || false | Prevent loading jQuery twice if you are already using it in your site template. |
jQuery noConflict mode in front-end | true | true || false | Define if jQuery should use noConflict mode. NoConflict mode is useful if you use other JavaScript libraries in front-end such as Mootools. |
Load modal box in front-end | true | true || false | Prevent loading modal box (ColorBox) twice if you are already using it in your site template. |
Modal box window width | 80% | number || percent | Define modal box (ColorBox) window width, for example: 800 or 75%. |
Modal box window height | 90% | number || percent | Define modal box (ColorBox) window height, for example: 500 or 75%. |
Hide document fields from front-end editors | parent | text | Separate fields with commas, for example:
parent,template,menuindex Parent selection doesn't work at all with QuickManager+ due missing menu tree frame, so it should be hidden from front-end editors. Possible fields to hide: content, pagetitle, longtitle, menuindex, parent, description, alias, link_attributes, introtext, template, menutitle NOTICE! Hiding document fields may not work if fields are moved to other tabs with ManagerManager plugin. |
Hide document tabs from front-end editors | text | Separate tabs with commas, for example:
meta,settings Possible tabs to hide: general, settings, meta NOTICE! Hiding tabs may not work if tab order is changed with ManagerManager plugin. |
|
Hide document sections from front-end editors | text | Separate sections with commas, for example:
content,access Possible sections to hide: docsettings, content, tvs, access NOTICE! Hiding sections may not work if you are hiding sections with ManagerManager plugin |
|
Show add document here button | true | true || false | Define if it's possible to add documents with QuickManager+. |
New document template type | parent | parent || id || selected | How to determine a
new document template: - parent: Use parent document template - id: Use template based on id number - selected: Define template based on parent document "inheritTpl" template variable used by "Inherit Selected Template" plugin http://modxcms.com/extras.html?view=package/view&package=214. You don't have to install the plugin, but you still have to have "inheritTpl" template variable on parent document with correct template id number. |
New document template id | 3 | number | Define which template id to use with new documents. Used only if new document template type is id. |
Custom buttons | text | Define custom buttons, for example add document to site
root or add news document - Define new document button: 'button title','new','parent id','template id','visible for user role ids' - Define link button: 'button title','link','http://www.example.com','','visible for user role ids' - Define modal button: 'button title','modal','http://www.example.com','','visible for user role ids' Visible for user role ids: leave empty to accept all roles, role 1 = Administrator Separate different buttons with || Example: 'New root document','new','0','3',''||'Add news','new','10','4','4,5,6'||'Site statistics','link','http://www.google.com/analytics/','','1,4'||'Site statistics','modal','http://www.google.com/analytics/','','1,4' |
|
Show go to manager button | true | true || false | Define is go to manager button visible. |
Logout to | manager | manager || front-end | Define where to logout: to manager login screen or to active document on front-end. |
Plugin disabled on documents |
text | Document id numbers where the plugin is disabled. Separate fields with commas, for example: 34,22,7,19 |
|
Autohide toolbar |
true |
true || false | Define if toolbar hides automatically or is always visible (manually close the toolbar by clicking MODx logo or X button) |