We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 24495
    • 407 Posts
    Running MM (0.3.2) the Content History Plugin (0.2.4) output is invisible in edit page mode. Deactivating MM the CH area returns. MM runs with rules in a chunk.

    EDIT: MODx is 0.9.6.3-RC2, browsers both IE7 and FF3.
    EDIT2: 1 JS-Error:
    $("ch-bulk-delete").addEvent is not a function


    Any ideas where to look? Is it an issue with MM or with CH? Changing the order of plugins doesn’t help. Here is the content of the chunk:
    //All
    mm_hideFields('link_attributes');
    mm_hideFields('introtext');
    mm_hideFields('description');
    mm_renameField('pagetitle', 'Seitentitel');
    mm_renameField('longtitle', '1. Überschrift');
    mm_renameField('alias', 'Dateiname');
    mm_renameField('template', 'Dokumenttyp');
    mm_renameField('menutitle', 'Linktitel');
    mm_renameField('menuindex', 'Sortierindex');
    mm_renameField('parent', 'unterhalb von');
    mm_renameTab('meta', 'Keywords');
    mm_renameSection('content', 'Hauptinhalt');
    mm_renameSection('tvs', 'weitere Inhalte');
    //nur Redakteure
    mm_hideFields('is_richtext', '2');
    mm_hideFields('log', '2');
    mm_hideFields('cacheable', '2');
    mm_hideFields('clear_cache', '2');
    mm_hideFields('content_type', '2');
    mm_hideFields('content_dispo', '2');
    mm_hideFields('metatags', '2');
    mm_hideFields('which_editor', '2');
    mm_hideFields('contentScript', '2');
    //nur Templates
    mm_hideFields('content', '', '0,3,7');
    mm_hideSections('content', '', '9,10');
    mm_renameSection('tvs', 'Inhalte', '', '9');
    mm_renameSection('tvs', 'Inhalte Pressemeldung', '', '10');
    //Widgets
    mm_widget_showimagetvs();
      • 21056
      • 327 Posts
      $("ch-bulk-delete").addEvent is not a function

      This error is not coming from MM - I’m not familiar with the Content History plugin, but perhaps if you provide the entire source of the page there may be something obvious...
        Author: ManagerManager plugin - customise your ModX manager interface

        Rckt - web development, Sheffield, UK
        • 9941
        • 65 Posts
        I had some luck using JQuery noConflict in ManagerManager... Content History showed up but was giving me errors and the hide/show versions toggle link would not work.

        I may have missed some JQuery calls but was not seeing any JQuery errors, so not sure at this point.... only sure that it is JQuery vs MooTools that is causing the issue.


          • 24495
          • 407 Posts
          only sure that it is JQuery vs MooTools that is causing the issue
          I think so but how to solve this problem?
            • 9941
            • 65 Posts
            Without further testing I am of the opinion that MM is changing the DOM that CH is expecting to see, so the fix would be to add in some sanity checks and either use more specific selectors to target the CH DOM additions or to see if the expected elements exist and if not throw an exception, at which point someone can make an adjustment.... as is it is silently failing which is no good for coexisting with other plugins.

            I will look into it more and post my results but also welcome other’s efforts.