//mm_widget_showimagetvs('tv4'); mm_widget_tags('tv3');// Adds the tag editing widget to the TV with ID=3 mm_widget_colors('tv5');// Adds the color picker widget to the TV with ID=5 mm_createTab('Categories', 'mycats'); mm_moveFieldsToTab('tv3', 'mycats');//move TV with ID=3 to tab 'mycats' mm_hideFields('tv6');//hide TV with ID=6 mm_renameField('tv3', 'myTags'); mm_changeFieldHelp('tv3', 'Field Help bla bla bla', '1'); mm_synch_fields('pagetitle,menutitle,tv6'); // Make the contents of these three fields always equal for all users and all documents
mm_renameSection('history', 'История изменений документа'); mm_hideSections('history', '', '6');
//<?php $output .= "var $j = jQuery.noConflict(); \n"; //produces var = jQuery.noConflict();
//<?php $output .= "var \$j = jQuery.noConflict(); \n"; //produces var $j = jQuery.noConflict();
<!-- ManagerManager Plugin :: 0.3.2 --> <!-- This document is using template: 3 --> <!-- You are logged into the following role: 1 --> <script type="text/javascript" charset="UTF-8"> var $j = jQuery.noConflict(); mm_lastTab = "tabGeneral"; mm_sync_field_count = 0; synch_field = new Array(); $j(document).ready(function() { // Lets handle errors nicely... try { // Give IDs to the sections of the form // This assumes they appear in a certain order //$j("div.sectionHeader:eq(0)").attr("id", "sectionDocSettingsHeader"); $j("div.sectionHeader:eq(0)").attr("id", "sectionContentHeader"); $j("div.sectionHeader:eq(1)").attr("id", "sectionTVsHeader"); $j("div.sectionHeader:eq(2)").attr("id", "sectionAccessHeader"); $j("div.sectionBody:eq(0)").attr("id", "sectionDocSettingsBody"); $j("div.sectionBody:eq(1)").attr("id", "sectionContentBody"); $j("div.sectionBody:eq(2)").attr("id", "sectionTVsBody"); $j("div.sectionBody:eq(3)").attr("id", "sectionAccessBody"); // Getting rules from file: D:/www/evolution/assets/plugins/managermanager/mm_rules.inc.php // ----------- Hide fields -------------- $j("input[@name=link_attributes]").parents("tr").hide(); // Misc tidying up // General tab table container is too narrow for receiving TVs -- make it a bit wider $j("div#tabGeneral table").attr("width", "550"); // if template variables containers are empty, remove their section if ($j("div.tmplvars :input").length == 0) { $j("div.tmplvars").hide(); // Still contains an empty table and some dividers $j("#sectionTVsHeader").hide(); } } catch (e) { // If theres an error, fail nicely alert("ManagerManager: An error has occurred: " + e.name + " - " + e.message); } finally { // Whatever happens, hide the loading mask $j("#loadingmask").hide(); } }); </script> <!-- ManagerManager Plugin :: End -->
The second problem I’m experiencing is when editing a document. All I get is the error message: "ManagerManager: An error has occurred: undefined - undefined". I have disabled the "Image TV Preview" plugin and for testing I only have one rule in mm_rules.inc.php: mm_hideFields(’link_attributes’); . I’m using the local assets/js/jquery-1.3.2.min.js file.I have it working with jQuery 1.2.6. I think there is a compatibility issue with MM and jQuery 1.3.2 it has come up before with MODx 0.9.6.3 too:
jquery1.3 doesnt work with it. Need to use 1.2.6 or 1.2.3
Fixed.
I’m having a few problems.. Firstly I didn’t see an extra "Roles & templates" tab in the edit plugin pane. Turns out there’s a typo in mm.inc.php on line 179. the $ is not escaped and so $j is parsed as a php variable instead of being printed as is.
Fixed. jQuery sintax changed. Now by default MM uses http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js
The second problem I’m experiencing is when editing a document. All I get is the error message: "ManagerManager: An error has occurred: undefined - undefined". I have disabled the "Image TV Preview" plugin and for testing I only have one rule in mm_rules.inc.php: mm_hideFields(’link_attributes’); . I’m using the local assets/js/jquery-1.3.2.min.js file.
Warning: implode() [function.implode]: Invalid arguments passed in /domain/public_html/assets/plugins/managermanager/functions/utilities.inc.php on line 127 \n \n \n \n '; var boxHtml = new MooPrompt('System Alert', sysAlert, { buttons: 1, button1: 'Ok', width: 500 }); });
mm_widget_mg_backend_manager('4','Gallery','','8');
ManagerManager: An error has occurred: TypeError - $("iframe") is null