If you view the source of the Manager (bottom right frame) do you see the following comments:
<!-- ManagerManager Plugin :: 0.3.2 -->
which indicate the plugin is working (and what version)?
Are you using a chunk, or file for your rules? Can you paste the contents here?
<!-- ManagerManager Plugin :: 0.3.2 --> <!-- This document is using template: 5 --> <!-- You are logged into the following role: 1 -->
// MM rules can go in here, instead of a chunk // If you copy them to a chunk, don't include the opening and closing PHP tags // ------------------------ INSERT YOUR RULES HERE -------------------- // These are example rules -- replace them with your own // PHP *is* allowed // For everyone mm_default('pub_date'); mm_renameField('introtext','Summary'); mm_changeFieldHelp('alias', 'The URL that will be used to reach this story. Only numbers, letters and hyphens can be used'); mm_widget_showimagetvs(); // Always give a preview of Image TVs // For everyone except administrators mm_hideFields('link_attributes', '!1'); //mm_moveFieldsToTab('tvcolour', 'general');
I do have my rules set up in a chunk for the time being (will move them to a file once I set up everything as needed.) The content of my chunk is:
In the plugin text, have you set $config_chunk to the name of your chunk?
$config_chunk = 'mm_rules';
Anything after this?
<!-- ManagerManager Plugin :: 0.3.2 --> <!-- This document is using template: 5 --> <!-- You are logged into the following role: 1 -->
Anything after this?
<input type="submit" name="save" style="display:none" /> <div class="subTitle" style="width:100%"> <span class="right"><img src="media/style/MODxLight/images/_tx_.gif" width="1" height="5" /><br />"<a href='javascript:scroll(0,0);'>Scroll up</a>"</span> <table cellpadding="0" cellspacing="0" class="actionButtons"> <tr> <td id="Button1__"><a href="#" onclick="documentDirty=false; document.mutate.save.click();"><img src="media/style/MODxLight/images/icons/save.gif" align="absmiddle" /> Save</a></td> <td id="Button2__"><a href="#" onclick="deletedocument();"><img src="media/style/MODxLight/images/icons/delete.gif" align="absmiddle" /> Delete</span></a></td> <td id="Button5__"><a href="index.php?a=3&id=4"><img src="media/style/MODxLight/images/icons/cancel.gif" align="absmiddle" /> Cancel</a></td> </tr> </table> </div> <!-- ManagerManager Plugin :: 0.3.2 --> <!-- This document is using template: 5 --> <!-- You are logged into the following role: 1 --> <script type="text/javascript" charset="UTF-8"> mm_lastTab = "tabGeneral"; mm_sync_field_count = 0; synch_field = new Array(); $(document).ready(function() { // Lets handle errors nicely... try { // Give IDs to the sections of the form // This assumes they appear in a certain order $("div.sectionHeader:eq(0)").attr("id", "sectionDocSettingsHeader"); $("div.sectionHeader:eq(1)").attr("id", "sectionContentHeader"); $("div.sectionHeader:eq(2)").attr("id", "sectionTVsHeader"); $("div.sectionHeader:eq(3)").attr("id", "sectionAccessHeader"); $("div.sectionBody:eq(0)").attr("id", "sectionDocSettingsBody"); $("div.sectionBody:eq(1)").attr("id", "sectionContentBody"); $("div.sectionBody:eq(2)").attr("id", "sectionTVsBody"); $("div.sectionBody:eq(3)").attr("id", "sectionAccessBody"); // Getting rules from chunk: mm_rules // ----------- Rename field -------------- $("textarea[@name=introtext]").parents("td").prev("td").children("span.warning").empty().prepend("Summary"); // ----------- Change field help -------------- $("input[@name=alias]").siblings("img[@style:contains('cursor:help')]").attr("alt", "The URL that will be used to reach this story. Only numbers, letters and hyphens can be used"); // ---------------- mm_widget_showimagetvs: Add image preview ------------- // Adding preview for section-image $("#tvsection-image").bind( "change load", function() { // Get the new URL $(this).addClass("imageField"); var url = $(this).val(); url = (url != "" && url.search(/http:\/\//i) == -1) ? ("http://76.12.186.195/" + url) : url; // Remove the old preview $("#section-imagePreviewContainer").remove(); if (url != "") { // Create a new preview $("#tvsection-image").parents("td").append("<div class=\"tvimage\" id=\"section-imagePreviewContainer\"><img src=\""+url+"\" style=\""+'max-width:300px; max-height:100px; margin: 4px 0; cursor: pointer;'+"\" id=\"section-imagePreview\"/></div>"); // Attach a browse event to the picture, so it can trigger too $("#section-imagePreview").click( function() { BrowseServer("tvsection-image"); }); } }).trigger("load"); // Trigger a change event on load // If we have imageTVs on this page, modify the SetUrl function so it triggers a "change" event on the URL field if (typeof(SetUrl) != "undefined") { OriginalSetUrl = SetUrl; // Copy the existing Image browser SetUrl function SetUrl = function(url, width, height, alt) { // Redefine it to also tell the preview to update OriginalSetUrl(url, width, height, alt); $(".imageField").trigger("change"); } } // Misc tidying up // General tab table container is too narrow for receiving TVs -- make it a bit wider $("div#tabGeneral table").attr("width", "550"); // if template variables containers are empty, remove their section if ($("div.tmplvars :input").length == 0) { $("div.tmplvars").hide(); // Still contains an empty table and some dividers $("#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 $("#loadingmask").hide(); } }); </script> <!-- ManagerManager Plugin :: End --> </form> <script type="text/javascript">//setTimeout('showParameters()',10);</script> <script language="javascript" type="text/javascript" src="/assets/plugins/tinymce3101/jscripts/tiny_mce/tiny_mce.js"></script> <script language="javascript" type="text/javascript" src="/assets/plugins/tinymce3101/xconfig.js"></script> <script language="javascript" type="text/javascript">
Well that’s all the MM code I’d expect to see there. Are you getting any javascript errors? What browser are you using? Have you tried in other browsers? What version of ModX?
Yes, I have also included a few lines before and after.
What browser are you using? Have you tried in other browsers? What version of ModX?
Error: $("div#" + mm_lastTab) is null Source File: http://domain.com/manager/index.php?id=9&a=102 Line: 449
Error: $(document).ready is not a function Source File: http://domain.com/manager/index.php?id=4&a=27 Line: 742
Line:429 Char: 4 Error: 'null' is null or not an object Line from file: $("#loadingmask").css( {width: "100%", height: $("body").height(), position: "absolute", zIndex: "1000", backgroundColor: "#ffffff"} );
Line:742 Char: 1 Error: Object doesn't support this property or method Line from file: $(document).ready(function() {
$("input, div, form[@name=mutate]").remove(); // Remove all content from the page
I found an error in MM version 0.3.2, widget accessdenied.php. It works but when i try to close some documents, js-error appears.
I think that is becouse widget removes all frame content with this code
$("input, div, form[@name=mutate]").remove(); // Remove all content from the page
but other rules trying to operate with this removed content.
This discussion is closed to further replies. Keep calm and carry on.